/*
Theme Name: World Tamil News
Theme URI: https://worldtamilnews.in
Author: World Tamil News
Description: Clean Tamil world-news theme for translated world headlines.
Version: 1.1.1
License: GPL-2.0-or-later
Text Domain: worldtamilnews
*/

:root {
  color-scheme: dark;
  --wt-bg: #08090d;
  --wt-bg-soft: #12151b;
  --wt-surface: #101318;
  --wt-text: #f4f7fb;
  --wt-muted: #b4bfcc;
  --wt-border: #28303a;
  --wt-border-strong: #465260;
  --wt-accent: #ff6b5c;
  --wt-accent-dark: #ffb45c;
  --wt-secondary: #d7dee8;
  --wt-max: 1180px;
  --wt-radius: 8px;
  --wt-font: Latha, "Noto Sans Tamil", "Nirmala UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 92, 0.08), transparent 32rem),
    var(--wt-bg);
  color: var(--wt-text);
  font-family: var(--wt-font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 180, 92, 0.3);
  color: var(--wt-text);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  min-width: 0;
}

p,
h1,
h2,
h3,
a,
.wt-brand__name {
  overflow-wrap: break-word;
  word-break: normal;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wt-shell {
  width: min(calc(100% - 32px), var(--wt-max));
  margin: 0 auto;
  min-width: 0;
}

.wt-topbar {
  border-bottom: 1px solid var(--wt-border);
  background: rgba(8, 9, 13, 0.94);
}

.wt-topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--wt-muted);
  font-size: 0.875rem;
}

.wt-live-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 999px;
  background: var(--wt-accent);
  margin-right: 8px;
}

.wt-masthead {
  padding: 24px 0 18px;
  border-bottom: 3px solid var(--wt-border-strong);
  background: rgba(8, 9, 13, 0.72);
}

.wt-masthead__inner {
  display: grid;
  gap: 18px;
  align-items: end;
}

.wt-masthead__inner > *,
.wt-home-grid > *,
.wt-content-layout > *,
.wt-card-grid > * {
  min-width: 0;
}

.wt-brand {
  text-decoration: none;
}

.wt-brand__mark {
  color: var(--wt-accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wt-brand__name {
  display: block;
  color: var(--wt-text);
  font-family: var(--wt-font);
  font-size: clamp(2rem, 1.55rem + 1.8vw, 3.35rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
}

.wt-tagline {
  max-width: 580px;
  margin: 8px 0 0;
  color: var(--wt-muted);
  font-size: 1rem;
}

.wt-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding-top: 10px;
  border-top: 1px solid var(--wt-border);
}

.wt-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wt-nav li {
  margin: 0;
}

.wt-nav a {
  color: var(--wt-text);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.wt-nav a:hover,
.wt-nav a:focus {
  color: var(--wt-accent-dark);
  text-decoration: underline;
}

.wt-main {
  padding: 28px 0 48px;
}

.wt-section-kicker {
  color: var(--wt-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wt-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.82fr);
  gap: 28px;
  align-items: start;
}

.wt-headline-index {
  max-width: 1080px;
}

.wt-headline-index__heading {
  margin: 8px 0 18px;
  font-size: clamp(2rem, 1.35rem + 2.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.wt-headline-index__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--wt-border-strong);
}

.wt-headline-index__item {
  border-bottom: 1px solid var(--wt-border);
  padding: 16px 0;
}

.wt-headline-index__english {
  margin: 0 0 4px;
  color: var(--wt-muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(0.96rem, 0.9rem + 0.24vw, 1.12rem);
  font-weight: 650;
  line-height: 1.4;
}

.wt-headline-index__item a {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--wt-text);
  font-size: clamp(1.2rem, 1rem + 0.55vw, 1.65rem);
  font-weight: 850;
  line-height: 1.45;
  text-decoration: none;
}

.wt-headline-index__item a:hover,
.wt-headline-index__item a:focus {
  color: var(--wt-accent-dark);
  text-decoration: underline;
}

.wt-lead {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--wt-border);
  min-width: 0;
}

.wt-lead__title {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 1.35rem + 2.2vw, 4rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: 0;
}

.wt-lead__title a,
.wt-card__title a,
.wt-rail__title a,
.wt-entry-title a {
  color: var(--wt-text);
  text-decoration: none;
}

.wt-lead__title a:hover,
.wt-lead__title a:focus,
.wt-card__title a:hover,
.wt-card__title a:focus,
.wt-rail__title a:hover,
.wt-rail__title a:focus,
.wt-entry-title a:hover,
.wt-entry-title a:focus {
  color: var(--wt-accent);
  text-decoration: underline;
}

.wt-lead__excerpt {
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--wt-secondary);
  font-size: 1.08rem;
}

.wt-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: var(--wt-muted);
  font-size: 0.92rem;
}

.wt-source-link {
  color: var(--wt-accent);
  font-weight: 800;
  text-decoration: none;
}

.wt-source-link:hover,
.wt-source-link:focus {
  color: var(--wt-accent-dark);
  text-decoration: underline;
}

.wt-rail {
  border-left: 1px solid var(--wt-border);
  padding-left: 22px;
}

.wt-rail__heading,
.wt-section-heading {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wt-rail__list {
  display: grid;
  gap: 0;
}

.wt-rail__item {
  padding: 14px 0;
  border-top: 1px solid var(--wt-border);
}

.wt-rail__title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.42;
}

.wt-news-grid {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--wt-border-strong);
}

.wt-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.wt-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  background: var(--wt-surface);
}

.wt-card__title {
  margin: 8px 0 12px;
  font-size: 1.2rem;
  line-height: 1.42;
}

.wt-card__excerpt {
  margin: 0 0 12px;
  color: var(--wt-muted);
  font-size: 0.96rem;
}

.wt-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  gap: 44px;
  align-items: start;
}

.wt-entry-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--wt-border);
}

.wt-entry-title {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.wt-entry-content {
  margin-top: 22px;
}

.wt-entry-content p {
  margin: 0 0 1.1em;
}

.wt-original-english {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--wt-border-strong);
  color: var(--wt-secondary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.wt-original-english h2 {
  margin: 0 0 12px;
  color: var(--wt-accent-dark);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wt-original-english p {
  color: var(--wt-secondary);
}

.wt-sidebar {
  border-left: 1px solid var(--wt-border);
  padding-left: 24px;
}

.wt-sidebar__item {
  padding: 12px 0;
  border-top: 1px solid var(--wt-border);
}

.wt-sidebar__item a {
  color: var(--wt-text);
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}

.wt-sidebar__item a:hover,
.wt-sidebar__item a:focus {
  color: var(--wt-accent-dark);
  text-decoration: underline;
}

.wt-empty {
  padding: 24px;
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  background: var(--wt-bg-soft);
  color: var(--wt-muted);
}

.wt-footer {
  border-top: 1px solid var(--wt-border);
  padding: 24px 0;
  color: var(--wt-muted);
  font-size: 0.92rem;
}

.wt-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .wt-home-grid,
  .wt-content-layout {
    grid-template-columns: 1fr;
  }

  .wt-rail,
  .wt-sidebar {
    border-left: 0;
    padding-left: 0;
  }

  .wt-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wt-shell {
    width: calc(100% - 64px);
    max-width: var(--wt-max);
  }

  .wt-topbar__inner,
  .wt-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .wt-masthead {
    padding-top: 18px;
  }

  .wt-brand__name {
    font-size: 1.9rem;
    line-height: 1.18;
  }

  .wt-tagline {
    font-size: 0.95rem;
  }

  .wt-lead__title,
  .wt-entry-title {
    font-size: 1.36rem;
  }

  .wt-nav {
    gap: 8px 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .wt-nav ul {
    flex-wrap: nowrap;
  }

  .wt-nav a {
    white-space: nowrap;
  }

  .wt-main {
    padding-top: 20px;
  }

  .wt-card-grid {
    grid-template-columns: 1fr;
  }

  .wt-meta-row {
    width: 100%;
  }
}
