.news-page,
.article-page {
  width: min(calc(100% - clamp(48px, 6vw, 120px)), 1440px);
  max-width: none !important;
  padding: 48px 0 72px !important;
}

.news-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border-card);
}

.news-kicker,
.news-featured-label,
.related-news-heading span {
  color: var(--primary);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-page-header h1 {
  margin: 8px 0 10px;
  color: var(--text-main);
  font: 850 clamp(2.2rem, 4vw, 4rem)/1.05 var(--font-title);
}

.news-page-header p {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.news-header-stat {
  min-width: 150px;
  padding-left: 28px;
  border-left: 1px solid var(--border-card);
}

.news-header-stat strong,
.news-header-stat span {
  display: block;
}

.news-header-stat strong {
  color: var(--text-main);
  font-size: 2rem;
}

.news-header-stat span {
  color: var(--text-muted);
  font-size: .78rem;
}

.news-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, .75fr);
  min-height: 410px;
  margin: 36px 0 54px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: var(--bg-card);
}

.news-featured-media,
.news-card-media {
  display: block;
  overflow: hidden;
  background: var(--bg-card-hover);
}

.news-featured-media img,
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-featured-media:hover img,
.news-card-media:hover img {
  transform: scale(1.025);
}

.news-featured-media > span,
.news-card-media > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
}

.news-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 58px);
}

.news-featured-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
}

.news-featured-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.news-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: .72rem;
}

.news-item-meta a {
  color: var(--primary);
  font-weight: 750;
}

.news-featured-body h2 {
  margin: 15px 0 14px;
  font: 800 clamp(1.55rem, 2.5vw, 2.45rem)/1.2 var(--font-title);
}

.news-featured-body h2 a,
.news-card-body h2 a {
  color: var(--text-main);
}

.news-featured-body p,
.news-card-body p {
  color: var(--text-muted);
  line-height: 1.65;
}

.news-read-link {
  align-self: flex-start;
  margin-top: 12px;
  color: var(--primary);
  font-size: .85rem;
  font-weight: 800;
}

.news-read-link span {
  margin-left: 5px;
}

.news-toolbar {
  display: flex;
  gap: 10px;
  max-width: 650px;
}

.news-search {
  position: relative;
  flex: 1;
}

.news-search svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  transform: translateY(-50%);
}

.news-search input,
.news-toolbar button {
  height: 46px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
}

.news-search input {
  width: 100%;
  padding: 0 16px 0 44px;
  background: var(--bg-card);
  color: var(--text-main);
}

.news-toolbar button {
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 750;
}

.news-category-tabs {
  display: flex;
  gap: 7px;
  margin: 18px 0 30px;
  overflow-x: auto;
  scrollbar-width: none;
}

.news-category-tabs::-webkit-scrollbar {
  display: none;
}

.news-category-tabs a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.news-category-tabs a.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.news-category-tabs span {
  opacity: .72;
  font-size: .68rem;
}

.news-result-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: .8rem;
}

.news-result-summary a {
  color: var(--primary);
  font-weight: 700;
}

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

.news-card-pro {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: var(--bg-card);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.news-card-pro:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border-card));
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
}

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

.news-card-body {
  padding: 20px;
}

.news-card-body h2 {
  min-height: 2.65em;
  margin: 11px 0 10px;
  font: 800 1.08rem/1.32 var(--font-title);
}

.news-card-body p {
  min-height: 4.8em;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: .82rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: .7rem;
}

.news-card-footer a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--bg-card-hover);
  color: var(--primary);
  font-size: 1rem;
}

.news-empty-state {
  padding: 80px 24px;
  border: 1px dashed var(--border-card);
  border-radius: 8px;
  text-align: center;
}

.news-empty-state svg {
  width: 46px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.5;
}

.news-empty-state h2 {
  margin: 16px 0 6px;
  color: var(--text-main);
  font-size: 1.25rem;
}

.news-empty-state p {
  color: var(--text-muted);
}

.news-empty-state a {
  color: var(--primary);
  font-weight: 750;
}

.reading-progress {
  position: fixed;
  top: 80px;
  left: 0;
  z-index: 110;
  width: 100%;
  height: 3px;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
}

.news-preview-banner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px max(24px, calc((100vw - 1280px) / 2));
  background: #f59e0b;
  color: #111827;
  font-size: .82rem;
}

.news-preview-banner a {
  color: #111827;
  font-weight: 800;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: var(--text-muted);
  font-size: .75rem;
}

.article-breadcrumb a {
  color: var(--text-muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(42px, 6vw, 88px);
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-category {
  color: var(--primary);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 920px;
  margin: 14px 0 18px;
  color: var(--text-main);
  font: 850 clamp(2rem, 4vw, 3.75rem)/1.1 var(--font-title);
}

.article-lead {
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 11px;
}

.article-author-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.article-byline .article-author-avatar {
  display: grid;
}

.article-byline strong,
.article-byline span {
  display: block;
}

.article-byline strong {
  color: var(--text-main);
  font-size: .8rem;
}

.article-byline div span {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: .7rem;
}

.article-cover {
  margin: 34px 0 36px;
}

.article-cover img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 8px;
}

.article-cover figcaption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: .7rem;
}

.article-body {
  max-width: 820px;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.85;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body table {
  margin: 0 0 1.5em;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 1.8em 0 .7em;
  color: var(--text-main);
  line-height: 1.25;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-body blockquote {
  padding: 18px 22px;
  border-left: 3px solid var(--primary);
  background: var(--bg-card);
  color: var(--text-muted);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
}

.article-body th,
.article-body td {
  padding: 10px;
  border: 1px solid var(--border-card);
  text-align: left;
}

.article-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 820px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-card);
}

.article-footer-actions strong,
.article-footer-actions span {
  display: block;
}

.article-footer-actions strong {
  color: var(--text-main);
  font-size: .86rem;
}

.article-footer-actions div > span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: .72rem;
}

.article-share {
  display: flex;
  gap: 8px;
}

.article-share a,
.article-share button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 800;
}

.article-share svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.article-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 30px;
}

.article-side-search,
.article-side-section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-card);
}

.article-side-search label {
  display: block;
  margin-bottom: 9px;
  color: var(--text-main);
  font-size: .78rem;
  font-weight: 800;
}

.article-side-search div {
  display: flex;
}

.article-side-search input,
.article-side-search button {
  height: 42px;
  border: 1px solid var(--border-card);
}

.article-side-search input {
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  border-radius: 8px 0 0 8px;
  background: var(--bg-card);
  color: var(--text-main);
}

.article-side-search button {
  width: 42px;
  border-radius: 0 8px 8px 0;
  background: var(--primary);
  color: #fff;
}

.article-side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.article-side-heading h2 {
  margin: 0;
  color: var(--text-main);
  font-size: .9rem;
}

.article-side-heading a {
  color: var(--primary);
  font-size: .7rem;
}

.article-recent-list,
.article-category-list {
  display: grid;
}

.article-recent-list a {
  padding: 13px 0;
  border-bottom: 1px solid var(--border-card);
}

.article-recent-list a:last-child {
  border-bottom: 0;
}

.article-recent-list span {
  color: var(--text-muted);
  font-size: .65rem;
}

.article-recent-list strong {
  display: block;
  margin-top: 5px;
  color: var(--text-main);
  font-size: .82rem;
  line-height: 1.4;
}

.article-category-list a {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  color: var(--text-muted);
  font-size: .78rem;
}

.article-category-list b {
  color: var(--text-main);
}

.related-news {
  margin-top: 84px;
  padding-top: 42px;
  border-top: 1px solid var(--border-card);
}

.related-news-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.related-news-heading h2 {
  margin: 5px 0 0;
  color: var(--text-main);
  font-size: 1.5rem;
}

.related-news-heading a {
  color: var(--primary);
  font-size: .78rem;
  font-weight: 750;
}

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

.related-news-grid a {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: var(--bg-card);
}

.related-news-grid span,
.related-news-grid small {
  color: var(--text-muted);
  font-size: .68rem;
}

.related-news-grid strong {
  margin: 12px 0 auto;
  color: var(--text-main);
  line-height: 1.4;
}

.related-news-grid small {
  margin-top: 18px;
  color: var(--primary);
  font-weight: 750;
}

.article-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: .78rem;
  font-weight: 750;
  opacity: 0;
  transform: translateY(12px);
  transition: .2s ease;
  pointer-events: none;
}

.article-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-featured {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 38px;
  }
}

@media (max-width: 800px) {
  .news-page,
  .article-page {
    width: calc(100% - 40px);
    padding-top: 32px !important;
  }
  .news-page-header {
    align-items: flex-start;
  }
  .news-featured {
    grid-template-columns: 1fr;
  }
  .news-featured-media {
    min-height: 320px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-side-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .news-page,
  .article-page {
    width: 100%;
    padding: 26px 16px 48px !important;
  }
  .news-page-header {
    display: block;
    padding-bottom: 24px;
  }
  .news-page-header h1 {
    font-size: 2rem;
  }
  .news-page-header p {
    font-size: .86rem;
  }
  .news-header-stat {
    display: none;
  }
  .news-featured {
    min-height: 0;
    margin: 24px 0 38px;
  }
  .news-featured-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .news-featured-body {
    padding: 22px 18px;
  }
  .news-featured-body h2 {
    font-size: 1.35rem;
  }
  .news-toolbar {
    max-width: none;
  }
  .news-toolbar button {
    width: 46px;
    padding: 0;
    font-size: 0;
  }
  .news-toolbar button::after {
    content: "\2192";
    font-size: 1rem;
  }
  .news-category-tabs {
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .news-card-pro {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }
  .news-card-media {
    height: 100%;
    min-height: 154px;
    aspect-ratio: auto;
  }
  .news-card-body {
    padding: 14px;
  }
  .news-card-body h2 {
    min-height: 0;
    margin: 7px 0;
    font-size: .92rem;
  }
  .news-card-body p {
    min-height: 0;
    font-size: .73rem;
    -webkit-line-clamp: 2;
  }
  .news-card-footer {
    margin-top: 10px;
    padding-top: 9px;
  }
  .news-card-footer > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .reading-progress {
    top: 60px;
  }
  .news-preview-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }
  .article-breadcrumb {
    margin-bottom: 24px;
    overflow: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .article-hero h1 {
    margin-top: 10px;
    font-size: 2rem;
  }
  .article-lead {
    font-size: .92rem;
  }
  .article-cover {
    margin: 26px -16px 28px;
  }
  .article-cover img {
    border-radius: 0;
  }
  .article-cover figcaption {
    padding-inline: 16px;
  }
  .article-body {
    font-size: .94rem;
    line-height: 1.78;
  }
  .article-footer-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .article-sidebar {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
  .article-side-search {
    grid-column: auto;
  }
  .related-news {
    margin-top: 54px;
  }
  .related-news-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .related-news-grid {
    grid-template-columns: 1fr;
  }
  .related-news-grid a {
    min-height: 130px;
  }
  .article-toast {
    right: 16px;
    bottom: 92px;
    left: 16px;
    text-align: center;
  }
}
