/* pages/insights.css — Insights page layouts + archive + hero/banner */

/* ================= INSIGHTS LAYOUT ================= */

/* Top section: featured on the left, 3 compact cards stacked on the right */
.insights-top{
  display: grid;
  grid-template-columns: 2fr 1fr;   /* left bigger, right narrower */
  gap: 14px;
  align-items: stretch;            /* both columns same height */
}

/* Ensure children can stretch and not overflow weirdly */
.insights-top > *{
  min-width: 0;
  min-height: 0;
}

/* Responsive: stack on mobile */
@media (max-width: 900px){
  .insights-top{
    grid-template-columns: 1fr;
  }
}

.insight-featured{
  padding: 0;
  display: flex;
  flex-direction: row;
  height: 100%;
}

.insight-featured .featured-body{
  position: relative;
}

.featured-image{
  flex: 0 0 38%;
  height: 100%;
  background: rgba(11,16,32,.08);
  border-right: 1px solid var(--line);
}

.featured-body{
  padding: 18px;
  flex: 1;
}

.featured-title{
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
}

.featured-subtitle{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.featured-preview{
  margin: 0 0 14px;
  color: var(--muted);
}

/* Right side: 3 equal rows */
.insight-side{
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.media-kit{
  width: 100%;
  padding: 12px 14px; /* 👈 subtle internal margin */
  background: transparent;
  border: none;
  box-shadow: none;

  display: flex;
  flex-direction: column;
  align-items: stretch; /* lets CTA row span full width */
}

.media-kit .insight-link{
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.85;
  text-align: right;
}

/* ===== Newsletter CTA (Media Kit box) ===== */

.newsletter-cta{
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.newsletter-cta:hover{
  text-decoration: underline;
}

.newsletter-feedback{
  min-height: 16px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

/* secondary line */
.media-kit-secondary{
  margin-top: 10px;
  text-align: center;
}

.advertise-text{
  display: inline;
}

.media-kit-inline-link{
  display: inline;          /* 👈 CRITICAL */
  font-weight: 750;
  color: var(--muted);
  text-decoration: none;
}

.media-kit-inline-link:hover{
  text-decoration: underline;
}

/* ===== Newsletter modal ===== */

.newsletter-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.newsletter-modal-box{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  min-width: 380px;
}

.newsletter-modal-box input{
  width: 260px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.newsletter-modal-box button{
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.newsletter-modal-feedback{
  grid-column: 1 / -1;
  min-height: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.insight-compact{
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.compact-body{
  padding: 14px;
  flex: 1;
  min-width: 0;
}

.compact-media{
  flex: 0 0 38%;
  height: 100%;
  background: rgba(11,16,32,.08);
  border-right: 1px solid var(--line);
}

.compact-title{ margin: 0 0 6px; font-size: 16px; line-height: 1.25; }
.compact-subtitle{ margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.compact-preview{ margin: 0; font-size: 13px; color: var(--muted); }

/* Archive */
.insights-archive{
  padding-top: clamp(24px, 4vh, 48px);
  padding-bottom: clamp(20px, 3vh, 36px);
  border-top: 1px solid var(--line);
}

.archive-list{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.archive-item{
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.archive-item.is-hidden{
  display: none;
}

.archive-body{
  padding: 16px;
  flex: 1;
  min-width: 0;
}

.archive-media{
  flex: 0 0 32%;
  height: 100%;
  background: rgba(11,16,32,.08);
  border-right: 1px solid var(--line);
}

.archive-title{ margin: 0 0 6px; font-size: 15px; line-height: 1.25; }
.archive-subtitle{ margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.archive-preview{ margin: 0; font-size: 13px; color: var(--muted); }

.archive-actions{
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* ================= SHARE BUTTON ================= */

.card{
  position: relative;
}

.share-btn{
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: .65;
}

.share-btn:hover{
  opacity: 1;
}

.share-btn img{
  width: 14px;
  height: 14px;
  display: block;
}

.share-popup{
  display: none;
}

.copy-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.copy-modal-box{
  display: flex;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.copy-modal-box input{
  width: 280px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.copy-modal-box button{
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.insight-featured .share-btn{
  right: 14px;
  bottom: 14px;
}

/* Make Insights breaks match Know Us: no gray wrapper panels */
.insights-break{
  padding: 20px 0;
  background: transparent;
}

.insights-break .firm-break-inner{
  background: transparent;    /* key: removes the gray “overlay panels” */
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* ================= INSIGHTS (KNOW-US STYLE) ================= */

/* Turn off the global top padding for this page so the hero image starts at the top */
.insights-scroll-page{
  padding-top: 0 !important;
}

/* A bit of breathing room after the lead */
.insights-break .lead{
  margin: 0 0 18px 0;
}

/* Overrides: restore normal colors for archive + buttons on this layout */
.insights-scroll-page .insights-archive{
  border-top: 1px solid var(--line);
}

.insights-scroll-page .section-title{
  color: var(--text);
}

.insights-scroll-page .archive-actions .btn{
  color: inherit;
  border-color: var(--line);
  background: rgba(11,16,32,.04);
}

.insights-scroll-page .archive-actions .btn:hover{
  background: rgba(11,16,32,.07);
}

/* Responsive */
@media (max-width: 900px){
  .archive-list{ grid-template-columns: 1fr; }
}

.insight-link{
  display: block;
  color: inherit;
  text-decoration: none;
}

.insight-link:hover{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ===== Media Kit CTA (bigger, attention) ===== */

.newsletter-cta-row{
  display: grid;
  grid-template-columns: 1fr auto; /* text | button */
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.newsletter-cta-text{
  font-size: 15.5px;
  line-height: 1.3;
  font-weight: 650;
  color: var(--header-blue);

  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Orange subscribe button */
.newsletter-cta-btn{
  appearance: none;
  border: 1px solid rgba(0,0,0,0);
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-cta-btn:hover{
  filter: brightness(0.97);
}

/* ===== Looking to advertise (bigger) ===== */

.media-kit-secondary{
  margin-top: 10px;
  text-align: center;
}

.advertise-line{
  display: inline;
}

.advertise-text{
  display: inline;
  font-size: 13.5px;
  color: var(--muted);
}

/* Only Media Kit is clickable + bold */
.media-kit-inline-link{
  display: inline;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--muted);
  text-decoration: none;
}

.media-kit-inline-link:hover{
  text-decoration: underline;
}
