/* =====================================================================
   ECONOMIC SYSTEMS — INSIGHTS
   Extends the approved global visual system in styles.css.
   ===================================================================== */

[hidden] { display: none !important; }

/* HERO */
.insights-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 104px) 0 88px;
  background: var(--white);
}

.insights-hero-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 12%, rgba(200,16,46,.09), transparent 28%),
    radial-gradient(circle at 10% 62%, rgba(56,33,43,.045), transparent 25%);
}

.insights-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}

.insights-hero-content h1 {
  max-width: 980px;
  margin: 0 auto 30px;
  font-size: clamp(3rem, 5vw, 5.1rem);
  font-weight: 450;
  line-height: 1.03;
  letter-spacing: -.052em;
}

.insights-hero-subtitle {
  max-width: 825px;
  margin: 0 auto 34px;
  padding: 24px 28px 25px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 4%, rgba(200,16,46,.20), transparent 31%),
    linear-gradient(125deg, var(--plum) 0%, var(--plum-2) 72%, #472733 100%);
  box-shadow: 0 10px 30px rgba(24,15,19,.08);
  color: rgba(255,255,255,.94);
  font-family: var(--sans);
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.insights-filter {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid #ebe7e5;
  border-radius: 17px;
  background: var(--soft-warm);
}

.insights-filter-btn {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 11px;
  color: #55575b;
  font-size: .79rem;
  font-weight: 600;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.insights-filter-btn:hover { background: var(--white); color: var(--red); }
.insights-filter-btn.active {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 5px 16px rgba(24,20,21,.055);
}

/* SUPPORTING GRADIENT NOTE */
.insights-gradient-note {
  max-width: 590px;
  padding: 22px 24px 23px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 4%, rgba(200,16,46,.20), transparent 31%),
    linear-gradient(125deg, var(--plum) 0%, var(--plum-2) 72%, #472733 100%);
  box-shadow: 0 10px 30px rgba(24,15,19,.07);
  color: rgba(255,255,255,.94);
  font-family: var(--sans);
  font-size: clamp(1.01rem, 1.16vw, 1.12rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -.008em;
}

/* INSIGHT LIBRARY */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.insight-card {
  align-self: start;
  overflow: hidden;
  border: 1px solid #ebe8e6;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(20,18,19,.025);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s ease;
}

.insight-card:hover,
.insight-card[open] {
  transform: translateY(-3px);
  border-color: #dfdad8;
  box-shadow: var(--shadow-md);
}

.insight-card summary {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 31px 31px 30px;
  cursor: pointer;
  list-style: none;
}

.insight-card summary::-webkit-details-marker { display: none; }

.insight-topic {
  width: fit-content;
  margin-bottom: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-family: var(--serif);
  font-size: .9rem;
  font-style: italic;
  line-height: 1.2;
}

.insight-card h3 {
  margin-bottom: 15px;
  font-size: clamp(1.38rem, 1.72vw, 1.8rem);
  font-weight: 500;
  line-height: 1.15;
}

.insight-card summary > p {
  margin-bottom: 28px;
  color: #57595d;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.62;
}

.insight-open {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 650;
}

.insight-open > span {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--soft-warm);
  color: var(--red);
  font-size: 1rem;
  transition: transform .18s var(--ease), background .18s ease;
}

.insight-card[open] .insight-open > span { transform: rotate(45deg); background: var(--red-soft); }

.insight-body {
  padding: 25px 31px 31px;
  border-top: 1px solid #eeeae8;
  background: var(--soft-warm);
}

.insight-body p {
  margin-bottom: 15px;
  color: #4f5155;
  font-family: var(--serif);
  font-size: .98rem;
  line-height: 1.68;
}

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

/* EDITORIAL STANDARD */
.insights-standard-section { padding-top: 32px; }

.insights-standard {
  padding: 68px 70px 70px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 88% 8%, rgba(200,16,46,.23), transparent 27%),
    linear-gradient(125deg, var(--plum) 0%, #321d26 65%, var(--plum-3) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.insights-standard-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
  grid-template-areas: "eyebrow eyebrow" "title copy";
  gap: 18px 72px;
  align-items: end;
  margin-bottom: 38px;
}

.insights-standard-copy .eyebrow { grid-area: eyebrow; margin-bottom: 0; }
.insights-standard-copy h2 { grid-area: title; max-width: 710px; color: var(--white); font-weight: 450; }
.insights-standard-copy > p:last-child {
  grid-area: copy;
  max-width: 560px;
  padding: 21px 23px 22px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.88);
  font-family: var(--sans);
  font-size: 1.03rem;
  font-weight: 300;
  line-height: 1.55;
}

.insights-standard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.insights-standard-grid article {
  min-height: 215px;
  padding: 28px 25px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
}

.insights-standard-grid article > span {
  display: inline-block;
  margin-bottom: 34px;
  color: #efc3cc;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.insights-standard-grid h3 { margin-bottom: 12px; color: var(--white); font-size: 1.22rem; font-weight: 500; }
.insights-standard-grid p { color: rgba(255,255,255,.74); font-family: var(--serif); font-size: .98rem; line-height: 1.6; }

/* SELECTED WORK */
.insights-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 35px 36px 36px;
  border: 1px solid #ebe8e6;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(20,18,19,.025);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s ease;
}

.work-card:hover { transform: translateY(-3px); border-color: #dfdad8; box-shadow: var(--shadow-md); }
.work-card-num { margin-bottom: 38px; color: var(--red); font-size: .73rem; font-weight: 700; letter-spacing: .1em; }
.work-card h3 { margin-bottom: 14px; font-size: clamp(1.45rem, 1.9vw, 2rem); font-weight: 500; }
.work-card p { max-width: 600px; margin-bottom: 24px; color: #57595d; font-family: var(--serif); font-size: 1rem; line-height: 1.62; }
.work-card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: .87rem; font-weight: 650; }
.work-card-link span { transition: transform .18s var(--ease); }
.work-card:hover .work-card-link { color: var(--red); }
.work-card:hover .work-card-link span { transform: translateX(3px); }

/* RESPONSIVE */
@media (max-width: 1120px) {
  .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insights-standard-copy { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "copy"; gap: 22px; align-items: start; }
}

@media (max-width: 820px) {
  .insights-hero { padding-top: calc(var(--header-h) + 78px); padding-bottom: 72px; }
  .insights-hero-content h1 { font-size: clamp(2.7rem, 11.2vw, 4.25rem); }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-card summary { min-height: 0; }
  .insights-standard { padding: 50px 32px; border-radius: 24px; }
  .insights-standard-grid { grid-template-columns: 1fr; }
  .insights-standard-grid article { min-height: 0; }
  .insights-work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .insights-hero { padding-top: calc(var(--header-h) + 58px); padding-bottom: 62px; }
  .insights-hero-content { text-align: left; }
  .insights-hero-subtitle { padding: 20px 20px 21px; border-radius: 15px; }
  .insights-filter { width: 100%; justify-content: flex-start; }
  .insights-filter-btn { padding-inline: 11px; }
  .insights-gradient-note { max-width: 100%; padding: 18px 19px 19px; border-radius: 14px; }
  .insight-card { border-radius: 18px; }
  .insight-card summary { padding: 27px 24px 25px; }
  .insight-body { padding: 22px 24px 26px; }
  .insights-standard { padding: 40px 22px; }
  .insights-standard-copy > p:last-child { padding: 18px 19px 19px; }
  .work-card { min-height: 0; padding: 30px 26px 31px; }
}

@media (prefers-reduced-motion: reduce) {
  .insight-card,
  .insight-open > span,
  .work-card,
  .work-card-link span,
  .insights-filter-btn { transition: none !important; }
}

/* ================================================================
   OPEN EDITORIAL HERO SUPPORT — APPROVED SITE-WIDE TREATMENT
   Opening hero copy stays open on white; interior plum modules remain.
   ================================================================ */

.insights-hero-subtitle {
  position: relative;
  max-width: 790px;
  margin: 0 auto 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #4b4d52;
  font-family: var(--sans);
  font-size: clamp(1.10rem, 1.38vw, 1.27rem);
  font-weight: 300;
  line-height: 1.56;
  letter-spacing: -.012em;
}

.insights-hero-subtitle::before {
  content: '';
  display: block;
  width: 54px;
  height: 2px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: var(--red);
}

@media (max-width: 560px) {
  .insights-hero-subtitle {
    max-width: 100%;
    margin: 0 0 32px;
    padding: 0;
    border-radius: 0;
    font-size: 1.06rem;
    line-height: 1.58;
  }

  .insights-hero-subtitle::before {
    width: 46px;
    margin: 0 0 19px;
  }
}
