html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  background: #f5f6f8;
  color: #14171f;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

a {
  text-decoration: none;
}

.top-bar {
  background: #111827;
  color: #d1d5db;
  font-size: 0.82rem;
  padding: 0.45rem 0;
}

.news-brand {
  align-items: center;
  display: inline-flex;
  margin-right: 1.25rem;
  padding: 0;
}

.news-brand img {
  display: block;
  height: 42px;
  object-fit: contain;
  width: auto;
}

.public-nav {
  gap: 0.35rem;
  margin-left: 2rem;
}

.public-nav .nav-link {
  font-weight: 650;
}

.public-search-form {
  align-items: center;
  display: flex;
  margin-left: auto;
  max-width: 260px;
  position: relative;
  width: 100%;
}

.public-search-form input {
  border-radius: 999px;
  padding-right: 2.6rem;
}

.public-search-form button {
  align-items: center;
  background: #111827;
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 1rem;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 4px;
  width: 34px;
}

.public-main {
  padding-top: 1.5rem;
}

.public-footer {
  background: #fff;
  margin-top: 3rem;
  padding: 1.5rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #4b5563;
  font-weight: 700;
}

.news-hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  margin-bottom: 1.5rem;
}

.news-hero.no-focus {
  grid-template-columns: 1fr;
}

.lead-story,
.headline-stack,
.sidebar-panel,
.newsletter-panel,
.empty-news-state {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
}

.lead-story {
  overflow: hidden;
}

.story-image-link,
.article-image {
  background: #e8edf3;
  display: block;
  overflow: hidden;
}

.lead-story-image {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.lead-story-content {
  padding: 1.5rem;
}

.story-meta,
.story-footer {
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  font-weight: 700;
  gap: 0.75rem;
  text-transform: uppercase;
}

.lead-story h1 {
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 850;
  line-height: 1.02;
  margin: 0.9rem 0;
}

.lead-story h1 a,
.headline-item h3 a,
.article-card h3 a,
.most-read-list a {
  color: #111827;
}

.lead-story p {
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.1rem;
  max-width: 60rem;
}

.headline-stack,
.sidebar-panel,
.newsletter-panel {
  padding: 1.25rem;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-heading.compact {
  align-items: start;
  display: block;
}

.section-kicker {
  color: #e11d48;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.newsletter-panel h2 {
  color: #111827;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.1;
  margin: 0.25rem 0 0;
}

.headline-item {
  border-top: 1px solid #edf0f4;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 1rem 0;
}

.headline-item:first-of-type {
  border-top: 0;
}

.headline-item img {
  aspect-ratio: 1 / 0.78;
  border-radius: 6px;
  object-fit: cover;
  width: 92px;
}

.headline-item span {
  color: #e11d48;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.headline-item h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0.25rem 0 0;
}

.breaking-strip {
  align-items: center;
  background: #111827;
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
}

.breaking-strip strong {
  background: #e11d48;
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
  text-transform: uppercase;
}

.breaking-list {
  display: flex;
  flex: 1;
  gap: 1rem;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.breaking-list a {
  color: #fff;
  font-weight: 650;
  min-width: 0;
  overflow-wrap: anywhere;
}

.slider-strip-section,
.premium-section {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}

.slider-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slider-story-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.slider-story-card a {
  color: #fff;
  display: block;
  min-height: 230px;
  position: relative;
}

.slider-story-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.slider-story-card::after {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.82));
  content: "";
  inset: 0;
  position: absolute;
}

.slider-story-card h3 {
  left: 1rem;
  position: absolute;
  right: 1rem;
  z-index: 1;
}

.slider-story-card h3 {
  bottom: 1rem;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.18;
  margin: 0;
}

.premium-section {
  background: #111827;
  border-color: #111827;
}

.premium-section .section-heading h2 {
  color: #fff;
}

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

.premium-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.premium-card img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.premium-card div {
  padding: 1rem;
}

.premium-card h3 {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0.6rem 0 0;
}

.premium-card h3 a {
  color: #111827;
}

.category-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 2rem;
}

.category-chip {
  align-items: center;
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  color: #111827;
  display: flex;
  justify-content: flex-start;
  padding: 0.9rem 1rem;
}

.category-chip span {
  font-weight: 800;
}

.category-chip small {
  color: #6b7280;
  font-weight: 750;
}

.top-stories-section {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}

.top-stories-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.top-story-item {
  border-left: 1px solid #edf0f4;
  border-top: 1px solid #edf0f4;
  min-height: 132px;
  padding: 1rem;
}

.top-story-item:nth-child(-n + 4) {
  border-top: 0;
}

.top-story-item:nth-child(4n + 1) {
  border-left: 0;
}

.top-story-item span,
.category-news-list span {
  color: #e11d48;
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.top-story-item h3,
.category-news-list h3 {
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.32;
  margin: 0;
}

.top-story-item h3 a,
.category-news-list h3 a {
  color: #111827;
}

.top-story-item h3 a:hover,
.category-news-list h3 a:hover {
  color: #e11d48;
}

.news-layout {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 340px;
}

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

.article-card {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.article-card img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.article-card-body {
  padding: 1rem;
}

.article-card h3 {
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.25;
  margin: 0.55rem 0;
}

.article-card h3 a,
.top-story-item h3 a,
.category-news-list h3 a,
.headline-item h3 a,
.latest-timeline a,
.most-read-list a {
  overflow-wrap: anywhere;
  word-break: normal;
}

.article-card h3 a,
.article-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card h3 a {
  -webkit-line-clamp: 3;
}

.article-card p {
  color: #5f6674;
  font-size: 0.94rem;
  -webkit-line-clamp: 3;
  line-height: 1.5;
  margin: 0;
}

.category-sections {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.category-news-block {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  padding: 1.25rem;
}

.category-news-block .section-heading a {
  color: #e11d48;
  font-size: 0.85rem;
  font-weight: 800;
}

.category-news-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
}

.category-main-story {
  display: grid;
  gap: 1rem;
}

.category-main-story img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.category-main-story h3 {
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.15;
  margin: 0.55rem 0;
}

.category-main-story h3 a,
.category-news-list h3 a {
  color: #111827;
}

.category-main-story p {
  color: #5f6674;
  line-height: 1.55;
  margin: 0;
}

.category-news-list {
  display: grid;
}

.category-news-list article {
  border-top: 1px solid #edf0f4;
  padding: 0.95rem 0;
}

.category-news-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.news-sidebar {
  display: grid;
  gap: 1rem;
}

.ad-panel {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  overflow: hidden;
}

.ad-panel a,
.ad-panel span {
  color: #111827;
  display: block;
  font-weight: 800;
}

.ad-panel img {
  display: block;
  width: 100%;
}

.ad-panel-home-top {
  margin-bottom: 1.5rem;
}

.ad-panel-home-top img {
  max-height: 180px;
  object-fit: cover;
}

.ad-panel-article-inline {
  grid-column: 1 / -1;
}

.ad-panel-article-inline img {
  max-height: 220px;
  object-fit: cover;
}

.most-read-list {
  counter-reset: most-read;
  list-style: none;
  margin: 0;
  padding: 0;
}

.most-read-list li {
  border-top: 1px solid #edf0f4;
  counter-increment: most-read;
  padding: 1rem 0 1rem 3rem;
  position: relative;
}

.most-read-list li:first-child {
  border-top: 0;
}

.most-read-list li::before {
  color: #e11d48;
  content: counter(most-read, decimal-leading-zero);
  font-size: 1.15rem;
  font-weight: 900;
  left: 0;
  position: absolute;
  top: 0.95rem;
}

.most-read-list a {
  display: block;
  font-weight: 800;
  line-height: 1.35;
}

.most-read-list span {
  color: #6b7280;
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.latest-timeline {
  display: grid;
  gap: 0;
}

.latest-timeline article {
  border-top: 1px solid #edf0f4;
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0;
}

.latest-timeline article:first-child {
  border-top: 0;
}

.latest-timeline time {
  color: #e11d48;
  font-size: 0.78rem;
  font-weight: 850;
}

.latest-timeline a {
  color: #111827;
  font-weight: 800;
  line-height: 1.35;
}

.newsletter-panel {
  background: #fff7ed;
  border-color: #fed7aa;
}

.newsletter-panel form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.empty-news-state {
  padding: 3rem;
}

.empty-news-state h1,
.empty-news-state h2 {
  font-weight: 850;
  line-height: 1.1;
}

.empty-news-state p {
  color: #5f6674;
  max-width: 48rem;
}

.empty-news-state.small {
  grid-column: 1 / -1;
  padding: 2rem;
}

.article-top-ad {
  margin: 0 auto 1.5rem;
  max-width: 1040px;
}

.article-detail {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  overflow: hidden;
}

.article-page-layout {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.article-detail-header {
  padding: 2rem 2rem 1.25rem;
}

.article-detail-header .story-meta a {
  color: #e11d48;
}

.article-detail-header h1 {
  color: #111827;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.02;
  margin: 0.9rem 0 1rem;
}

.article-detail-header p {
  color: #4b5563;
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 0;
}

.article-detail-image {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.article-detail .ad-panel-article-inline {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  margin: 0;
}

.article-detail-content {
  color: #1f2937;
  font-size: 1.08rem;
  line-height: 1.75;
  padding: 2rem;
}

.article-detail-content img {
  height: auto;
  max-width: 100%;
}

.article-detail-content p,
.article-detail-content ul,
.article-detail-content ol,
.article-detail-content blockquote {
  margin-bottom: 1.2rem;
}

.article-detail-content h2,
.article-detail-content h3 {
  color: #111827;
  font-weight: 850;
  line-height: 1.2;
  margin: 1.75rem 0 0.85rem;
}

.article-gallery {
  border-top: 1px solid #edf0f4;
  padding: 1.5rem 2rem 2rem;
}

.article-gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-gallery figure {
  margin: 0;
}

.article-gallery img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.article-gallery figcaption {
  color: #6b7280;
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.article-sidebar {
  position: sticky;
  top: 1rem;
}

.related-news-section {
  margin-top: 1.75rem;
}

.static-page,
.contact-page {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  margin: 0 auto;
  max-width: 920px;
}

.static-page-header,
.contact-page {
  padding: 2rem;
}

.static-page-header h1,
.contact-page h1 {
  color: #111827;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0.5rem 0 0;
}

.contact-page {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
}

.contact-page p {
  color: #5f6674;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.search-page {
  display: grid;
  gap: 1rem;
}

.search-page-form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 0.5rem;
}

.not-found-page {
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 820px;
  padding: 3rem;
}

.not-found-page h1 {
  color: #111827;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}

.not-found-page p {
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  max-width: 44rem;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pwa-install-card {
  background: #fff;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  bottom: 1rem;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16);
  color: #111827;
  display: grid;
  gap: 0.6rem;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 1rem;
  position: fixed;
  right: 1rem;
  z-index: 1080;
}

.pwa-install-title {
  font-weight: 850;
  padding-right: 2rem;
}

.pwa-install-text {
  color: #4b5563;
  font-size: 0.94rem;
  line-height: 1.45;
}

.pwa-install-action {
  background: #111827;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  padding: 0.65rem 0.9rem;
}

.pwa-install-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #6b7280;
  display: inline-flex;
  font-size: 1.5rem;
  height: 32px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 0.45rem;
  top: 0.35rem;
  width: 32px;
}

.pwa-install-card-ios {
  border-color: #cfd8e3;
}

.pwa-ios-header {
  align-items: center;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding-right: 1.8rem;
}

.pwa-ios-icon {
  align-items: center;
  background: #eef2f7;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  color: #111827;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.pwa-ios-icon svg {
  height: 24px;
  width: 24px;
}

.pwa-ios-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pwa-ios-steps {
  color: #374151;
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.25rem;
}

.pwa-ios-steps li {
  line-height: 1.45;
}

@media (max-width: 992px) {
  .news-hero,
  .news-layout,
  .article-page-layout {
    grid-template-columns: 1fr;
  }

  .article-top-ad {
    max-width: none;
  }

  .article-sidebar {
    position: static;
  }

  .category-row,
  .article-grid,
  .top-stories-grid,
  .slider-strip,
  .premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-story-item:nth-child(-n + 4),
  .top-story-item:nth-child(4n + 1) {
    border-left: 1px solid #edf0f4;
    border-top: 1px solid #edf0f4;
  }

  .top-story-item:nth-child(-n + 2) {
    border-top: 0;
  }

  .top-story-item:nth-child(2n + 1) {
    border-left: 0;
  }

  .category-news-grid {
    grid-template-columns: 1fr;
  }

  .contact-page {
    grid-template-columns: 1fr;
  }

  .public-search-form {
    margin: 1rem 0;
    max-width: none;
  }
}

@media (max-width: 576px) {
  .news-brand img {
    height: 36px;
  }

  .public-nav {
    margin-left: 0;
  }

  .lead-story-content,
  .headline-stack,
  .sidebar-panel,
  .newsletter-panel {
    padding: 1rem;
  }

  .category-row,
  .article-grid,
  .top-stories-grid,
  .slider-strip,
  .premium-grid {
    grid-template-columns: 1fr;
  }

  .top-story-item,
  .top-story-item:nth-child(-n + 2),
  .top-story-item:nth-child(2n + 1) {
    border-left: 0;
    border-top: 1px solid #edf0f4;
  }

  .top-story-item:first-child {
    border-top: 0;
  }

  .headline-item {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .headline-item img {
    width: 78px;
  }

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

  .breaking-list {
    display: grid;
    overflow-x: visible;
    white-space: normal;
    width: 100%;
  }

  .article-detail-header,
  .article-detail-content,
  .article-gallery,
  .static-page-header,
  .contact-page {
    padding: 1.25rem;
  }

  .article-gallery-grid {
    grid-template-columns: 1fr;
  }

  .search-page-form {
    grid-template-columns: 1fr;
  }

  .pwa-install-card {
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: none;
    right: 0.75rem;
  }
}
