/* ===========================================================================
   P3 INSIGHTS — editorial layer
   Loaded only on /insights/ pages. Uses the design tokens in styles.css and
   adds nothing to the global stylesheet.
   ========================================================================= */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* measure for running text — ~68 characters at the body size */
.ins-narrow { max-width: 760px; margin-inline: auto; }

.ins-kicker, .ins-eyebrow, .ins-tag, .ins-meta, .ins-crumb, .ins-share-k, .ins-eol-k {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------------------------------------------------------- masthead ---- */

.ins-masthead {
  padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.ins-kicker { color: var(--amber-deep); }
.ins-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  color: var(--navy);
  margin: .5rem 0 0;
  text-wrap: balance;
}
.ins-intro {
  margin-top: 1rem;
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--text-muted);
}

/* ----------------------------------------------------------- feature ---- */

.ins-feature-wrap { padding-block: clamp(36px, 5vw, 64px); }
.ins-eyebrow { color: var(--amber-deep); }
.ins-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  margin-top: 1rem;
}
.ins-feature-media {
  display: block; border-radius: var(--r-md); overflow: hidden;
  background: var(--tint); aspect-ratio: 16 / 9;
}
.ins-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ins-feature-title {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.1; letter-spacing: -.02em; color: var(--navy);
  margin: .45rem 0 .6rem; text-wrap: balance;
}
.ins-feature-title a { color: inherit; text-decoration: none; }
.ins-feature-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ins-feature-ex { font-size: 1.05rem; color: var(--text-muted); max-width: 52ch; }
.ins-feature-body .btn { margin-top: 1.1rem; }
.ins-feature .ins-meta { margin-top: .75rem; }
@media (max-width: 860px) { .ins-feature { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- list ---- */

.ins-list { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.ins-list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.ins-h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.12;
  letter-spacing: -.02em; color: var(--navy); margin: 0;
}
.ins-search input {
  font-family: var(--font); font-size: .95rem;
  padding: .6rem .9rem; min-width: 240px;
  border: 1px solid var(--line-strong); border-radius: 100px;
  background: var(--white); color: var(--text);
}
.ins-search input:focus { outline: 2px solid var(--focus); outline-offset: 2px; }

.ins-filter { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.25rem 0 1.75rem; }
.ins-chip {
  font-family: var(--font); font-size: .82rem; font-weight: 600;
  padding: .45rem .9rem; cursor: pointer;
  background: var(--white); color: var(--text-muted);
  border: 1px solid var(--line-strong); border-radius: 100px;
  transition: border-color .15s var(--ease), color .15s var(--ease), background-color .15s var(--ease);
}
.ins-chip:hover { border-color: var(--steel); color: var(--navy); }
.ins-chip.is-on { background: var(--navy); border-color: var(--navy); color: var(--white); }

.ins-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
@media (max-width: 980px) { .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ins-grid { grid-template-columns: 1fr; } }

.ins-card { display: flex; flex-direction: column; gap: .75rem; }
.ins-card[hidden] { display: none; }
.ins-card-media {
  display: block; border-radius: var(--r-md); overflow: hidden;
  background: var(--tint); aspect-ratio: 16 / 10;
}
.ins-card-media img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s var(--ease); }
.ins-card:hover .ins-card-media img { transform: scale(1.03); }
.ins-card-noimg { display: block; width: 100%; height: 100%; background: var(--tint); }
.ins-card-body { display: flex; flex-direction: column; gap: .4rem; }
.ins-card-title {
  font-size: 1.12rem; line-height: 1.25; letter-spacing: -.012em;
  color: var(--navy); margin: 0;
}
.ins-card-title a { color: inherit; text-decoration: none; }
.ins-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ins-card-ex { font-size: .92rem; color: var(--text-muted); margin: 0; }

.ins-empty { margin-top: 1.5rem; color: var(--text-muted); }
.ins-more-wrap { display: flex; justify-content: center; margin-top: 2.25rem; }

/* ----------------------------------------------------------- article ---- */

.ins-article { padding-block: clamp(28px, 4vw, 48px) 0; }
.ins-crumb { margin-bottom: 1.5rem; }
.ins-crumb a { color: var(--text-muted); text-decoration: none; }
.ins-crumb a:hover { color: var(--navy); text-decoration: underline; }
.ins-crumb span[aria-hidden] { color: var(--line-strong); margin-inline: .25rem; }

.ins-tag { color: var(--amber-deep); }
.ins-h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.06;
  letter-spacing: -.024em; color: var(--navy); margin: .55rem 0 0; text-wrap: balance;
}
.ins-standfirst {
  font-family: var(--serif); font-size: clamp(1.14rem, 2vw, 1.38rem);
  line-height: 1.5; color: var(--steel); margin-top: 1rem;
}
.ins-byline {
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
}
.ins-author { color: var(--navy); font-weight: 500; }

.ins-hero-fig { margin: clamp(24px, 4vw, 44px) 0; }
.ins-hero-fig img {
  width: 100%; height: auto; display: block;
  max-height: 620px; object-fit: cover; object-position: center;
  border-radius: var(--r-md);
}

/* running text */
.ins-body { font-family: var(--serif); font-size: 1.14rem; line-height: 1.68; color: var(--text); }
.ins-body > * + * { margin-top: 1.15rem; }
.ins-body h2 {
  font-family: var(--font); font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  line-height: 1.15; letter-spacing: -.02em; color: var(--navy);
  margin-top: 2.4rem;
}
.ins-body h3 {
  font-family: var(--font); font-size: 1.18rem; line-height: 1.25;
  color: var(--navy); margin-top: 1.9rem;
}
.ins-body a { color: var(--navy); text-underline-offset: 3px; }
.ins-body ul, .ins-body ol { padding-left: 1.3rem; }
.ins-body li + li { margin-top: .4rem; }
.ins-body hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.ins-body code { font-family: var(--mono); font-size: .88em; }

.ins-fig { margin-block: 2rem; }
.ins-fig img { width: 100%; height: auto; display: block; border-radius: var(--r-md); }
.ins-fig figcaption {
  font-family: var(--font); font-size: .84rem; color: var(--text-muted); margin-top: .6rem;
}

.ins-pull {
  margin-block: 2rem; padding-left: 1.4rem;
  border-left: 3px solid var(--amber);
}
.ins-pull p {
  font-family: var(--font); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.22;
  letter-spacing: -.018em; color: var(--navy); margin: 0;
}
.ins-pull cite {
  display: block; margin-top: .6rem; font-style: normal;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
}

.ins-key {
  margin-block: 2rem; padding: 1.25rem 1.4rem;
  background: var(--amber-soft); border-radius: var(--r-md);
  font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--navy);
}
.ins-key > * + * { margin-top: .7rem; }
.ins-key p { margin: 0; }

/* ------------------------------------------------- campaign + sharing ---- */

.ins-eol {
  margin-top: 2.75rem; padding: 1.5rem 1.6rem;
  background: var(--ink); border-radius: var(--r-md); color: var(--white);
}
.ins-eol-k { color: var(--amber); margin: 0; }
.ins-eol-h {
  font-family: var(--font); font-weight: 700; font-size: 1.3rem;
  line-height: 1.15; margin: .4rem 0 .5rem;
}
.ins-eol-b { font-size: .95rem; color: var(--mist); margin: 0 0 1rem; max-width: 56ch; }

.ins-eol-band { background: var(--ink); color: var(--white); padding-block: clamp(40px, 5vw, 72px); }
.ins-eol-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center;
}
.ins-eol-band .ins-eol-h { font-size: clamp(1.4rem, 2.8vw, 2rem); }
@media (max-width: 740px) { .ins-eol-grid { grid-template-columns: 1fr; } }

.ins-share { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.ins-share-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.ins-share-l {
  font-family: var(--font); font-size: .84rem; font-weight: 600;
  padding: .45rem .9rem; text-decoration: none;
  color: var(--navy); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: 100px;
}
.ins-share-l:hover { border-color: var(--navy); }

.ins-back { margin-top: 2rem; padding-bottom: clamp(40px, 6vw, 72px); }
.ins-back a { font-family: var(--font); font-weight: 600; color: var(--navy); text-decoration: none; }
.ins-back a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ins-related {
  background: var(--surface); border-top: 1px solid var(--line);
  padding-block: clamp(44px, 6vw, 80px);
}
.ins-related .ins-grid { margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .ins-card-media img { transition: none; }
  .ins-card:hover .ins-card-media img { transform: none; }
}

.ins-eol-cta { display: flex; align-items: center; }
