/* =============================================================
   FRONTPAGE — Elite Tamil Online Newspaper Layout
   Reference: Dinamalar, Dina Thanthi, Dinakaran online portals
   ============================================================= */

/* ── Hero Section Labels ── */
.hero-sub-banner {
  display: inline-block;
  background: var(--ink-red);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 6px;
}
.hero-sub-banner-second {
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  color: var(--ink-gray);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
  border-left: 3px solid var(--ink-red);
  padding-left: 8px;
}

/* ── Headline ── */
.article-headline.lead-broadside {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--ink-charcoal);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--ink-charcoal);
  padding-bottom: 10px;
}
.hero-subheading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-gray);
  line-height: 1.6;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--paper-border);
  padding-bottom: 10px;
}

/* ── Hero Story Wrap: newspaper float layout ── */
.hero-story-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hero-photo-inset {
  flex-shrink: 0;
  width: 200px;
}

.hero-text-body { flex: 1; }

/* Photo itself */
.vintage-photo-container {
  overflow: hidden;
  border: 1px solid var(--paper-border);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  background: var(--paper-bg-darker);
  margin-bottom: 10px;
}
.vintage-photo-container.rectangular {
  aspect-ratio: 16/9;
  max-height: 350px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.vintage-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.06) saturate(1.02) brightness(0.98);
  display: block;
}

.hero-photo-caption {
  font-family: 'Courier Prime', monospace;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-light);
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid var(--paper-border);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Hero Split Layout ── */
.hero-story-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 15px;
  border-bottom: 2px solid var(--paper-border-dark);
  padding-bottom: 20px;
}

@media (min-width: 992px) {
  .hero-story-split {
    grid-template-columns: 1.15fr 1.85fr;
  }
}

.hero-story-left {
  display: flex;
  flex-direction: column;
}

.hero-story-right {
  display: flex;
  flex-direction: column;
  padding-left: 0;
}

@media (min-width: 992px) {
  .hero-story-right {
    padding-left: 20px;
    border-left: 1px dashed var(--paper-border);
  }
}

/* ── Sidebar Stories (Right column) ── */
.sidebar-story {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--paper-border);
  padding-bottom: 14px;
}
.sidebar-story:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar-headline {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--ink-charcoal);
  margin-bottom: 5px;
}
.sidebar-body {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 12px;
  line-height: 1.65;
  text-align: justify;
  color: var(--ink-gray);
}

/* ── Classifieds / Ticker Banner ── */
.classifieds-banner {
  background: var(--ink-charcoal);
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
  margin: 14px 0;
  border-top: 2px solid var(--ink-red);
}
.classifieds-container {
  display: inline-block;
  animation: ticker 44s linear infinite;
}
.classifieds-container:hover { animation-play-state: paused; }
.classified-item {
  display: inline-block;
  padding: 0 26px;
  border-right: 1px solid rgba(255,255,255,0.15);
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.88);
}
.classified-item strong { color: #f0c040; font-weight: 900; }
@keyframes ticker {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-50%,0,0); }
}

/* ── Seat Grid (Assembly Chamber) ── */
.seat-grid-container { margin: 10px 0; }
.seat-grid-title {
  font-size: 9.5px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-gray);
  border-bottom: 1px solid var(--paper-border);
  padding-bottom: 4px;
}
.seat-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 2.5px;
  max-width: 320px;
  margin: 0 auto 8px;
}
.seat {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.seat:hover { transform: scale(1.5); z-index: 10; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.seat-p-tvk    { background: var(--party-tvk); }
.seat-p-dmk    { background: var(--party-dmk); }
.seat-p-aiadmk { background: var(--party-aiadmk); }
.seat-p-inc    { background: var(--party-inc); }
.seat-p-vck    { background: var(--party-vck); }
.seat-p-iuml   { background: var(--party-iuml); }
.seat-p-other  { background: var(--party-other); }

.legend-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0;
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: var(--ink-gray); letter-spacing: 1px; text-transform: uppercase; }
.legend-swatch { width: 10px; height: 10px; border-radius: 2px; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero-story-wrap { flex-direction: column; }
  .hero-photo-inset { width: 100%; }
}

/* ── Tamil lang adjustments ── */
body.lang-ta #frontPageRightCol .sidebar-headline { font-size: 12px !important; }
body.lang-ta #frontPageRightCol .sidebar-body     { font-size: 10.5px !important; }

/* ── 19 Findings Section ── */
.findings-row {
  margin-top: 25px;
  border-top: 3px double var(--paper-border);
  padding-top: 20px;
}

.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 15px;
}

.finding-card {
  border: 1px solid var(--paper-border);
  padding: 15px;
  background-color: var(--paper-bg-warm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 8px rgba(180,140,80,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.finding-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26,18,16,0.12), inset 0 0 8px rgba(180,140,80,0.03);
}

.finding-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13.5px;
  font-weight: bold;
  color: var(--ink-charcoal);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.35;
  border-bottom: 1px double var(--paper-border);
  padding-bottom: 6px;
}

.finding-number {
  font-family: 'Courier Prime', monospace;
  font-size: 24px;
  font-weight: bold;
  color: var(--ink-red);
  margin: 6px 0 10px 0;
  display: block;
}

.finding-summary {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11.5px;
  color: var(--ink-gray);
  line-height: 1.55;
  margin-bottom: 15px;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 36px;
}

.finding-link {
  font-family: 'Courier Prime', monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-blue);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.15s ease;
}

.finding-link:hover {
  color: var(--ink-red);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .findings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .findings-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Premium Party Flag Swatches & Badges ── */
.party-flag-swatch {
  width: 34px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.party-flag-swatch:hover {
  transform: scale(1.25);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 2;
}

.party-badge-fallback {
  width: 34px;
  height: 20px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Courier Prime', monospace;
  font-size: 9px;
  font-weight: bold;
  vertical-align: middle;
  text-transform: uppercase;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.party-badge-fallback:hover {
  transform: scale(1.25);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 2;
}


/* ── Horizontal Non-Scrolling Party Winner Cards Grid (Elite Cards) ── */
.party-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  overflow: visible;
  max-height: none;
  padding: 8px 0;
}

@media (max-width: 1100px) {
  .party-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .party-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .party-cards-grid {
    grid-template-columns: 1fr;
  }
}

.party-medium-card {
  background: #ffffff;
  border: 1px solid var(--paper-border-dark);
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-width: 0;
}
.party-medium-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
  background: #fffdfa;
}

.party-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.party-card-identity {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.party-card-code {
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink-charcoal);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.party-card-seats {
  font-family: 'Courier Prime', monospace;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink-red);
  white-space: nowrap;
}
.party-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-charcoal);
  line-height: 1.35;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.party-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--paper-border);
  padding-top: 6px;
  font-size: 11px;
}
.party-card-share-label {
  font-family: 'Courier Prime', monospace;
  color: var(--ink-light);
  font-size: 10.5px;
  font-weight: 600;
}
.party-card-share-val {
  font-family: 'Courier Prime', monospace;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-charcoal);
}

/* ── Elite Vacant Assembly Constituencies Gazette Section ── */
.vacant-seats-row {
  margin-top: 25px;
  border-top: 3px double var(--paper-border-dark);
  padding-top: 20px;
}

.vacant-tally-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #181818;
  color: #f5f5f5;
  border: 1px solid var(--paper-border-dark);
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.vacant-tally-item {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  font-weight: 800;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vacant-tally-item strong {
  color: #ffffff;
}

.vacant-tally-item .vacant-badge-red {
  background: var(--ink-red);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.vacant-seats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 992px) {
  .vacant-seats-grid {
    grid-template-columns: 1fr;
  }
}

.vacant-seat-card {
  background: #ffffff;
  border: 1px solid var(--paper-border-dark);
  border-radius: 6px;
  padding: 14px 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vacant-seat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  background: #fffdf8;
}

.vacant-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vacant-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--paper-border);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.vacant-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink-charcoal);
}

.vacant-ac-no {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-gray);
  margin-left: 4px;
}

.vacant-status-badge {
  background: var(--ink-red);
  color: #ffffff;
  font-family: 'Courier Prime', monospace;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.vacant-card-member-row {
  font-family: 'Courier Prime', monospace;
  font-size: 12.5px;
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.vacant-member-label {
  color: var(--ink-red);
  font-weight: 700;
}

.vacant-member-name {
  color: var(--ink-charcoal);
  font-weight: 900;
  font-size: 13.5px;
}

.vacant-card-reason {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-gray);
  margin-bottom: 12px;
  text-align: justify;
}

.vacant-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--paper-border);
  padding-top: 8px;
  font-family: 'Courier Prime', monospace;
  font-size: 11.5px;
}

.vacant-party-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-charcoal);
  font-weight: 800;
}

.vacant-impact-badge {
  color: var(--ink-red);
  font-weight: 900;
  background: rgba(211, 13, 37, 0.08);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid rgba(211, 13, 37, 0.2);
}

.vacant-card-photo-wrap {
  flex-shrink: 0;
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vacant-card-photo {
  width: 90px;
  height: 115px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  border: 1.5px solid var(--paper-border-dark);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  background: var(--paper-bg-darker);
}

.vacant-card-photo-placeholder {
  width: 90px;
  height: 115px;
  border-radius: 4px;
  border: 1.5px dashed var(--paper-border-dark);
  background: var(--paper-bg-darker);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  padding: 6px;
}

.vacant-card-photo-placeholder span {
  font-family: 'Courier Prime', monospace;
  font-size: 8.5px;
  font-weight: 800;
  text-align: center;
  margin-top: 6px;
  text-transform: uppercase;
}



