/* Theme: wine/plum (dark, muted) + magazine hero format */
:root {
  --bg: #fdf6ef;
  --panel: #ffffff;
  --text: #2b211c;
  --muted: #8a7568;
  --accent: #7A2145;
  --accent-2: #A65A45;
  --border: #E3D4D4;
  --heading: #7A2145;
  --gradient: linear-gradient(135deg, #7A2145, #3D1224);
}

h1, h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--heading);
}

.hero-title, .site-header .brand span {
  font-family: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(#f0ddd0 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  color: var(--text);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--gradient);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
}

.site-header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1.5rem;
  opacity: 0.9;
}

.last-updated {
  color: #fff;
  margin-left: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

main {
  max-width: 950px;
  margin: 0 auto;
  padding: 2rem;
}

.subtitle { color: var(--muted); }

main a { color: var(--accent); }

.hero-deal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--gradient);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-top: 1.25rem;
  text-decoration: none;
  color: #fff;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
  opacity: 0.95;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-tile {
  background: rgba(99, 153, 34, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.stat-trend {
  font-size: 0.75rem;
  color: #4a9b5e;
  margin-top: 0.4rem;
}

.filters {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.filters select, .filters input[type="text"] {
  background: rgba(99, 153, 34, 0.1);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

.filters select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9 L12 15 L18 9' fill='none' stroke='%238a7568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 2.3rem;
}

.search-label input[type="text"] {
  width: 200px;
}

.grid-heading {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.deal-type-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(247, 167, 95, 0.18);
  color: #a15a1b;
}

.deal-group {
  margin-bottom: 2rem;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-card {
  display: block;
  background: rgba(247, 167, 95, 0.08);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.timeline-card:nth-child(even) {
  background: rgba(242, 97, 138, 0.06);
  border-left-color: var(--accent);
}

.timeline-card:hover {
  box-shadow: 0 4px 14px rgba(242, 97, 138, 0.15);
}

.timeline-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.timeline-card-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.2rem;
  color: var(--heading);
}

.timeline-card-description {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--text);
}

.deal-card-status {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: capitalize;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--border);
  color: var(--muted);
}

.deal-card-status.status-completed {
  background: rgba(74, 155, 94, 0.18);
  color: #357644;
}

.deal-card-status.status-announced {
  background: rgba(242, 97, 138, 0.15);
  color: var(--accent);
}

.deal-card-status.status-withdrawn {
  background: rgba(200, 70, 60, 0.15);
  color: #a8382b;
}

.leaderboard {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  max-width: 480px;
}

.leaderboard li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.leaderboard-name { font-weight: 600; }
.leaderboard-count { color: var(--muted); font-size: 0.85rem; }

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

.fact-item {
  background: rgba(247, 167, 95, 0.14);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  min-width: 110px;
}

.fact-item:nth-child(even) {
  background: rgba(242, 97, 138, 0.1);
}

.fact-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fact-value {
  display: block;
  font-weight: 600;
  margin-top: 0.15rem;
}

.deal-overview {
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.reasoning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reasoning-box {
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.reasoning-box p {
  margin: 0.4rem 0 0;
}

.reasoning-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.reasoning-buyer {
  background: rgba(91, 150, 214, 0.15);
}

.reasoning-buyer .reasoning-label {
  color: #2b5f8f;
}

.reasoning-seller {
  background: rgba(247, 167, 95, 0.18);
}

.reasoning-seller .reasoning-label {
  color: #a15a1b;
}

.reasoning-stock {
  background: rgba(74, 155, 94, 0.12);
  margin-bottom: 1.5rem;
}

.reasoning-stock .reasoning-label {
  color: #357644;
}

.reasoning-analyst {
  background: rgba(94, 120, 191, 0.12);
  margin-bottom: 1.5rem;
}

.reasoning-analyst .reasoning-label {
  color: #3d5296;
}

.mechanics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mechanics-item {
  background: rgba(247, 167, 95, 0.1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.mechanics-item:nth-child(even) {
  background: rgba(242, 97, 138, 0.08);
  border-left-color: var(--accent);
}

.mechanics-item p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}

.mechanics-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.comparable-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.comparable-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.comparable-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.deal-links {
  list-style: disc;
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.deal-links li { margin-top: 0.3rem; }

.deal-meta-footer {
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

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

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  font-size: 0.85rem;
}

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

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.news-item {
  background: rgba(247, 167, 95, 0.08);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.news-item:nth-child(even) {
  background: rgba(242, 97, 138, 0.06);
  border-left-color: var(--accent);
}

.news-item-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.news-source {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--heading);
}

.news-item-title {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.2rem;
  color: var(--heading);
  text-decoration: none;
}

.news-item-title:hover {
  text-decoration: underline;
}

.news-item-summary {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
