
/*
 * Authority Engine sprint 2: make comparisons and Tool Watch feel like a
 * product workflow instead of more homepage cards.
 */
.home-decision-engine {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(238, 240, 242, 0.08);
  border-radius: 8px;
  background: rgba(238, 240, 242, 0.07);
}

.home-comparison-panel,
.home-tool-watch-panel {
  display: grid;
  align-content: start;
  gap: clamp(14px, 2vw, 22px);
  min-width: 0;
  padding: clamp(18px, 2.2vw, 28px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.032), transparent 48%),
    rgba(17, 19, 24, 0.94);
}

.home-tool-watch-panel {
  background:
    radial-gradient(circle at 12% 12%, rgba(122, 167, 138, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(200, 184, 141, 0.055), transparent 52%),
    rgba(17, 19, 24, 0.94);
}

.home-decision-panel-head {
  display: grid;
  gap: 8px;
}

.home-decision-panel-head h3 {
  max-width: 18ch;
  margin: 0;
  color: #f4f1e9;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-comparison-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(238, 240, 242, 0.08);
  border-radius: 8px;
  background: rgba(238, 240, 242, 0.07);
}

.home-comparison-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
  background: rgba(3, 6, 11, 0.3);
}

.home-comparison-link > span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(200, 184, 141, 0.18);
  border-radius: 8px;
  color: rgba(200, 184, 141, 0.96);
  background: rgba(200, 184, 141, 0.055);
}

.home-comparison-link .o4-ui-icon {
  width: 17px;
  height: 17px;
}

.home-comparison-link strong {
  color: #f4f1e9;
  font-family: var(--o4-font-ui);
  font-size: 0.96rem;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-comparison-link small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(238, 240, 242, 0.58);
  font-size: 0.78rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-tool-watch-panel > p {
  max-width: 32rem;
  margin: 0;
  color: rgba(238, 240, 242, 0.66);
  font-size: 0.94rem;
  line-height: 1.55;
}

.home-tool-watch-signals {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(238, 240, 242, 0.08);
  border-radius: 8px;
  background: rgba(238, 240, 242, 0.07);
}

.home-tool-watch-signals > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  padding: 12px;
  background: rgba(3, 6, 11, 0.32);
}

.home-tool-watch-signals > div > span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(122, 167, 138, 0.24);
  border-radius: 8px;
  color: rgba(122, 167, 138, 0.96);
  background: rgba(122, 167, 138, 0.075);
}

.home-tool-watch-signals .o4-ui-icon {
  width: 16px;
  height: 16px;
}

.home-tool-watch-signals strong {
  color: #f4f1e9;
  font-family: var(--o4-font-ui);
  font-size: 0.85rem;
  line-height: 1.15;
}

.home-tool-watch-signals small {
  color: rgba(238, 240, 242, 0.58);
  font-size: 0.76rem;
  line-height: 1.42;
}

@media (prefers-reduced-motion: no-preference) {
  .home-comparison-link,
  .home-tool-watch-signals > div {
    transition: transform 190ms ease, background 190ms ease, border-color 190ms ease;
  }

  .home-comparison-link:hover,
  .home-comparison-link:focus-visible {
    transform: translateX(2px);
    background: rgba(200, 184, 141, 0.055);
  }

  .home-tool-watch-signals > div:hover {
    transform: translateX(2px);
    background: rgba(122, 167, 138, 0.07);
  }
}

@media (max-width: 980px) {
  .home-decision-engine {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-comparison-panel,
  .home-tool-watch-panel {
    padding: 14px;
  }

  .home-decision-panel-head h3 {
    max-width: 14ch;
    font-size: clamp(1.35rem, 7vw, 1.9rem);
  }
}

@media (max-width: 1160px) {
  .site-header-inner,
  .site-header.is-condensed .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .site-brand {
    justify-self: start;
  }

  .nav-toggle,
  .header-right {
    justify-self: end;
  }

  .header-search {
    display: none;
  }
}
