/* Insights hub and topic pages (English). Loaded after style.css and
   blog.css, only by /insights/ and /insights/topic/<slug>/.
   Tokens come from style.css :root. */

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

/* One hover behaviour, identical to the rest of the site */
.ih-card, .ih-path, .ih-rel {
  transition: transform .25s, border-color .25s, box-shadow .25s, opacity .7s ease;
}
.ih-card:hover, .ih-path:hover, .ih-rel:hover {
  transform: translateY(-6px); border-color: rgba(16, 208, 208, .45); box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}

/* Shared bits */
.ih-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); position: relative; }
.ih-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; -webkit-user-drag: none; }
.ih-card:hover .ih-thumb img { transform: scale(1.04); }
.ih-tag {
  display: inline-block; font-family: var(--font-head); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--teal); margin-bottom: 10px;
}
.ih-tag:hover { color: var(--text); }
.ih-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted);
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.ih-meta span::before { content: '◷ '; color: var(--teal); }
.ih-go { color: var(--teal); font-weight: 600; font-size: .9rem; margin-top: 14px; display: inline-block; }
.ih-go span { display: inline-block; transition: transform .25s; }
.ih-go:hover span { transform: translateX(4px); }
.ih-card h3 a:hover, .ih-path h3 a:hover { color: var(--teal); }

/* Hero: centred and compact, so the guides start right below it */
.ih-hero-c { padding: 84px 0 34px; }
.ih-hero-c .crumbs { text-align: center; margin-bottom: 26px; }
.ih-hero-c h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 820px; margin: 0 auto 18px; }
.ih-hero-c .lead { max-width: 660px; margin: 0 auto; }
.ih-guides { padding-top: 22px; padding-bottom: 80px; }

/* Topic filter: one quiet rail with the active topic highlighted */
.ih-filter {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0 auto 14px; width: fit-content; max-width: 100%;
  padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 24, 38, .6);
}
.ih-chip {
  font: inherit; font-size: .84rem; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.ih-chip:hover { color: var(--text); border-color: rgba(16, 208, 208, .45); }
.ih-chip.is-on { color: #06131a; background: var(--grad); border-color: transparent; font-weight: 600; }
.ih-chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ih-count { text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 32px; }

/* Guide cards */
.ih-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.ih-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ih-card[hidden] { display: none; }
.ih-card .ih-body { padding: 22px 24px 20px; display: flex; flex-direction: column; flex: 1; }
.ih-card h3, .ih-card h2 { font-size: 1.1rem; line-height: 1.32; margin-bottom: 10px; }
.ih-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 4px; }
.ih-empty { text-align: center; color: var(--muted); margin-top: 20px; }
.ih-topic-count { color: var(--muted); font-size: .88rem; margin-top: 12px; }

/* Reading paths */
.ih-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ih-path {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid rgba(16, 208, 208, .6);
  border-radius: var(--radius); padding: 24px 26px 24px; display: flex; flex-direction: column;
}
.ih-path-who { font-family: var(--font-head); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin: 0 0 8px; }
.ih-path h3 { font-size: 1.15rem; margin-bottom: 4px; }
.ih-path-time { color: var(--muted); font-size: .8rem; margin-bottom: 14px; }
.ih-path ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.ih-path li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .87rem; line-height: 1.45; }
.ih-path li::before { content: counter(s); font-family: var(--font-head); font-weight: 700; color: var(--teal); }
.ih-path li a { color: var(--text); }
.ih-path li a:hover { color: var(--teal); }
.ih-path li span { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.ih-path .ih-go { margin-top: auto; padding-top: 16px; }

/* Topic pages: related services */
.ih-rels { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.ih-rel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; min-width: 220px; }
.ih-rel b { display: block; font-family: var(--font-head); margin-bottom: 4px; }
.ih-rel span { color: var(--teal); font-size: .86rem; font-weight: 600; }
.key-facts a { color: var(--teal); }

/* Responsive */
@media (max-width: 1024px) {
  .ih-grid, .ih-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ih-hero-c { padding: 56px 0 20px; }
  .ih-filter { border-radius: 18px; }
  .ih-grid, .ih-paths { grid-template-columns: 1fr; }
  .ih-path { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ih-card, .ih-path, .ih-rel, .ih-thumb img, .ih-go span { transition: none; }
  .ih-card:hover, .ih-path:hover, .ih-rel:hover, .ih-card:hover .ih-thumb img { transform: none; }
}

/* Phones: keep small uppercase labels readable (min ~11.5px) */
@media (max-width: 720px) {
  .ih-tag, .ih-path-who { font-size: .72rem; }
}
