/* =========================================================
   Insights overview (ix) – all rules are scoped to .ix
   Head with one statement, the first article as a navy lead panel,
   the others as cards with page numbers, then the complete index
   with search, filter and sort.
   Every value reads the site's existing variable first; the value
   after the comma is only a fallback.
   ========================================================= */
.ix {
  --ix-bg: var(--bg, #FBF8F2);
  --ix-bg-deep: var(--bg-deep, #F6F1E7);
  --ix-text: var(--text, #1D252F);
  --ix-muted: var(--text-muted, #3F4852);
  --ix-lede: #2A364A;                              /* same value as .insights-sub */
  --ix-rule: var(--border, #E4DFD2);
  --ix-rule-strong: var(--border-strong, #DAD5C8);
  --ix-rule-hover: var(--border-accent, rgba(201,151,43,0.55));
  --ix-accent: var(--accent, #112D52);
  --ix-navy: var(--panel-dark, #0B1F3A);
  --ix-on-navy: #FBF8F2;
  --ix-on-navy-muted: #DCE4DF;
  --ix-gold: var(--gold, #C9972B);
  --ix-kicker: var(--gold-light, #E3C16A);
  --ix-action: var(--action, #0E6E75);
  --ix-action-hover: var(--action-hover, #0B5860);
  --ix-action-ink: var(--action-ink, #FBF8F2);
  --ix-display: var(--display, 'Playfair Display', Georgia, 'Times New Roman', serif);
  --ix-sans: var(--sans, 'Source Sans 3', 'Segoe UI', Arial, sans-serif);
  --ix-nav-h: 70px;                                /* height of the fixed site menu */

  background: var(--ix-bg);
  color: var(--ix-text);
  font-family: var(--ix-sans);
  font-size: 17px;
  line-height: 1.55;
}
.ix *, .ix *::before, .ix *::after { box-sizing: border-box; }
.ix h1, .ix h2, .ix p, .ix ol, .ix ul { margin: 0; padding: 0; }
.ix h1, .ix h2 { color: inherit; }
.ix ol, .ix ul { list-style: none; }
.ix a { color: var(--ix-accent); text-decoration: none; }
.ix a:focus-visible, .ix button:focus-visible, .ix select:focus-visible, .ix input:focus-visible { outline: 2px solid var(--ix-action); outline-offset: 3px; }
.ix [hidden] { display: none !important; }
.ix-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ix-main { max-width: 1200px; margin: 0 auto; padding: calc(var(--ix-nav-h) + 36px) 32px 72px; display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 480px) { .ix-main { padding: calc(var(--ix-nav-h) + 28px) 20px 56px; gap: 32px; } }

.ix-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.5; color: var(--ix-accent); }
.ix-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ix-rule-strong); padding: 1px 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.5; color: var(--ix-muted); }
.ix-badge svg { width: 13px; height: 13px; flex: none; }

/* ---------- Breadcrumb ---------- */
.ix-crumb { display: flex; gap: 8px; font-size: 15px; color: var(--ix-muted); }
.ix .ix-crumb a { color: var(--ix-muted); }
.ix .ix-crumb a:hover { color: var(--ix-action); text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- Head ---------- */
.ix-head { display: flex; flex-direction: column; gap: 28px; border-bottom: 2px solid var(--ix-accent); padding-bottom: 32px; }
.ix-head__cols { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: flex-end; }
.ix-head__title { flex: 1.25 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ix-kicker { display: flex; gap: 12px; align-items: center; }
.ix-kicker::before { content: ""; width: 8px; height: 8px; background: var(--ix-gold); transform: rotate(45deg); flex: none; }
.ix-h1 { font-family: var(--ix-display); font-weight: 500; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; }
.ix-head__intro { flex: 1 1 360px; min-width: 0; max-width: 500px; display: flex; flex-direction: column; gap: 12px; }
.ix-lede { font-size: 18px; color: var(--ix-lede); }
.ix-statement { font-family: var(--ix-display); font-style: italic; font-size: 27px; line-height: 1.25; color: var(--ix-accent); }
.ix-head__meta { color: var(--ix-muted); }

/* ---------- Lead article ---------- */
.ix .ix-lead {
  display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-end;
  background: var(--ix-navy); color: var(--ix-on-navy); text-decoration: none;
  padding: clamp(28px, 4.5vw, 56px);
}
.ix-lead__main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ix-lead__top { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.ix-lead .ix-label { color: var(--ix-kicker); }
.ix-lead__title { font-family: var(--ix-display); font-weight: 500; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.16; letter-spacing: 0; text-wrap: balance; }
.ix-lead__teaser { font-size: 17.5px; color: var(--ix-on-navy-muted); max-width: 640px; }
.ix-lead__side { flex: 1 1 220px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ix-lead__cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  background: var(--ix-action); color: var(--ix-action-ink); font-weight: 600; font-size: 16px; line-height: 1.2; transition: background .2s;
}
.ix-lead__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s; flex: none; }
.ix-lead:hover .ix-lead__cta { background: var(--ix-action-hover); }
.ix-lead:hover .ix-lead__cta svg { transform: translateX(3px); }
.ix-lead__read { font-size: 15.5px; color: var(--ix-on-navy-muted); }
.ix-lead .ix-badge { border-color: rgba(251, 248, 242, 0.4); color: var(--ix-on-navy-muted); }
.ix a.ix-lead:focus-visible { outline-offset: 4px; }

/* ---------- Cards ---------- */
.ix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 24px; scroll-margin-top: calc(var(--ix-nav-h) + 24px); }
.ix-grid > li { display: flex; min-width: 0; }
.ix .ix-card {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px;
  border: 1px solid var(--ix-rule); background: var(--ix-bg);
  text-decoration: none; color: var(--ix-text); transition: border-color .2s, background .2s;
}
.ix .ix-card:hover { border-color: var(--ix-rule-hover); background: var(--ix-bg-deep); }
.ix-card__top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ix-card__title { font-family: var(--ix-display); font-weight: 500; font-size: 22px; line-height: 1.26; letter-spacing: 0; overflow-wrap: break-word; }
.ix-card__teaser { flex: 1; font-size: 16px; color: var(--ix-muted); }
.ix-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--ix-rule); padding-top: 12px; font-size: 15px; color: var(--ix-muted); }
.ix-card__foot svg { width: 18px; height: 18px; fill: none; stroke: var(--ix-accent); stroke-width: 1.5; transition: transform .2s; flex: none; }
.ix-card:hover .ix-card__foot svg { transform: translateX(3px); }

/* ---------- Page numbers ---------- */
.ix-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.ix-pager button {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: transparent; border: 1px solid var(--ix-rule-strong); border-radius: 0; color: var(--ix-text);
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.ix-pager button:hover:not([aria-current]):not(:disabled) { border-color: var(--ix-action); color: var(--ix-action); }
.ix-pager button[aria-current="page"] { background: var(--ix-action); border-color: var(--ix-action); color: var(--ix-action-ink); cursor: default; }
.ix-pager button:disabled { opacity: 0.45; cursor: default; }
.ix-pager svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- Browse all articles ---------- */
.ix-browse { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--ix-rule); padding-top: 40px; }
.ix-browse__head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; }
.ix-browse__title { font-family: var(--ix-display); font-weight: 500; font-size: 30px; line-height: 1.15; letter-spacing: 0; }
.ix-controls { flex: 1 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 700px) { .ix-controls { justify-content: flex-start; } }
.ix-controls select, .ix-controls input {
  font: inherit; font-size: 16px; min-height: 44px; padding: 10px 14px; max-width: 100%;
  border: 1px solid var(--ix-rule-strong); border-radius: 0; background: var(--ix-bg); color: var(--ix-text);
}
.ix-controls select { cursor: pointer; }
.ix-controls input { min-width: min(240px, 100%); }
.ix-controls input::placeholder { color: var(--ix-muted); opacity: 1; }
.ix-controls select:hover, .ix-controls input:hover { border-color: var(--ix-rule-hover); }
.ix-index { border-bottom: 1px solid var(--ix-rule); }
.ix-index__group { padding: 20px 0 8px; border-top: 1px solid var(--ix-rule); }
.ix .ix-index a {
  display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--ix-rule); text-decoration: none; color: var(--ix-text); transition: background .2s;
}
.ix .ix-index a:hover { background: var(--ix-bg-deep); }
.ix-index__title { flex: 999 1 420px; min-width: 0; font-size: 17px; font-weight: 500; }
.ix-index__meta { display: flex; gap: 20px; align-items: baseline; }
.ix-index__meta .ix-label { font-size: 12px; letter-spacing: 0.18em; }
.ix-index__num { font-size: 15px; color: var(--ix-muted); min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ix-index__empty { padding: 14px 0; border-top: 1px solid var(--ix-rule); color: var(--ix-muted); }

@media (prefers-reduced-motion: reduce) { .ix * { transition: none !important; } }
@media print { .ix-main { padding-top: 0; } .ix-pager, .ix-controls { display: none !important; } .ix [hidden] { display: revert !important; } }
