:root {
  --blue: #000098;
  --blue-dark: #000052;
  --red: #f51416;
  --red-2: #ff184e;
  --ink: #141a20;
  --ink-soft: #013332;
  --muted: #8f99a3;
  --line: rgba(20, 26, 32, 0.14);
  --paper: #ffffff;
  --paper-2: #f7f8fb;
  --green: #005b29;
  --yellow: #ffea00;
  --shadow: 0 18px 45px rgba(3, 25, 52, 0.12);
  --tamil-font: Arial, Helvetica, "Nirmala UI", Latha, "Arial Unicode MS", "Tamil Sangam MN", "Noto Sans Tamil", sans-serif;
  --body-font: var(--tamil-font);
  --head-font: var(--tamil-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.42;
  letter-spacing: 0;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

body.dark {
  --ink: #ecf5ff;
  --ink-soft: #d7ecff;
  --muted: #a9b8c8;
  --line: rgba(255, 255, 255, 0.16);
  --paper: #081522;
  --paper-2: #0d1d2c;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

main,
footer,
section,
article,
aside,
nav {
  min-width: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1280px, calc(100% - 56px));
  max-width: calc(100% - 56px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}

.topbar {
  background: var(--blue);
  color: #fff;
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  min-width: 0;
}

.brand {
  display: grid;
  gap: 2px;
  align-items: center;
  width: 196px;
}

.brand img {
  width: 196px;
  height: 64px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.date-line {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  padding-left: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.28vw, 6px);
  min-width: 0;
  max-width: 100%;
  height: 78px;
  font-family: var(--head-font);
  font-size: clamp(12px, 0.72vw, 13px);
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav > a,
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 51px;
  padding: 0 clamp(7px, 0.58vw, 12px);
  border-radius: 10px;
  color: #fff;
  transition: background 160ms ease, color 160ms ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown:hover > a {
  background: #000008;
}

.nav-dropdown > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.nav-dropdown:hover > a::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown {
  position: relative;
  height: 78px;
  display: flex;
  align-items: center;
}

.mega-menu,
.simple-menu {
  position: absolute;
  top: 72px;
  left: 0;
  min-width: 520px;
  max-width: calc(100vw - 56px);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: var(--blue);
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: 180ms ease;
}

.mega-menu.compact {
  min-width: 360px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.simple-menu {
  min-width: 170px;
  max-width: min(260px, calc(100vw - 56px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 8px;
}

.simple-menu.wide {
  min-width: 230px;
}

.desktop-nav .nav-dropdown:last-child .simple-menu,
.desktop-nav .nav-dropdown:nth-last-child(2) .simple-menu {
  right: 0;
  left: auto;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:hover .simple-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mega-menu article {
  display: grid;
  gap: 8px;
}

.mega-menu img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.mega-menu span {
  color: #bde3ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.mega-menu strong {
  font-size: 14px;
  line-height: 1.25;
}

.simple-menu a {
  padding: 10px 12px;
  border-radius: 4px;
}

.simple-menu a:hover {
  background: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
}

.newsletter-btn {
  height: 33px;
  border: 0;
  border-radius: 5px;
  padding: 0 16px;
  background: var(--yellow);
  color: #071022;
  font-family: var(--head-font);
  font-size: 13px;
  font-weight: 700;
}

.icon-btn,
.menu-btn {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-btn {
  display: none;
  gap: 4px;
}

.menu-btn span {
  width: 17px;
  height: 2px;
  background: currentColor;
}

.topicbar {
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
}

.topicbar-inner {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}

.topic-icon {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.topic-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topicbar-marquee {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  contain: paint;
}

.topicbar-track {
  display: flex;
  width: max-content;
  animation: topic-scroll 36s linear infinite;
  will-change: transform;
}

.topicbar-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 20px;
  padding-right: 20px;
}

.topicbar-group a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--body-font);
  line-height: 1;
}

.topicbar-group a:not(:last-child)::after {
  content: "/";
  margin-left: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.topicbar-marquee:hover .topicbar-track,
.topicbar-marquee:focus-within .topicbar-track {
  animation-play-state: paused;
}

.topicbar a:hover {
  text-decoration: underline;
}

@keyframes topic-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .topicbar-marquee {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topicbar-marquee::-webkit-scrollbar {
    display: none;
  }

  .topicbar-track {
    animation: none;
  }
}

.lead-section {
  padding: 28px 0 10px;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.95fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.story {
  position: relative;
}

.story .image-link {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper-2);
}

.story img,
.mini-row img,
.latest-card img {
  width: 100%;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.story:hover img,
.mini-row:hover img,
.latest-card:hover img {
  transform: scale(1.035);
  opacity: 0.92;
}

.side-story img {
  aspect-ratio: 16 / 9;
}

.story-body,
.card-story,
.latest-card {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.side-story .story-body {
  margin-top: 9px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.side-stack .side-story:nth-last-child(2) .story-body {
  border-bottom: 0;
  padding-bottom: 7px;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.meta a {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
}

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

h1,
h2,
.rail-title,
.section-heading h2 {
  font-family: var(--head-font);
  color: var(--ink-soft);
  letter-spacing: 0;
}

.side-story h2 {
  max-width: 92%;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.34;
  font-weight: 400;
}

.story h1 a,
.story h2 a,
.mini-row h2 a,
.category-card h2 a,
.most-read a,
.footer-menus a,
.quick-links a {
  overflow-wrap: anywhere;
}

.hero-story img {
  aspect-ratio: 10 / 7;
}

.hero-story .story-body {
  margin-top: 13px;
  padding-bottom: 21px;
  border-bottom: 3px solid var(--ink);
}

.hero-story h1 {
  max-width: 94%;
  font-size: clamp(22px, 1.95vw, 30px);
  line-height: 1.24;
  font-weight: 400;
}

.under-hero {
  margin-top: 24px;
  display: grid;
  gap: 15px;
}

.mini-row {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.mini-row img {
  aspect-ratio: 4 / 3;
  border-radius: 5px;
}

.mini-row h2 {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
}

.under-hero .mini-row {
  grid-template-columns: 195px minmax(0, 1fr) auto;
  gap: 28px;
  min-height: 124px;
  padding-bottom: 15px;
}

.under-hero .mini-row img {
  aspect-ratio: 5 / 3;
}

.under-hero .mini-row h2 {
  font-size: clamp(16px, 1vw, 19px);
  line-height: 1.38;
  font-weight: 400;
}

.side-brief {
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 13px;
  min-height: 105px;
  padding-top: 12px;
  padding-bottom: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.side-brief h2 {
  font-size: 15px;
  line-height: 1.38;
  font-weight: 400;
}

.side-brief img {
  aspect-ratio: 4 / 3;
}

.story-body .bookmark,
.card-story > .bookmark {
  position: absolute;
  right: 0;
  bottom: 6px;
  margin: 0;
}

.bookmark {
  width: 18px;
  height: 22px;
  border: 0;
  background: transparent;
  position: relative;
  align-self: start;
  justify-self: end;
  margin-top: 2px;
}

.bookmark::before {
  content: "";
  position: absolute;
  inset: 1px 3px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  color: var(--ink);
  border-radius: 2px 2px 0 0;
}

.bookmark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 2px;
  height: 9px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg);
  color: var(--ink);
}

.bookmark.saved::before,
.bookmark.saved::after {
  color: var(--red);
}

.rail {
  display: grid;
  gap: 24px;
}

.most-read {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.rail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  margin-bottom: 13px;
}

.rail-title::after,
.section-heading h2::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 4px;
  background: var(--red);
  transform: skew(-14deg);
}

.most-read ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: read;
  display: grid;
  gap: 14px;
}

.most-read li {
  counter-increment: read;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.most-read li::before {
  content: counter(read);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--head-font);
  font-size: 24px;
  font-weight: 700;
}

.most-read li a {
  font-family: var(--head-font);
  font-size: 15px;
  line-height: 1.42;
  font-weight: 400;
}

.most-read li img {
  width: 72px;
  height: 52px;
  border-radius: 5px;
  object-fit: cover;
}

.sponsor-label {
  display: block;
  text-align: center;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}

.rail-promo {
  min-height: 304px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 32px;
  border-radius: 6px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 0, 152, 0.92), rgba(0, 91, 41, 0.9)),
    url("https://images.unsplash.com/photo-1495020689067-958852a7765e?auto=format&fit=crop&w=520&q=80") center / cover;
}

.rail-promo img {
  width: 210px;
  height: 70px;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}

.rail-promo strong {
  color: var(--yellow);
  font-family: var(--head-font);
  max-width: 280px;
  font-size: 24px;
  line-height: 1.16;
  text-transform: uppercase;
}

.rail-promo span {
  max-width: 260px;
  font-size: 18px;
}

.rail-promo em {
  justify-self: start;
  padding: 7px 12px;
  border-radius: 4px;
  background: var(--red);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.newsletter-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(280px, 480px);
  gap: 18px;
  align-items: center;
  margin-block: 20px 34px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 10px solid var(--red);
  border-radius: 6px;
}

.newsletter-strip img {
  width: 170px;
  height: 56px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.newsletter-strip p {
  font-size: 14px;
  color: var(--ink);
}

.newsletter-strip form,
.footer-newsletter form {
  display: grid;
  grid-template-columns: 1fr auto;
}

.newsletter-strip input,
.footer-newsletter input,
.panel-search input,
.search-box input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px 0 0 5px;
  padding: 11px 15px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

.newsletter-strip input:focus,
.footer-newsletter input:focus,
.panel-search input:focus,
.search-box input:focus {
  border-color: var(--red);
}

.newsletter-strip button,
.footer-newsletter button,
.search-box button {
  border: 0;
  border-radius: 0 5px 5px 0;
  padding: 0 21px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--head-font);
  font-size: 14px;
  font-weight: 800;
}

.featured-section,
.more-news {
  padding-block: 8px 32px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
}

.section-heading > a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.card-story img {
  aspect-ratio: 3 / 3.6;
}

.card-story h2 {
  font-size: 16px;
  line-height: 1.38;
  font-weight: 400;
}

.split-news {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 26px;
}

.list-column {
  display: grid;
  gap: 13px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-block: 4px 30px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
}

.quick-links span {
  color: var(--red);
  font-family: var(--head-font);
  font-weight: 700;
}

.quick-links a {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #494949;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.quick-links a.active {
  background: transparent;
  color: var(--red);
}

.category-hero {
  padding: 46px 0 20px;
}

.category-hero h1 {
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 700;
}

.category-hero > p:last-child {
  max-width: 660px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.category-tabs {
  margin-block: 8px 32px;
}

.category-results {
  padding-bottom: 46px;
}

.category-story-list {
  display: grid;
  gap: 18px;
}

.category-card {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.category-card img {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
}

.category-card h2 {
  max-width: 820px;
  font-size: 19px;
  line-height: 24px;
  font-weight: 400;
}

.category-excerpt {
  max-width: 760px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.single-post {
  padding: 44px 0 54px;
}

.post-head {
  max-width: 980px;
}

.post-head h1 {
  max-width: 1060px;
  margin-top: 12px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.24;
  font-weight: 400;
}

.post-head [data-post-excerpt] {
  max-width: 820px;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
}

.source-line {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.source-line a {
  color: var(--red);
}

.post-hero-image {
  width: 100%;
  margin-top: 28px;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 8px;
}

.post-body {
  max-width: 840px;
  margin: 34px auto 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.72;
}

.post-body p + p {
  margin-top: 18px;
}

.post-gallery {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

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

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.gallery-grid figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.related-section {
  padding-bottom: 54px;
}

.mid-layout,
.bottom-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 32px;
  padding-bottom: 34px;
}

.compact-list,
.article-list {
  display: grid;
  gap: 12px;
}

.mini-row.no-image {
  grid-template-columns: 1fr;
  padding: 0 0 13px;
}

.mini-row.no-image h2 {
  font-size: 16px;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-right: 0;
}

.text-tile {
  min-height: 112px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.text-tile h2 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 400;
}

.bottom-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: start;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.article-list .mini-row {
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 102px;
  padding-bottom: 14px;
}

.article-list .mini-row img {
  aspect-ratio: 4 / 3;
}

.article-list .mini-row h2 {
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.4;
  font-weight: 400;
}

.latest-card img {
  aspect-ratio: 3 / 2;
  border-radius: 6px;
}

.latest-card h2 {
  font-size: 15px;
  line-height: 1.42;
  font-weight: 400;
}

.cta-band {
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
  padding: 44px 50px;
  border-radius: 10px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 8, 0.82), rgba(0, 0, 152, 0.38)),
    url("https://images.unsplash.com/photo-1504711434969-e33886168f5c?auto=format&fit=crop&w=1400&q=80") center / cover;
}

.cta-band h2 {
  max-width: 720px;
  color: #fff;
  font-family: var(--head-font);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  font-weight: 700;
}

.cta-band p {
  max-width: 620px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  font-style: italic;
}

.cta-band a {
  min-width: 170px;
  padding: 14px 28px;
  border-radius: 5px 22px 5px 5px;
  background: var(--red);
  color: #fff;
  font-family: var(--head-font);
  font-weight: 700;
  text-align: center;
}

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

.sponsor {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer {
  color: #fff;
  background: linear-gradient(180deg, var(--blue), #000008);
}

.footer-top {
  display: grid;
  gap: 24px;
  padding: 42px 0 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}

.footer-brand img {
  width: 230px;
  height: 76px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

.footer-newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: center;
}

.footer-newsletter p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
}

.footer-newsletter input {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.footer-newsletter button {
  background: var(--red);
  color: #fff;
}

.footer-menus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-top: 10px;
}

.footer-menus div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.footer-menus h2 {
  width: 100%;
  font-family: var(--head-font);
  font-size: 17px;
}

.footer-menus a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.copyright {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.copyright p {
  margin-right: auto;
}

.mobile-panel,
.search-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: 200ms ease;
}

.mobile-panel {
  left: auto;
  width: min(360px, 92vw);
  padding: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(100%);
}

.mobile-panel.open,
.search-overlay.open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.mobile-panel.open {
  transform: translateX(0);
}

.mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mobile-panel-head img {
  width: 170px;
  height: 56px;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}

.mobile-panel .close {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper-2);
  font-family: var(--head-font);
  font-weight: 700;
}

.mobile-panel nav {
  display: grid;
  padding: 16px 0;
}

.mobile-panel nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--head-font);
  font-weight: 700;
}

.panel-search input {
  width: 100%;
  border-radius: 5px;
}

.mobile-panel p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-panel p a {
  color: var(--red);
  font-weight: 700;
}

.search-overlay {
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 25, 52, 0.82);
}

.search-box {
  width: min(680px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-box label {
  font-family: var(--head-font);
  font-size: 28px;
  font-weight: 900;
}

.search-box div {
  display: grid;
  grid-template-columns: 1fr auto;
}

.search-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-family: var(--head-font);
  font-size: 22px;
  font-weight: 900;
}

.backtop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 180ms ease;
}

.backtop.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1240px) {
  .topbar-inner {
    gap: 12px;
  }

  .desktop-nav {
    gap: 0;
    font-size: 12px;
  }

  .desktop-nav > a,
  .nav-dropdown > a {
    height: 44px;
    padding: 0 6px;
    border-radius: 8px;
  }
}

@media (max-width: 1120px) {
  .newsletter-btn {
    display: none;
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .header-actions {
    justify-self: end;
  }

  .lead-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  }

  .side-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .mid-layout,
  .bottom-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
    max-width: calc(100% - 24px);
  }

  .topbar-inner {
    min-height: 64px;
  }

  .brand {
    width: 154px;
  }

  .brand img {
    width: 148px;
    height: 50px;
  }

  .date-line {
    font-size: 10px;
  }

  .newsletter-btn {
    display: none;
  }

  .lead-grid,
  .side-stack,
  .split-news,
  .featured-grid,
  .business-grid,
  .latest-grid,
  .more-grid,
  .gallery-grid,
  .category-card,
  .footer-menus {
    grid-template-columns: 1fr;
  }

  .category-card {
    gap: 12px;
  }

  .main-column {
    order: -1;
  }

  .rail {
    order: 3;
  }

  .side-story h2 {
    font-size: 18px;
    line-height: 1.3;
  }

  .hero-story h1 {
    max-width: 100%;
    font-size: 26px;
    line-height: 1.24;
  }

  .post-head h1 {
    font-size: 28px;
    line-height: 1.24;
  }

  .post-head [data-post-excerpt] {
    font-size: 17px;
  }

  .post-hero-image {
    aspect-ratio: 4 / 3;
  }

  .post-body {
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.75;
  }

  .mini-row {
    grid-template-columns: 96px minmax(0, 1fr) auto;
  }

  .mini-row h2 {
    font-size: 16px;
  }

  .category-card h2 {
    font-size: 18px;
    line-height: 24px;
  }

  .newsletter-strip form,
  .footer-newsletter form,
  .search-box div {
    grid-template-columns: 1fr;
  }

  .newsletter-strip input,
  .footer-newsletter input,
  .search-box input {
    border-radius: 5px 5px 0 0;
  }

  .newsletter-strip button,
  .footer-newsletter button,
  .search-box button {
    min-height: 43px;
    border-radius: 0 0 5px 5px;
  }

  .card-story img {
    aspect-ratio: 4 / 3;
  }

  .most-read {
    border-left: 0;
    padding-left: 0;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

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

  .copyright {
    flex-wrap: wrap;
  }

  .copyright p {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 440px) {
  .topicbar-inner {
    gap: 13px;
  }

  .topicbar {
    font-size: 16px;
  }

  .topicbar-group {
    gap: 14px;
    padding-right: 14px;
  }

  .topicbar-group a:not(:last-child)::after {
    margin-left: 14px;
  }

  .icon-btn,
  .menu-btn {
    width: 32px;
    height: 32px;
  }

  .mini-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .mini-row .bookmark {
    display: none;
  }

  .most-read li {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .most-read li img {
    display: none;
  }
}
