/* The New Grok Times - Parody Edition */
/* Inspired by the New York Times Web Aesthetic */

:root {
  /* Colors */
  --nyt-bg: #ffffff;
  --nyt-text: #121212;
  --nyt-text-light: #5a5a5a;
  --nyt-gray: #727272;
  --nyt-border: #e2e2e2;
  --nyt-border-dark: #cccccc;
  --nyt-black: #000000;
  
  /* Typography */
  --font-logo: 'Chomsky', 'Old English Text MT', serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-kicker: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  background: var(--nyt-bg);
  color: var(--nyt-text);
  font-family: var(--font-serif);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Masthead
   ============================================ */
.news-masthead {
  border-bottom: 2px solid var(--nyt-black); /* Crisp modern line */
  margin-bottom: 30px;
}

.news-masthead__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-masthead__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--nyt-border);
  padding: 6px 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-masthead__top a {
  color: var(--nyt-text);
  text-decoration: none;
}

.news-masthead__logo-area {
  text-align: center;
  padding: 35px 0 15px;
  position: relative;
}

.news-masthead__title {
  font-family: var(--font-logo);
  font-size: 84px;
  font-weight: 400;
  margin: 0;
  line-height: 1;
  letter-spacing: -1px;
}

.news-masthead__title a {
  color: var(--nyt-black);
  text-decoration: none;
}

.news-masthead__motto {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0px;
  color: var(--nyt-text-light);
  margin: 12px 0 0;
}

/* Nav */
.news-masthead__nav {
  border-top: 1px solid var(--nyt-border);
  padding: 10px 0;
}

.news-masthead__nav-list {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-masthead__nav-item {
  display: inline-block;
}

.news-masthead__nav-link {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--section-color, var(--nyt-text));
  text-decoration: none;
}

.news-masthead__nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   Edition Navigation
   ============================================ */
.news-edition-nav {
  border-top: 1px solid var(--nyt-border);
  background: #fbfbfb;
}

.news-edition-nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-edition-nav__side {
  flex: 1;
  display: flex;
}

.news-edition-nav__side--prev {
  justify-content: flex-start;
}

.news-edition-nav__side--next {
  justify-content: flex-end;
}

.news-edition-nav__link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--nyt-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.15s ease;
}

.news-edition-nav__link:hover {
  background: #ebebeb;
  text-decoration: none;
}

.news-edition-nav__current {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--nyt-text);
  letter-spacing: 0.3px;
  text-align: center;
  padding: 0 16px;
}

@media (max-width: 600px) {
  .news-edition-nav__container {
    padding: 4px 12px;
  }

  .news-edition-nav__link {
    font-size: 12px;
    padding: 8px;
    min-height: 40px;
  }

  .news-edition-nav__current {
    font-size: 12px;
    padding: 0 8px;
  }
}

/* ============================================
   Front Page Grid
   ============================================ */
.news-front {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Article Cards */
.news-card {
  display: flex;
  flex-direction: column;
}

.news-card__headline {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #000;
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.news-card__headline a {
  color: inherit;
  text-decoration: none;
}

.news-card__headline a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--nyt-text-light);
}

.news-card__excerpt {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--nyt-text-light);
  margin: 0 0 10px;
}

.news-card__meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--nyt-gray);
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.news-card__byline {
  font-weight: 700;
  color: var(--nyt-text);
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 0.5px;
}

.news-card__kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--section-color, var(--nyt-black));
  margin-bottom: 6px;
  display: inline-block;
}

.news-card__timestamp::before,
.news-card__reading-time::before {
  content: '·';
  margin-right: 6px;
  color: var(--nyt-gray);
}

/* Layouts (The Grid) */
.news-front__lead {
  padding-bottom: 12px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--nyt-border);
}

.news-front__lead .news-card__headline {
  font-size: 38px;
  text-align: center;
  margin-bottom: 15px;
  letter-spacing: -0.8px;
  color: #000;
}

.news-front__lead .news-card__excerpt {
  font-size: 17px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 15px;
}

.news-front__lead .news-card__meta {
  justify-content: center;
}

/* Lead card: hero split (image + three-box) */
.news-card__hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 10px;
}

.news-card__hero-split-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
}

.news-card__hero-split-context {
  background: #fcfcfc;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Three-box context items — shared base classes */
.news-card__context-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--nyt-border);
}

.news-card__context-item:first-child {
  padding-top: 0;
}

.news-card__context-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-card__context-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--nyt-black);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-card__context-label::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--nyt-black);
  border-radius: 50%;
}

.news-card__context-item p {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--nyt-text);
  margin: 0;
}

.news-front__majors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--nyt-border-dark);
  align-items: start;
}

.news-front__majors .news-card__headline {
  font-size: 26px;
}

.news-front__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--nyt-border);
}

.news-front__features .news-card__headline {
  font-size: 20px;
}

.news-front__standards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--nyt-border);
}

.news-front__standards .news-card__headline {
  font-size: 17px;
}

.news-front__briefs-heading {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--nyt-black);
  border-bottom: 1px solid var(--nyt-black);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.news-card--brief {
  padding: 12px 0;
  border-bottom: 1px solid var(--nyt-border);
}

.news-card--brief:last-child {
  border-bottom: none;
}

.news-card--brief .news-card__headline {
  font-size: 16px;
  display: inline;
}

.news-card--brief .news-card__kicker {
  display: inline;
  margin-right: 6px;
}

/* ============================================
   Article Page
   ============================================ */
.news-article {
  width: 100%;
}

.news-article__container {
  max-width: 640px; /* Classic narrow read column */
  margin: 0 auto;
  padding: 30px 20px 0;
}

.news-article__container:last-child {
  padding-bottom: 30px;
}

.news-article__breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--nyt-gray);
}

.news-article__breadcrumb a {
  color: var(--nyt-text);
  text-decoration: none;
}

.news-article__breadcrumb a:hover {
  text-decoration: underline;
}

.news-article__kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--section-color, var(--nyt-black));
  margin-bottom: 12px;
  display: block;
}

.news-article__headline {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin: 0 0 25px;
  color: #000;
}

.news-article__meta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--nyt-text-light);
  margin-bottom: 35px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.news-article__byline {
  font-weight: 700;
  color: var(--nyt-text);
  text-transform: uppercase;
  font-size: 0.95em;
  letter-spacing: 0.5px;
}

.news-article__date::before,
.news-article__reading-time::before {
  content: '·';
  margin-right: 12px;
  color: var(--nyt-gray);
}

/* Share bar */
.news-article__share {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid var(--nyt-border);
}

.news-article__share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--nyt-gray);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
  text-decoration: none;
  padding: 0;
  font: inherit;
}

.news-article__share-button:hover {
  color: var(--nyt-text);
  background-color: rgba(0, 0, 0, 0.04);
}

.news-article__share-button--copied {
  color: #2e7d32;
}

.news-article__share-divider {
  width: 1px;
  height: 18px;
  background: var(--nyt-border);
  margin: 0 4px;
}

/* Hero band — full-bleed background, contained content */
.news-article__hero-band {
  padding: 0;
  margin-top: 16px;
  margin-bottom: 16px;
}

.news-article__hero-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-article__hero-split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 30px;
  align-items: stretch;
}

.news-article__hero-split-image {
  display: flex;
  align-items: center;
}

.news-article__hero-contained {
  position: relative;
  width: 100%;
  margin: 0;
}

.news-article__hero-contained img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 50vh;
  object-fit: cover;
  border-radius: 2px;
}

.news-article__hero-contained .news-article__hero-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.35rem 0.6rem;
  background: rgba(18, 18, 18, 0.7);
  color: #f3f3f3;
  font-family: var(--font-sans);
  font-size: 11px;
  border-radius: 2px 0 2px 0;
}

/* Article split context — reuse .news-card__context-* base, override sizes */
.news-article__hero-split-context {
  background: #fcfcfc;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-article__hero-split-context .news-card__context-item {
  padding: 10px 0;
}

.news-article__hero-split-context .news-card__context-item p {
  font-size: 15px;
  line-height: 1.5;
}

.news-article__hero-split-context .news-card__context-label {
  gap: 6px;
}

.news-article__hero-split-context .news-card__context-label::before {
  width: 6px;
  height: 6px;
}

/* Article Body */
.news-article__body {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.65;
  color: #1f1f1f;
}

.news-article__body > p:first-of-type::first-letter {
  float: left;
  font-size: 3.8rem;
  line-height: 0.85;
  padding-right: 8px;
  padding-top: 4px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--nyt-black);
}

.news-article__body p {
  margin: 0 0 22px;
}

.news-article__body h2 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  margin: 45px 0 20px;
  color: var(--nyt-black);
}

.news-article__body h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin: 35px 0 15px;
  color: var(--nyt-black);
}

.news-article__body a {
  color: #326891; /* Subtle blue link */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-article__body a:hover {
  color: #121212;
}

.news-article__body blockquote {
  margin: 30px 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--nyt-black);
  font-style: italic;
  color: var(--nyt-text-light);
  font-size: 22px;
}

.news-article__body blockquote p {
  margin: 0;
}

.news-article__body ul,
.news-article__body ol {
  margin: 20px 0 30px;
  padding-left: 30px;
}

.news-article__body li {
  margin-bottom: 10px;
}

/* Sources */
.news-article__sources {
  margin-top: 60px;
  padding-top: 25px;
  border-top: 1px solid var(--nyt-border-dark);
}

.news-article__sources h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--nyt-black);
}

.news-article__sources-section {
  margin-bottom: 25px;
}

.news-article__sources-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--nyt-gray);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.news-article__source-item {
  font-family: var(--font-sans);
  font-size: 14px;
  margin-bottom: 8px;
  word-break: break-word;
}

.news-article__source-link {
  color: #326891;
  text-decoration: none;
}

.news-article__source-link:hover {
  text-decoration: underline;
}

/* ============================================
   Responsive - Mobile First
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .news-front__standards {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-front__standards .news-card:nth-child(n+3) {
    border-top: 1px solid var(--nyt-border);
    margin-top: 30px;
    padding-top: 30px;
  }

  .news-front__standards .news-card:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .news-front__standards .news-card:nth-child(4) {
    border-left: none;
    padding-left: 0;
  }

  .news-article__hero-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-article__hero-band-inner {
    max-width: 640px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .news-masthead__title {
    font-size: 52px;
  }
  
  .news-masthead__nav-list {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    padding: 0 10px;
  }
  
  .news-masthead__nav {
    border-bottom: none;
    border-top: none;
    padding: 0 0 10px;
  }

  .news-front__majors,
  .news-front__features,
  .news-front__standards {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-front__majors .news-card,
  .news-front__features .news-card,
  .news-front__standards .news-card {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--nyt-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .news-front__majors .news-card:last-child,
  .news-front__features .news-card:last-child,
  .news-front__standards .news-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .news-front__lead .news-card__headline {
    font-size: 32px;
  }

  .news-card--major .news-card__thumbnail {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 12px;
  }

  .news-card--major .news-card__thumbnail img {
    aspect-ratio: 16 / 9;
  }

  .news-article__headline {
    font-size: 34px;
  }

  .news-article__body {
    font-size: 18px;
  }
  
  .news-article__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .news-article__date::before,
  .news-article__reading-time::before {
    display: none;
  }

  .news-article__share {
    gap: 0;
  }

  .news-card__hero-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news-article__hero-band {
    padding: 12px 0;
    margin-top: 8px;
    margin-bottom: 12px;
  }

  .news-article__hero-split-context {
    padding: 12px 16px;
  }
}

@media print {
  .news-masthead__nav {
    display: none;
  }
}
.news-front__section-header {
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--nyt-black);
}

.news-front__section-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--nyt-black);
  margin: 0;
}

.news-front__bureau-line {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--nyt-gray);
  margin-top: -15px;
  margin-bottom: 30px;
}

.news-front__empty-message {
  font-family: var(--font-sans);
  color: var(--nyt-gray);
  text-align: center;
  padding: 40px 0;
}



/* Inline image */
.news-article__inline-image {
  margin: 2rem 0;
}

.news-article__inline-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--nyt-border);
}

.news-article__inline-credit {
  margin-top: 0.5rem;
  color: var(--nyt-gray);
  font-family: var(--font-sans);
  font-size: 12px;
}

/* Card thumbnails */
.news-card__thumbnail {
  margin-bottom: 1rem;
}

.news-card__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Major cards: headline full width, image right, excerpt wraps */
.news-card--major {
  display: block; /* Important: float requires block context, not flex */
}

/* Clearfix for floating thumbnail */
.news-card--major::after {
  content: "";
  display: table;
  clear: both;
}

.news-card--major .news-card__thumbnail {
  float: right;
  width: 40%;
  max-width: 220px;
  margin: 5px 0 10px 20px;
}

.news-card--major .news-card__thumbnail img {
  aspect-ratio: 3 / 2; /* Classic news photo ratio instead of square */
  border-radius: 2px;
}

/* Feature and standard cards: top-mounted thumbnail */
.news-card--feature .news-card__thumbnail,
.news-card--standard .news-card__thumbnail {
  margin-bottom: 0.75rem;
}

.news-card--feature .news-card__thumbnail img,
.news-card--standard .news-card__thumbnail img {
  aspect-ratio: 16 / 9;
  border-radius: 2px;
}

/* The Wire: 3-column layout for briefs on desktop */
@media (min-width: 769px) {
  .news-front__briefs {
    column-count: 3;
    column-gap: 30px;
  }

  .news-front__briefs-heading {
    column-span: all;
  }

  .news-card--brief {
    break-inside: avoid;
  }
}

@media (max-width: 768px) {
}

/* ============================================
   Footer
   ============================================ */
.news-footer {
  border-top: 2px solid var(--nyt-black);
  margin-top: 60px;
  padding: 30px 20px;
}

.news-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.news-footer__links {
  font-family: var(--font-sans);
  font-size: 13px;
  margin-bottom: 12px;
}

.news-footer__links a {
  color: var(--nyt-text);
  text-decoration: none;
}

.news-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-footer__links span {
  color: var(--nyt-gray);
  margin: 0 8px;
}

.news-footer__brand {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--nyt-gray);
}

.news-footer__brand a {
  color: var(--nyt-text);
  text-decoration: none;
  font-weight: 500;
}

.news-footer__brand a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-footer__copyright {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--nyt-gray);
  margin-top: 6px;
}

/* ============================================
   Legal Pages
   ============================================ */
.news-legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.news-legal__title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--nyt-black);
}

.news-legal__effective {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--nyt-gray);
  margin-bottom: 40px;
}

.news-legal__content h2 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--nyt-black);
}

.news-legal__content p {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--nyt-text);
  margin: 0 0 18px;
}

.news-legal__content ul {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--nyt-text);
  margin: 0 0 18px;
  padding-left: 24px;
}

.news-legal__content li {
  margin-bottom: 8px;
}

.news-legal__content a {
  color: #326891;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.news-legal__content a:hover {
  color: var(--nyt-text);
}

