/* ==========================================================================
   Define IT Solution — insights.css
   Published Insight cards and the article template.

   The card artwork is a CSS background layered over the existing
   .post-card__thumb, which already renders a dark grid gradient. That
   ordering is the whole missing-image strategy: if the file is not there
   yet, the placeholder underneath simply shows through. There is no
   broken-image icon to handle because there is no <img> to break, and the
   card keeps its 16:9 box either way.
   ========================================================================== */

/* --- card ---------------------------------------------------------------- */
.post-card--live { padding: 0; overflow: hidden; }

/* The whole card is the target, so the heading, image and CTA are one link
   rather than three. */
.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-5);
  text-decoration: none;
  color: inherit;
}
.post-card__link:focus-visible {
  outline: 2px solid var(--define-cyan, #00CAFD);
  outline-offset: -4px;
  border-radius: var(--r-lg);
}

/* The thumb is the 16:9 frame and the dark-grid fallback; the <img> sits
   inside it. If the file is missing the <img> removes itself and the frame is
   simply what shows — same box, no broken icon, no layout shift. */
.post-card--live .post-card__thumb { display: block; }
.post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;                  /* crops, never stretches */
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
  transform: scale(1);
  transition: transform 620ms var(--ease-out-premium, cubic-bezier(.16, 1, .3, 1));
  will-change: transform;
}

/* Dark wash at the foot of the image so white type below never sits against
   a bright photograph edge. Above the image, hence z-index 2. */
.post-card--live .post-card__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(4, 8, 14, 0) 42%, rgba(4, 8, 14, 0.72) 100%);
}

.post-card--live h3 { transition: color 240ms var(--ease, ease); }
.post-card__cta { margin-top: auto; padding-top: var(--sp-4); }

/* --- card hover ---------------------------------------------------------- */
.post-card--live:hover .post-card__img,
.post-card__link:focus-visible .post-card__img { transform: scale(1.03); }
.post-card--live:hover { border-color: rgba(0, 202, 253, 0.5); }
.post-card--live:hover h3 { color: #EAF6FF; }
.post-card--live:hover .post-card__cta::after { transform: translateX(5px); }

@media (prefers-reduced-motion: reduce) {
  .post-card__img { transition: none; }
  .post-card--live:hover .post-card__img,
  .post-card__link:focus-visible .post-card__img { transform: none; }
}

/* --- article ------------------------------------------------------------- */
/* A narrower measure than the rest of the site. Long-form body copy needs
   roughly 65-75 characters a line to stay comfortable; the standard
   container is built for grids and is far too wide for prose. */
.container--reading { max-width: 760px; }

/* The head borrows .page-hero's grid and glow so an article opens the same
   way every other inner page does, rather than looking like a bolted-on blog. */
.article.page-hero { padding-bottom: 0; }
.article__head { padding-block: var(--sp-4) var(--sp-6); }
.article__head .breadcrumbs { padding-top: 0; margin-bottom: var(--sp-6); }
.article__head h1 { margin-bottom: var(--sp-5); }

.article__standfirst {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
}

.article__meta {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin: 0;
}

.article__hero {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(140deg, var(--ink-700) 0%, rgba(36, 183, 232, 0.35) 160%);
  position: relative;
}
.article__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
}
/* Same grid placeholder as the cards, so an article without artwork still
   looks deliberate rather than unfinished. */
.article__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.article__body { padding-block: var(--sp-7) var(--sp-8); }
.article__body h2 {
  font-size: var(--fs-h3);
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
}
.article__body > p {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.article__body a { color: #EAF6FF; text-decoration: underline; text-underline-offset: 2px; }
.article__body a:hover { color: var(--define-cyan, #00CAFD); }

.article__list {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
.article__list li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}
/* A hairline rule rather than a bullet: closer to the technical register the
   rest of the site uses. */
.article__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--define-cyan, #00CAFD);
  opacity: 0.7;
}

.article__pull {
  margin: var(--sp-7) 0;
  padding: var(--sp-5) 0 var(--sp-5) var(--sp-5);
  border-left: 2px solid var(--define-cyan, #00CAFD);
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: #EAF6FF;
}

.takeaways {
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.takeaways h2 { font-size: var(--fs-h4); margin: 0 0 var(--sp-4); }
.takeaways ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.takeaways li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
}
.takeaways li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 7px;
  height: 11px;
  border: solid var(--define-cyan, #00CAFD);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}

.article__services { margin-top: var(--sp-7); }
.article__services h2 { font-size: var(--fs-h4); margin-bottom: var(--sp-4); }
.article__services .pill-row a { text-decoration: none; }

@media (max-width: 620px) {
  .article__head { padding-block: var(--sp-6) var(--sp-5); }
  .article__body > p { font-size: 1rem; }
  .takeaways { padding: var(--sp-5); }
}
