:root {
  color-scheme: light;
  --ink: #121923;
  --muted: #5c6670;
  --line: #d8e0e2;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-ink: #073d3a;
  --gold: #c9972b;
  --rust: #a74b2a;
  --shadow: 0 24px 70px rgba(18, 25, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  min-height: 92vh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 18, 28, 0.92) 0%, rgba(7, 18, 28, 0.72) 43%, rgba(7, 18, 28, 0.32) 100%),
    url("https://images.unsplash.com/photo-1504711434969-e33886168f5c?auto=format&fit=crop&w=2100&q=82") center/cover;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.03rem;
}

.brand small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: auto auto 7vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.card-label,
.category {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.category[data-cat="Sports"] {
  color: #16a34a;
}

.category[data-cat="Business"] {
  color: #2563eb;
}

.category[data-cat="Technology"] {
  color: #7c3aed;
}

.category[data-cat="Culture"] {
  color: #db2777;
}

.category[data-cat="News"] {
  color: #dc2626;
}

h1 {
  max-width: 930px;
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(2.25rem, 7vw, 6.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  max-width: 710px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.72;
}

.searchbar {
  width: min(660px, 100%);
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.searchbar input,
.searchbar button {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font: inherit;
}

.searchbar input {
  min-width: 0;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.searchbar input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.searchbar button {
  padding: 0 24px;
  color: #07121c;
  background: #f4d06f;
  font-weight: 900;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #f4d06f;
  outline-offset: 3px;
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 24px;
  background: rgba(7, 18, 28, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card div {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-card span {
  display: block;
  font-family: Newsreader, Georgia, serif;
  font-size: 2.15rem;
  font-weight: 750;
  line-height: 1;
}

.hero-card small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 74px;
}

.ticker {
  min-height: 64px;
  margin: -66px 0 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(216, 224, 226, 0.92);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.ticker span {
  color: var(--rust);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.section-head {
  margin-bottom: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head .eyebrow {
  color: var(--accent);
}

h2 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.75rem, 4.5vw, 3.45rem);
  line-height: 1;
  letter-spacing: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filters button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.filters button:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.filters button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--accent-ink);
  background: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(7, 61, 58, 0.25);
}

.featured {
  margin-bottom: 24px;
}

.feature-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-article.reading-layout,
.featured .feature-article {
  grid-template-columns: 1fr;
}

.post-body {
  padding: clamp(24px, 5vw, 44px);
}

.feature-image {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 8px;
  background: #d8e0e2;
}

.feature-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.feature-image figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  background: #f1f5f5;
}

.post-body h2 {
  max-width: 850px;
  margin-bottom: 18px;
}

.post-body p,
.source-panel p,
.credit-panel p {
  color: var(--muted);
  line-height: 1.72;
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.source-panel,
.credit-panel {
  padding: clamp(22px, 4vw, 34px);
  background: #f1f5f5;
  border-left: 1px solid var(--line);
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.4;
}

.source-list a::after {
  content: " ->";
  color: var(--gold);
}

.read-more-link,
.load-more {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-ink);
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--accent-ink);
  text-decoration: none;
  font-weight: 900;
}

.results-summary {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  min-height: 260px;
  opacity: 0;
  transform: translateY(24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 160ms ease, border-color 160ms ease;
}

.post-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.38);
  box-shadow: var(--shadow);
}

.post-card:hover .card-image {
  transform: scale(1.035);
}

.card-link {
  min-height: 260px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  background: #d8e0e2;
  transition: transform 220ms ease;
}

.post-card .category,
.post-card h3,
.post-card p,
.card-meta {
  margin-left: 24px;
  margin-right: 24px;
}

.post-card .category {
  margin-top: 24px;
}

.post-card h3 {
  margin: 12px 24px;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.post-card p {
  margin: 0 24px;
  color: var(--muted);
  line-height: 1.58;
}

.card-meta {
  margin-top: auto;
  margin-bottom: 24px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.empty {
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.68);
}

.footer {
  border-top: 1px solid var(--line);
  background: #101820;
  color: rgba(255, 255, 255, 0.72);
}

.footer > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 42px;
}

.load-more {
  margin: 28px auto 0;
  cursor: pointer;
}

.load-more:not([hidden]) {
  display: flex;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.share-buttons button {
  font: inherit;
  cursor: pointer;
}

.skeleton-card {
  opacity: 1;
  transform: none;
  padding: 24px;
}

.skeleton-card span,
.skeleton-card strong,
.skeleton-card p {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef3f3 0%, #dfe8e8 48%, #eef3f3 100%);
  background-size: 220% 100%;
  animation: skeletonPulse 1.35s ease-in-out infinite;
}

.skeleton-card span {
  width: 36%;
  height: 14px;
}

.skeleton-card strong {
  width: 82%;
  height: 34px;
  margin-top: 24px;
}

.skeleton-card p {
  width: 100%;
  height: 84px;
  margin-top: 22px;
}

.post-header {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 18, 28, 0.94) 0%, rgba(7, 18, 28, 0.78) 100%),
    url("generated/ai-trending-editorial.png") center/cover;
}

.post-hero {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 84px;
}

.post-main {
  padding-top: 44px;
}

.post-detail {
  margin-bottom: 54px;
}

.related-posts {
  margin-top: 52px;
}

.reading-progress {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.back-to-top {
  width: 48px;
  height: 48px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--accent-ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes skeletonPulse {
  to {
    background-position: -220% 0;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr);
  gap: 32px;
  margin-bottom: 30px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer strong {
  color: #fff;
}

.footer p {
  max-width: 780px;
  margin: 0;
  line-height: 1.65;
}

.footer ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer nav strong {
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-cta {
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.footer-cta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.footer-cta .read-more-link {
  margin-top: 16px;
  color: #07121c;
  border-color: #f4d06f;
  background: #f4d06f;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 0.86rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --line: #1e293b;
    --paper: #0f172a;
    --surface: #1e293b;
    --accent: #14b8a6;
    --accent-ink: #2dd4bf;
    --gold: #f59e0b;
    --rust: #fb923c;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  }

  .ticker,
  .post-card,
  .feature-article,
  .filters button,
  .empty {
    background: var(--surface);
  }

  .source-panel,
  .credit-panel,
  .feature-image figcaption {
    background: #162032;
  }

  .skeleton-card span,
  .skeleton-card strong,
  .skeleton-card p {
    background: linear-gradient(90deg, #1e293b 0%, #334155 48%, #1e293b 100%);
    background-size: 220% 100%;
  }
}

@media (min-width: 921px) {
  .source-panel,
  .credit-panel {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .post-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .skeleton-card span,
  .skeleton-card strong,
  .skeleton-card p {
    animation: none;
  }
}

@media (max-width: 920px) {
  .hero,
  .feature-article {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
    margin-bottom: 42px;
  }

  .hero-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .hero-card .card-label {
    grid-column: 1 / -1;
  }

  .hero-card div {
    padding: 16px 12px 4px 0;
  }

  .source-panel,
  .credit-panel {
    position: static;
    max-height: none;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }

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

@media (max-width: 620px) {
  .site-header {
    min-height: 96vh;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-actions a {
    justify-content: center;
    flex: 0 1 auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .searchbar,
  .ticker,
  .hero-card,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .hero-card div {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .ticker {
    margin-top: -34px;
  }

  .card-meta {
    flex-direction: column;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.55rem);
    line-height: 1.02;
  }
}

/* AdSense-ready editorial polish: lighter, easier to scan, and less dashboard-like. */
:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5d6975;
  --line: #dfe5e8;
  --paper: #f6f7f4;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-ink: #0b4f4a;
  --gold: #b7791f;
  --rust: #9f3f25;
  --shadow: 0 14px 36px rgba(23, 32, 42, 0.08);
}

body {
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfbf8 0%, #f3f5f1 100%);
}

.site-header {
  min-height: auto;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 245, 0.92)),
    url("https://images.unsplash.com/photo-1495020689067-958852a7765e?auto=format&fit=crop&w=2100&q=82") center/cover;
  border-bottom: 1px solid var(--line);
}

.topbar {
  padding: 18px 0;
}

.brand,
.nav-actions a {
  color: var(--ink);
}

.brand small {
  color: var(--muted);
}

.nav-actions a {
  min-height: 38px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.nav-actions a:hover {
  border-color: rgba(15, 118, 110, 0.38);
  color: var(--accent-ink);
}

.hero {
  margin: 34px auto 58px;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: center;
}

h1 {
  max-width: 840px;
  font-size: clamp(2.25rem, 5.8vw, 5rem);
  line-height: 0.98;
}

.lede {
  max-width: 720px;
  color: #334155;
  font-size: 1.08rem;
}

.searchbar {
  max-width: 720px;
}

.searchbar input,
.searchbar button {
  border-color: #cfd8dc;
}

.searchbar input {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.searchbar input::placeholder {
  color: #7a8691;
}

.searchbar button,
.footer-cta .read-more-link {
  color: #17202a;
  background: #f2c94c;
}

.hero-card {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card div {
  border-top-color: var(--line);
}

.hero-card small {
  color: var(--muted);
}

main {
  padding-top: 28px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.trust-strip span {
  min-height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--accent-ink);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 800;
}

.ticker {
  margin: 0 0 46px;
  background: var(--surface);
}

.section-head {
  align-items: center;
}

.feature-article {
  box-shadow: var(--shadow);
}

.featured .feature-article .post-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}

.featured .feature-image {
  margin: 0;
}

.featured .feature-image img {
  aspect-ratio: 4 / 3;
}

.featured .post-body > .category,
.featured .post-body > h2,
.featured .post-body > .feature-meta,
.featured .post-body > p {
  grid-column: 2;
}

.featured .feature-image {
  grid-row: 1 / span 7;
}

.editorial-note {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  margin: 30px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: #ffffff;
}

.editorial-note p:last-child {
  margin: 0;
  color: var(--muted);
}

.post-grid {
  gap: 22px;
}

.post-card {
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 32, 42, 0.04);
}

.post-card h3 {
  font-size: 1.35rem;
  line-height: 1.12;
}

.post-card p {
  font-size: 0.96rem;
}

.card-image {
  aspect-ratio: 16 / 9;
}

.footer {
  color: #40505d;
  background: #f8faf8;
}

.footer strong {
  color: var(--ink);
}

.footer a {
  color: #40505d;
}

.footer a:hover {
  color: var(--accent-ink);
}

.footer-cta {
  background: #fff;
  border-color: var(--line);
}

.footer-note {
  border-top-color: var(--line);
}

.post-header {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 245, 0.92)),
    url("https://images.unsplash.com/photo-1495020689067-958852a7765e?auto=format&fit=crop&w=2100&q=82") center/cover;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 920px) {
  .hero,
  .featured .feature-article .post-body,
  .editorial-note,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .featured .post-body > .category,
  .featured .post-body > h2,
  .featured .post-body > .feature-meta,
  .featured .post-body > p,
  .featured .feature-image {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: auto;
  }

  .hero {
    margin-bottom: 34px;
  }
}

/* Source-inspired editorial structure: masthead, archive rows, and article details. */
.masthead {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(223, 229, 232, 0.72);
  border-bottom: 1px solid rgba(223, 229, 232, 0.92);
}

.mast-date {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mast-title {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 750;
  line-height: 0.88;
}

.mast-title span {
  color: var(--accent-ink);
}

.mast-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 22px;
  text-align: right;
}

.mast-stats strong,
.archive-stats strong {
  display: block;
  font-family: Newsreader, Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.mast-stats span,
.archive-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.trending-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.trending-panel ol,
.sidebar-related {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trending-panel li + li,
.sidebar-related li + li {
  border-top: 1px solid var(--line);
}

.trending-panel a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
}

.trending-panel li:first-child a {
  padding-top: 0;
}

.trending-panel span {
  color: #a4adb5;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1;
}

.trending-panel strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.35;
}

.trending-panel small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.archive-header {
  min-height: auto;
}

.archive-hero {
  padding-bottom: 52px;
}

.archive-search {
  margin-top: 26px;
}

.archive-main {
  padding-top: 34px;
}

.archive-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 22px;
  text-align: right;
}

.archive-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.archive-row {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  transition: background 160ms ease, transform 160ms ease;
}

.archive-row:hover {
  background: #fff;
  transform: translateX(3px);
}

.archive-row a {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 72px;
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  text-decoration: none;
}

.archive-row time,
.archive-read {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.archive-row h2 {
  margin: 4px 0 8px;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.06;
}

.archive-row p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.breadcrumb {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--accent-ink);
  text-decoration: none;
}

.article-main {
  width: min(1120px, calc(100% - 32px));
}

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.sidebar-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.sidebar-block dl {
  margin: 0;
}

.sidebar-block dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.sidebar-block dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-block dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.sidebar-related a {
  display: block;
  padding: 12px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.sidebar-related a:hover {
  color: var(--accent-ink);
}

@media (max-width: 920px) {
  .masthead,
  .archive-tools {
    align-items: start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .mast-stats,
  .archive-stats {
    width: 100%;
    text-align: left;
  }

  .article-wrap,
  .archive-row a {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .mast-stats,
  .archive-stats {
    grid-template-columns: 1fr;
  }
}
