/*
Theme Name: Influence Me This (GeneratePress Child)
Template: generatepress
Description: Child theme implementing the Influence Me This trend-page design on top of GeneratePress.
Version: 1.0
*/

:root {
  --paper: #F5F6F4;
  --paper-raised: #FFFFFF;
  --ink: #15213A;
  --ink-soft: #4A5568;
  --ink-faint: #8A93A3;
  --line: #DADFE0;

  --evidence: #1F6F5C;
  --evidence-soft: #E6F0ED;
  --hype: #C98A2C;

  --tier-strong: #1F6F5C;
  --tier-mixed: #C98A2C;
  --tier-limited: #8A93A3;
  --tier-against: #A6542E;

  --sponsor-bg: #FAF7F0;
  --sponsor-line: #E6DCC6;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
}

.imt-trend h1,
.imt-trend h2,
.imt-trend h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Header ---------- */
.imt-trend {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.imt-back-link {
  font-size: 0.9rem;
  color: var(--ink-faint);
  text-decoration: none;
}
.imt-back-link:hover { color: var(--ink); }

.imt-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.imt-trend h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  margin: 0;
}

.imt-status {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.imt-status.rising { color: var(--hype); }
.imt-status.steady { color: var(--ink-faint); }
.imt-status.declining { color: var(--tier-limited); }

.imt-updated {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0.4rem 0 0;
}

/* ---------- Section heading ---------- */
.imt-section-title {
  font-size: 1.5rem;
  margin: 2.5rem 0 1.25rem;
}

/* ---------- Claim cards ---------- */
.imt-claim {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.imt-claim-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.imt-claim-head h3 {
  font-size: 1.1rem;
  margin: 0;
}

.imt-meter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.imt-meter-bars { display: flex; gap: 3px; }
.imt-meter-bar {
  width: 16px;
  height: 9px;
  border-radius: 1px;
  background: var(--line);
}
.imt-meter-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.imt-claim-summary {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0.75rem 0 0;
}

.imt-sources {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.imt-source {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.imt-source:last-child { margin-bottom: 0; }
.imt-source-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
}
.imt-source-stance { font-weight: 600; }
.imt-source-note { color: var(--ink-soft); }
.imt-source-label {
  display: block;
  margin-top: 0.1rem;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.imt-source-label a { color: inherit; text-decoration: none; }
.imt-source-label a:hover { text-decoration: underline; color: var(--ink); }

/* ---------- Overall picture ---------- */
.imt-overall {
  background: var(--evidence-soft);
  border-left: 3px solid var(--evidence);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.imt-overall-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--evidence);
}
.imt-overall p {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0.5rem 0 0;
  line-height: 1.6;
}

/* ---------- Sponsor ---------- */
.imt-sponsor {
  background: var(--sponsor-bg);
  border: 1px solid var(--sponsor-line);
  padding: 1.5rem;
  margin: 2rem 0;
}
.imt-sponsor-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
}
.imt-sponsor h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0 0;
}
.imt-sponsor p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
  line-height: 1.6;
}
.imt-sponsor a {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Discussion ---------- */
.imt-discussion {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 3rem;
}
.imt-discussion p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.imt-discussion-placeholder {
  border: 1px dashed var(--line);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-top: 1rem;
}
