/* AffixIO Trends — enterprise layout (evaluate-aligned, dark hero retained) */
.page.trends-hub-page {
  --ink: #101317;
  --chalk: #f4f6f8;
  --muted: #6b7580;
  --line: #d5dbe3;
  --card: #ffffff;
  --band: #eef2f6;
  --coal: #101317;
  --graphite: #1c232b;
  --verdict: #1a4d6d;
  --verdict-soft: #6a9bb8;
  --accent: #1a4d6d;
  --page: 76rem;
  --prose: 46rem;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: #f7f8fa;
  text-align: left;
}

.trends-hub-page > .topbar {
  max-width: var(--page);
  margin-inline: auto;
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 0.85rem;
  border-bottom: none;
}

.trends-hub-page > .footer {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
  padding-block-end: 2.5rem;
}

.tr-wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
  text-align: left;
}

.tr-wrap--narrow {
  max-width: calc(var(--prose) + 2 * clamp(1rem, 3vw, 2rem));
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

/* —— Hero (coal + verdict, every trends page) —— */
.tr-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
  background: var(--coal);
  border-block-end: 1px solid color-mix(in srgb, var(--verdict) 28%, transparent);
  overflow: clip;
  color: var(--chalk);
}

.tr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    148deg,
    color-mix(in srgb, var(--coal) 78%, var(--verdict)) 0%,
    var(--coal) 44%,
    color-mix(in srgb, var(--coal) 92%, var(--graphite)) 100%
  );
}

.tr-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--verdict-soft) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--verdict-soft) 12%, transparent) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: radial-gradient(ellipse 88% 65% at 40% 30%, #000 10%, transparent 72%);
  opacity: 0.4;
}

.tr-hero .tr-wrap {
  position: relative;
  z-index: 1;
}

.tr-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.tr-hero__copy {
  min-width: 0;
}

.tr-breadcrumb {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--chalk) 48%, transparent);
  margin: 0 0 1.35rem;
  line-height: 1.45;
}

.tr-breadcrumb a {
  color: var(--verdict-soft);
  text-decoration: none;
}

.tr-breadcrumb a:hover {
  text-decoration: underline;
}

.tr-hero__kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--verdict-soft);
  margin: 0 0 0.85rem;
}

.tr-hero h1 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.85rem, 4.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  max-width: 18ch;
  color: #fff;
}

.tr-hero--index h1 {
  max-width: 14ch;
}

.trends-hub-page--article .tr-hero h1 {
  max-width: 22ch;
}

.tr-hero__lead {
  font-size: clamp(1rem, 1.55vw, 1.125rem);
  line-height: 1.65;
  color: color-mix(in srgb, var(--chalk) 82%, transparent);
  max-width: 40rem;
  margin: 0 0 1.25rem;
}

.tr-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--chalk) 55%, transparent);
  margin: 0 0 1.2rem;
}

.tr-hero__meta strong {
  color: var(--verdict-soft);
  font-weight: 600;
}

.tr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.35rem;
}

.tr-chip {
  border: 1px solid color-mix(in srgb, var(--verdict-soft) 35%, transparent);
  border-radius: 0.15rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--verdict-soft);
  background: color-mix(in srgb, var(--verdict) 18%, transparent);
}

.tr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tr-btn--primary {
  background: var(--verdict-soft);
  color: var(--coal);
}

.tr-btn--primary:hover {
  background: #fff;
}

.tr-btn--ghost {
  background: transparent;
  color: var(--chalk);
  border-color: color-mix(in srgb, var(--chalk) 28%, transparent);
}

.tr-btn--ghost:hover {
  border-color: var(--verdict-soft);
  color: var(--verdict-soft);
}

.tr-hero__aside {
  min-width: 0;
}

.tr-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tr-metric {
  border: 1px solid color-mix(in srgb, var(--chalk) 12%, transparent);
  background: color-mix(in srgb, var(--graphite) 55%, transparent);
  padding: 1rem 1.1rem;
}

.tr-metric strong {
  display: block;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.tr-metric span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--chalk) 50%, transparent);
}

/* —— Body bands —— */
.tr-band {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.tr-band--alt {
  background: var(--band);
  border-block: 1px solid var(--line);
}

.tr-band--coal {
  background: var(--coal);
  color: var(--chalk);
}

.tr-band__head {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.tr-band__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verdict);
  margin: 0 0 0.55rem;
}

.tr-band--coal .tr-band__eyebrow {
  color: var(--verdict-soft);
}

.tr-band__head h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.tr-band__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.tr-band--coal .tr-band__lead {
  color: color-mix(in srgb, var(--chalk) 70%, transparent);
}

/* Index catalogue */
.tr-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.tr-cat {
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.tr-cat:hover,
.tr-cat.is-active {
  border-color: var(--verdict);
  color: var(--verdict);
}

.tr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tr-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.35rem 1.25rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}

.tr-card:hover {
  border-color: color-mix(in srgb, var(--verdict) 45%, var(--line));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--coal) 6%, transparent);
}

.tr-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verdict);
}

.tr-card h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.015em;
}

.tr-card p {
  margin: 0;
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
}

.tr-card__more {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--verdict);
}

/* Article prose */
.tr-prose {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #243039;
  max-width: var(--prose);
}

.tr-prose p {
  margin: 0 0 1.15rem;
}

.tr-prose h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 2.1rem 0 0.85rem;
  color: var(--ink);
  line-height: 1.25;
}

.tr-prose h2:first-child {
  margin-top: 0.5rem;
}

.tr-prose a {
  color: var(--verdict);
  font-weight: 600;
}

.tr-definition {
  border-left: 3px solid var(--verdict);
  padding: 1rem 0 1rem 1.25rem;
  margin: 0 0 1.5rem;
  max-width: var(--prose);
  background: color-mix(in srgb, var(--band) 70%, transparent);
  font-size: 1.05rem;
  line-height: 1.6;
}

.tr-callout {
  margin: 0 0 1.5rem;
  max-width: var(--prose);
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--verdict);
  background: var(--card);
  font-size: 0.98rem;
  line-height: 1.55;
  color: #243039;
}

.tr-callout strong {
  color: var(--ink);
}

.tr-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.tr-panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.25rem 1.3rem;
}

.tr-panel h3 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.02rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.tr-panel p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.tr-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  counter-reset: trstep;
  max-width: 52rem;
}

.tr-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.15rem 1.25rem;
  counter-increment: trstep;
}

.tr-steps li::before {
  content: counter(trstep, decimal-leading-zero);
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--verdict);
  letter-spacing: 0.04em;
  line-height: 1.4;
  padding-top: 0.1rem;
}

.tr-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-family: "DM Sans", system-ui, sans-serif;
}

.tr-steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.tr-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  max-width: 52rem;
}

.tr-check li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.95rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.5;
}

.tr-check li::before {
  content: "+";
  font-weight: 700;
  color: var(--verdict);
}

.tr-faq {
  max-width: 52rem;
}

.tr-faq details {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 1.05rem 1.2rem;
  margin: 0 0 0.6rem;
}

.tr-faq summary {
  cursor: pointer;
  font-weight: 650;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.tr-faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.tr-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tr-related a {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.96rem;
  transition: border-color 0.15s ease;
}

.tr-related a:hover {
  border-color: var(--verdict);
  color: var(--verdict);
}

.tr-related a span {
  display: block;
  margin-top: 0.3rem;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
}

.tr-cta-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.tr-cta-band h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.tr-cta-band p {
  margin: 0;
  max-width: 36rem;
  color: color-mix(in srgb, var(--chalk) 72%, transparent);
  line-height: 1.55;
  font-size: 1rem;
}

.tr-eeat {
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
  max-width: var(--prose);
}

.tr-eeat strong {
  color: var(--ink);
}

.tr-eeat a {
  color: var(--verdict);
}

.tr-eeat p {
  margin: 0 0 0.4rem;
}

/* —— Breakpoints —— */
@media (min-width: 720px) {
  .tr-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .tr-cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .tr-hero__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.75fr);
    gap: 2.5rem 3rem;
    align-items: end;
  }

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

  .trends-hub-page--index .tr-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.75rem;
  }
}

@media (min-width: 1100px) {
  .tr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .tr-hero h1,
  .trends-hub-page--article .tr-hero h1,
  .tr-hero--index h1 {
    max-width: none;
  }

  .tr-hero__aside {
    margin-top: 0.25rem;
  }
}
