
/*
 * Authority Engine v1: audience-led OSINT decision paths. This is deliberately
 * quieter than the earlier guide-card grid so the homepage reads as a system,
 * not a pile of recommendations.
 */
.home-authority-section {
  padding-top: clamp(34px, 5vw, 66px);
}

.home-authority-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  overflow: hidden;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--o4-premium-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 10%, rgba(122, 167, 138, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(200, 184, 141, 0.055), transparent 38%),
    rgba(10, 12, 15, 0.88);
}

.home-authority-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(238, 240, 242, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(238, 240, 242, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(120deg, #000, transparent 72%);
  opacity: 0.75;
}

.home-authority-shell > * {
  position: relative;
  z-index: 1;
}

.home-authority-lead {
  display: grid;
  align-content: center;
  gap: 14px;
}

.home-authority-lead h2 {
  max-width: 11ch;
  margin: 0;
  color: #f6f3ec;
  font-size: clamp(2.2rem, 4vw, 4.05rem);
  font-weight: 760;
  line-height: 0.95;
  letter-spacing: 0;
}

.home-authority-proof {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.home-authority-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(238, 240, 242, 0.09);
  border-radius: 999px;
  color: rgba(238, 240, 242, 0.72);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--o4-font-ui);
  font-size: 0.74rem;
  font-weight: 800;
}

.home-authority-proof .o4-ui-icon {
  width: 14px;
  height: 14px;
  color: rgba(200, 184, 141, 0.95);
}

.home-authority-map {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(238, 240, 242, 0.09);
  border-radius: 8px;
  background: rgba(238, 240, 242, 0.075);
}

.home-authority-track {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(168px, 0.34fr);
  gap: 14px;
  align-items: center;
  min-height: 108px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 48%),
    rgba(17, 19, 24, 0.94);
}

.home-authority-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(200, 184, 141, 0.24);
  border-radius: 8px;
  color: rgba(244, 241, 233, 0.96);
  background: rgba(200, 184, 141, 0.065);
}

.home-authority-node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(122, 167, 138, 0.16);
  border-radius: 12px;
  opacity: 0;
}

.home-authority-node .o4-ui-icon {
  width: 23px;
  height: 23px;
}

.home-authority-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.home-authority-copy small,
.authority-brand-strip span,
.home-authority-signals em {
  font-family: var(--o4-font-ui);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-authority-copy small {
  color: rgba(200, 184, 141, 0.9);
}

.home-authority-copy strong {
  color: #f4f1e9;
  font-family: var(--o4-font-ui);
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.home-authority-copy > span:last-child {
  color: rgba(238, 240, 242, 0.62);
  font-size: 0.9rem;
  line-height: 1.48;
}

.home-authority-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.home-authority-signals em {
  min-height: 25px;
  padding: 6px 8px;
  border: 1px solid rgba(238, 240, 242, 0.09);
  border-radius: 999px;
  color: rgba(238, 240, 242, 0.66);
  background: rgba(3, 6, 11, 0.28);
  line-height: 1;
  white-space: nowrap;
}

.home-field-guides {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(238, 240, 242, 0.08);
}

.home-field-guides h3 {
  margin: 0;
  color: #f4f1e9;
  font-size: 1.05rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.home-field-guides nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.home-field-guides a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 10px 11px;
  border: 1px solid rgba(238, 240, 242, 0.09);
  border-radius: 8px;
  color: rgba(238, 240, 242, 0.74);
  background: rgba(3, 6, 11, 0.26);
  font-family: var(--o4-font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.field-guide-icon {
  width: 16px;
  height: 16px;
  color: rgba(200, 184, 141, 0.92);
}

.authority-brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 4px;
}

.authority-brand-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(238, 240, 242, 0.09);
  border-radius: 999px;
  color: rgba(238, 240, 242, 0.7);
  background: rgba(255, 255, 255, 0.035);
}

.authority-brand-strip span:first-child {
  border-color: rgba(200, 184, 141, 0.22);
  color: rgba(200, 184, 141, 0.96);
  background: rgba(200, 184, 141, 0.055);
}

.page-shell-authority-hub .page-content-panel {
  background:
    radial-gradient(circle at top left, rgba(122, 167, 138, 0.12), transparent 34%),
    rgba(3, 6, 11, 0.18);
}

.page-shell-authority-hub .guide-answer-box {
  background:
    linear-gradient(135deg, rgba(122, 167, 138, 0.16), rgba(17, 19, 24, 0.94) 44%, rgba(200, 184, 141, 0.08)),
    #111318;
}

.page-shell-authority-hub .guide-tool-card,
.page-shell-authority-hub .guide-decision-grid section,
.page-shell-authority-hub .guide-step-list li {
  border-radius: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  .home-authority-track,
  .home-field-guides a,
  .home-authority-node::after {
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
  }

  .home-authority-track:hover,
  .home-authority-track:focus-visible {
    background:
      linear-gradient(145deg, rgba(200, 184, 141, 0.055), transparent 46%),
      rgba(20, 23, 28, 0.96);
  }

  .home-authority-track:hover .home-authority-node,
  .home-authority-track:focus-visible .home-authority-node {
    transform: translateY(-1px);
    border-color: rgba(200, 184, 141, 0.42);
  }

  .home-authority-track:hover .home-authority-node::after,
  .home-authority-track:focus-visible .home-authority-node::after {
    opacity: 1;
    animation: o4-authority-pulse 950ms ease both;
  }

  .home-field-guides a:hover,
  .home-field-guides a:focus-visible {
    color: #f4f1e9;
    border-color: rgba(200, 184, 141, 0.24);
    background: rgba(200, 184, 141, 0.055);
    transform: translateY(-1px);
  }
}

@keyframes o4-authority-pulse {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1120px) {
  .home-authority-shell,
  .home-field-guides {
    grid-template-columns: 1fr;
  }

  .home-authority-lead h2 {
    max-width: 14ch;
  }

  .home-field-guides nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-authority-shell {
    padding: 18px;
  }

  .home-authority-track {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    padding: 14px;
  }

  .home-authority-signals {
    grid-column: 2;
    justify-content: flex-start;
  }

  .home-field-guides nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-authority-track {
    grid-template-columns: 1fr;
  }

  .home-authority-signals {
    grid-column: auto;
  }

  .home-authority-node {
    width: 42px;
    height: 42px;
  }
}
