/* ==========================================================================
   ORION — assets/css/pages/insights.css
   Shared by: insights.html (index) and insights/NNN.html (individual)
   ========================================================================== */

/* --------------------------------------------------------------------------
   INDEX PAGE — Hero
   -------------------------------------------------------------------------- */

.insights-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.insights-hero .narrow-page {
  max-width: 860px;
}

.insights-hero h1 {
  margin: 1.2rem 0 1.5rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 780;
}

.insights-hero .hero-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

/* Reading order notice — single sentence, understated */
.insights-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  padding: 10px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: .82rem;
  background: rgba(255, 255, 255, .025);
}

.insights-notice::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-soft);
  opacity: .7;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   INDEX PAGE — List
   -------------------------------------------------------------------------- */

.insights-list {
  padding-bottom: 7rem;
}

.insights-list .narrow-page {
  max-width: 860px;
}

/* Divider above the list */
.insights-list-divider {
  width: 100%;
  height: 1px;
  margin-bottom: 3rem;
  border: 0;
  background: linear-gradient(
    90deg,
    rgba(216, 168, 93, .38),
    rgba(255, 255, 255, .06),
    transparent
  );
}

/* Individual entry */
.insight-entry {
  display: block;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  transition:
    border-color .18s ease;
}

.insight-entry:first-child {
  border-top: 1px solid var(--line-soft);
}

.insight-entry:hover {
  border-bottom-color: rgba(216, 168, 93, .28);
}

.insight-entry:hover .insight-entry-title {
  color: #fff;
}

/* Content column */
.insight-entry-body {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.insight-entry-title {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
  transition: color .18s ease;
}

.insight-entry-summary {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
  max-width: 620px;
}

.insight-entry-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .2rem;
}

.insight-entry-date {
  color: var(--muted-2);
  font-size: .78rem;
  letter-spacing: .06em;
}

/* Layer badge — signals conceptual vs technical depth */
.insight-layer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .028);
}

/* --------------------------------------------------------------------------
   INDIVIDUAL INSIGHT PAGE — Hero
   -------------------------------------------------------------------------- */

.insight-page-hero {
  padding-top: 8rem;
  padding-bottom: 3.5rem;
}

.insight-page-hero .narrow-page {
  max-width: 860px;
}

/* Breadcrumb: Insights → current number */
.insight-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  color: var(--muted-2);
  font-size: .82rem;
}

.insight-breadcrumb a {
  color: var(--muted);
  transition: color .18s ease;
}

.insight-breadcrumb a:hover {
  color: var(--text);
}

.insight-breadcrumb-sep {
  opacity: .4;
}

.insight-breadcrumb-current {
  color: var(--gold-soft);
  letter-spacing: .12em;
  font-size: .76rem;
}

/* Page title */
.insight-page-hero h1 {
  margin: 1rem 0 1.4rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 780;
  max-width: 18ch;
}

.insight-page-hero .hero-lead {
  max-width: 640px;
  color: #ddd5c8;
  font-size: 1.06rem;
  line-height: 1.9;
}

/* Publication date */
.insight-pub-date {
  margin-top: 1.8rem;
  color: var(--muted-2);
  font-size: .8rem;
  letter-spacing: .08em;
}

/* --------------------------------------------------------------------------
   INDIVIDUAL INSIGHT PAGE — Article body
   -------------------------------------------------------------------------- */

.insight-article {
  padding-bottom: 7rem;
}

.insight-article .narrow-page {
  max-width: 760px;
}

/* --- Conceptual layer --- */

.insight-layer-concept {
  margin-bottom: 4.5rem;
}

.insight-layer-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.8rem;
  color: var(--muted-2);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.insight-layer-label::before {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--muted-2);
  opacity: .5;
}

.insight-layer-concept p {
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.95;
}

.insight-layer-concept p:first-of-type {
  color: #ddd5c8;
  font-size: 1.06rem;
}

.insight-layer-concept strong {
  color: var(--text);
  font-weight: 600;
}

.insight-layer-concept blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 1.8rem;
  border-left: 2px solid rgba(216, 168, 93, .42);
  color: #ddd5c8;
  font-size: 1.04rem;
  line-height: 1.9;
}

/* --- Layer separator --- */

.insight-layer-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  margin: 4rem 0;
}

.insight-layer-divider::before,
.insight-layer-divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, .08)
  );
}

.insight-layer-divider::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, .08),
    transparent
  );
}

.insight-layer-divider-label {
  color: var(--muted-2);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Technical layer --- */

.insight-layer-tech {
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(135, 199, 255, .06), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.016));
  box-shadow: var(--shadow);
}

.insight-layer-tech .insight-layer-label {
  margin-bottom: 1.5rem;
}

.insight-layer-tech p {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.9;
}

.insight-layer-tech p:last-child {
  margin-bottom: 0;
}

.insight-layer-tech strong {
  color: var(--text);
  font-weight: 600;
}

.insight-layer-tech code {
  padding: .1em .4em;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: rgba(255, 255, 255, .05);
  font-size: .88em;
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
  color: var(--gold-soft);
}

/* --- Footer of each Insight --- */

.insight-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.insight-footer-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .88rem;
  transition: color .18s ease;
}

.insight-footer-back:hover {
  color: var(--text);
}

.insight-footer-back::before {
  content: "←";
  font-size: .9em;
}

.insight-footer-date {
  color: var(--muted-2);
  font-size: .78rem;
  letter-spacing: .06em;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .insights-hero {
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }

  .insight-entry {
    padding: 1.4rem 0;
  }

  .insight-page-hero {
    padding-top: 6.5rem;
    padding-bottom: 2.5rem;
  }

  .insight-page-hero h1 {
    font-size: 2.2rem;
  }

  .insight-layer-tech {
    border-radius: var(--radius-md);
  }

  .insight-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}