/* ============================================
   RequisitionPro Insights (listing + articles)
   Builds on the tokens in css/styles.css.
   ============================================ */

.insights-page {
  --ins-hero-bg: var(--primary-dark);
  --ins-tint: #f4f7fe;
  --ins-text: var(--gray-800);
  --ins-muted: var(--gray-600);
  --ins-nav-h: 88px;
  --ins-overlap: 168px;
  --ins-radius: 16px;
  background: var(--white);
  color: var(--ins-text);
}

.insights-page [hidden] { display: none !important; }

.ins-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Skip link */
.ins-skip-link {
  position: absolute;
  left: 16px;
  top: 0;
  transform: translateY(-200%);
  z-index: 1100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.ins-skip-link:focus { transform: translateY(12px); }

.insights-page main#main:focus { outline: none; }

/* Navbar: always solid on Insights pages (the hero is a solid brand colour). */
.insights-page .navbar {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
}
.insights-page .nav-link[aria-current="page"] { color: var(--primary-dark); }
.insights-page .nav-link[aria-current="page"]::after { width: 100%; background: var(--primary-dark); }

/* Visible focus everywhere on these pages */
.insights-page a:focus-visible,
.insights-page button:focus-visible,
.insights-page summary:focus-visible,
.insights-page input:focus-visible,
.insights-page .table-wrap:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.ins-hero a:focus-visible,
.ins-cta a:focus-visible,
.insights-page .footer a:focus-visible,
.insights-page .footer button:focus-visible {
  outline-color: #ffffff;
}

/* ---------- Hero (listing and article) ---------- */
.ins-hero {
  background: var(--ins-hero-bg);
  color: var(--white);
  text-align: center;
}
.ins-hero--listing { padding: calc(var(--ins-nav-h) + 72px) 0 88px; }
.ins-hero-title,
.ins-article-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0 auto;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.ins-hero-title { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
.ins-hero-subtitle {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Listing ---------- */
.ins-listing {
  background: var(--ins-tint);
  padding: 40px 0 104px;
}

.ins-controls {
  max-width: 760px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ins-search {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.ins-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}
.ins-search-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 20px 12px 50px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  -webkit-appearance: none;
  appearance: none;
}
.ins-search-input::placeholder { color: var(--gray-500); }
.ins-search-input:focus { border-color: var(--primary-blue); }

.ins-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.ins-chip {
  min-height: 44px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.ins-chip:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
.ins-chip[aria-pressed="true"] {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.ins-status {
  min-height: 1px;
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ins-muted);
}
.ins-status:empty { margin: 0; }

.ins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 32px;
}

.ins-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ins-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-200);
}
.ins-card-media img,
.ins-card-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.ins-card-media img {
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.ins-card:hover .ins-card-media img { transform: scale(1.03); }
.ins-card-body { padding-top: 16px; }
.ins-card-category {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-dark);
}
.ins-card-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.ins-card-title a {
  color: var(--navy-darker);
  text-decoration: none;
}
/* The whole card is clickable through the title link (one tab stop per card). */
.ins-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.ins-card-title a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.ins-card-excerpt {
  margin: 0 0 12px;
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--ins-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ins-card-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ins-muted);
}

.ins-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  background: #fef3c7;
  color: #78350f;
}
.ins-badge--fixture { background: #b91c1c; color: #ffffff; }

.ins-empty-state {
  max-width: 600px;
  margin: 8px auto 0;
  padding: 40px 32px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--ins-radius);
  color: var(--ins-muted);
}
.ins-empty-state p { margin: 0 0 16px; line-height: 1.65; }
.ins-empty-state p:last-child { margin-bottom: 0; }
.ins-empty-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-darker);
}
.ins-empty-state a { color: var(--primary-dark); }

.ins-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 64px;
}
.ins-pager-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}
.ins-pager-current { color: var(--ins-muted); font-size: 0.9375rem; }

/* ---------- Article ---------- */
.ins-hero--article { padding: calc(var(--ins-nav-h) + 32px) 0 calc(var(--ins-overlap) + 56px); }

.ins-breadcrumb { margin: 0 auto 32px; }
.ins-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}
.ins-breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.ins-breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.6);
}
.ins-breadcrumb a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.45); }
.ins-breadcrumb a:hover { text-decoration-color: var(--white); }
.ins-breadcrumb [aria-current="page"] {
  max-width: 36ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ins-hero-category { margin: 0 0 16px; font-size: 0.9375rem; font-weight: 600; }
.ins-hero-category a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  text-decoration: none;
}
.ins-hero-category a:hover { background: rgba(255, 255, 255, 0.24); }

.ins-article-title {
  max-width: 920px;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.12;
}
.ins-article-excerpt { max-width: 680px; margin-top: 20px; }

.ins-cover {
  position: relative;
  max-width: 1008px;
  margin: calc(-1 * var(--ins-overlap)) auto 0;
  padding: 0 24px;
}
.ins-cover img,
.ins-cover picture {
  display: block;
  width: 100%;
  height: auto;
}
.ins-cover img {
  border-radius: var(--ins-radius);
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.35);
  background: var(--gray-200);
}

.ins-reading {
  max-width: calc(720px + 48px);
  margin: 0 auto;
  padding: 32px 24px 0;
}

.ins-byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9375rem;
  color: var(--ins-muted);
}

.ins-toc {
  margin: 0 0 36px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
}
.ins-toc summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-darker);
  cursor: pointer;
  list-style: none;
}
.ins-toc summary::-webkit-details-marker { display: none; }
.ins-toc summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--transition-fast);
}
.ins-toc[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.ins-toc ol {
  margin: 0;
  padding: 0 18px 16px 38px;
  font-size: 0.975rem;
  line-height: 1.5;
}
.ins-toc li { margin: 6px 0; }
.ins-toc .ins-toc-l3 { margin-left: 18px; list-style-type: circle; }
.ins-toc a { color: var(--primary-dark); text-decoration: none; }
.ins-toc a:hover { text-decoration: underline; }

.ins-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ins-text);
  overflow-wrap: break-word;
}
.ins-body > :first-child { margin-top: 0; }
.ins-body p { margin: 0 0 1.25em; }
.ins-body h2,
.ins-body h3,
.ins-body h4 {
  font-family: var(--font-heading);
  color: var(--navy-darker);
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--ins-nav-h) + 16px);
}
.ins-body h2 { font-size: 1.75rem; line-height: 1.3; margin: 2.2em 0 0.6em; }
.ins-body h3 { font-size: 1.3rem; line-height: 1.35; margin: 1.8em 0 0.5em; }
.ins-body h4 { font-size: 1.1rem; margin: 1.5em 0 0.4em; }
.ins-body a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.ins-body a:hover { color: var(--primary-blue); }
.ins-body strong { color: var(--navy-darker); }
.ins-body ul,
.ins-body ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.ins-body li { margin: 0.4em 0; padding-left: 0.2em; }
.ins-body li::marker { color: var(--primary-dark); }
.ins-body blockquote {
  margin: 1.75em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--primary-blue);
  border-radius: 0 12px 12px 0;
  background: var(--ins-tint);
  color: var(--gray-700);
}
.ins-body blockquote p:last-child { margin-bottom: 0; }
.ins-body img { max-width: 100%; height: auto; border-radius: 12px; }
.ins-body picture { display: block; }
.ins-body hr { border: 0; border-top: 1px solid var(--gray-200); margin: 2.5em 0; }
.ins-body code {
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--gray-100);
}
.ins-body pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: var(--gray-100); }
.ins-body pre code { padding: 0; background: none; }

/* Tables scroll inside their wrapper only; the page never scrolls sideways. */
.ins-body .table-wrap {
  margin: 1.75em 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
  /* Edge shadows appear only while more columns are hidden on that side. The header row's grey band is painted
     here too (under the shadows) instead of on <th>, so an opaque header cell never hides the shadow. Header cells do
     not wrap, so the band height is one line: 2 x 12px padding + 1.5 line-height x 0.9375rem + 1px border. */
  --ins-th-height: calc(25px + 1.40625rem);
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0)) right center / 14px 100% no-repeat scroll,
    linear-gradient(var(--gray-50), var(--gray-50)) left top / 100% var(--ins-th-height) no-repeat local,
    #fff;
}
.ins-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.ins-body th,
.ins-body td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--gray-200);
  min-width: 9em;
}
.ins-body th {
  background: transparent;
  font-weight: 700;
  color: var(--navy-darker);
  white-space: nowrap;
}
.ins-body tbody tr:last-child td,
.ins-body tbody tr:last-child th { border-bottom: 0; }
/* Row headers (tables whose first header cell is empty): may wrap, slightly lighter than column headers. */
.ins-body tbody th { white-space: normal; font-weight: 600; }

/* Comparison matrices (criteria x suppliers): the table from 721px, one card per column on phones. Only one of
   the two is displayed at any width, so assistive technology never meets the content twice. */
.ins-matrix-cards { display: none; }
@media (max-width: 720px) {
  .ins-body .ins-matrix-table { display: none; }
  .ins-matrix-cards {
    display: grid;
    gap: 14px;
    margin: 1.75em 0;
  }
  .ins-matrix-card {
    padding: 4px 16px 6px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  }
  .ins-body .ins-matrix-card-title {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--navy-darker);
  }
  .ins-matrix-card dl { margin: 0; font-size: 1rem; line-height: 1.5; }
  .ins-matrix-card dl > div {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 4px 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
  }
  .ins-matrix-card dl > div:last-child { border-bottom: 0; }
  .ins-matrix-card dt { font-weight: 600; color: var(--navy-darker); }
  .ins-matrix-card dd { margin: 0; overflow-wrap: anywhere; }
}

/* Phones: every body row becomes a labelled card ("label: value"), the first cell is the card title, and the header
   row is visually hidden but stays in the accessibility tree. The markup carries explicit table/row/cell roles, so
   screen readers keep table semantics although display changes. Nothing scrolls sideways; js/insights-tables.js
   drops the wrapper's tab stop/region while it does not scroll. */
@media (max-width: 720px) {
  .ins-body .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .ins-body .table-wrap:focus-visible { outline-offset: 6px; }
  .ins-body table,
  .ins-body tbody,
  .ins-body tbody tr,
  .ins-body tbody td,
  .ins-body tbody th {
    display: block;
    width: 100%;
  }
  .ins-body table { font-size: 1rem; line-height: 1.5; }
  .ins-body thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .ins-body tbody tr {
    margin: 0 0 14px;
    padding: 4px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  }
  .ins-body tbody tr:last-child { margin-bottom: 0; }
  .ins-body tbody td,
  .ins-body tbody th {
    min-width: 0;
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    white-space: normal;
  }
  .ins-body tbody td[data-label] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 4px 14px;
  }
  .ins-body tbody td[data-label]::before {
    content: attr(data-label) ":";
    font-weight: 600;
    color: var(--navy-darker);
  }
  /* Card title: the first cell of the row (a row header or the first column). */
  .ins-body tbody tr > :first-child {
    padding: 12px 0;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--navy-darker);
    border-bottom-color: var(--gray-200);
  }
  .ins-body tbody tr > td[data-label]:first-child {
    display: block;
  }
  .ins-body tbody tr > td[data-label]:first-child::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-body, inherit);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ins-muted);
  }
  /* A "#" step-number column reads as "#1" rather than a lone "#" label above "1". */
  .ins-body tbody tr > td[data-label="#"]:first-child::before {
    content: "#";
    display: inline;
    margin: 0;
    font: inherit;
    color: inherit;
  }
  .ins-body tbody tr:last-child td,
  .ins-body tbody tr:last-child th { border-bottom: 1px solid var(--gray-100); }
  .ins-body tbody tr > td:last-child,
  .ins-body tbody tr > th:last-child { border-bottom: 0; }
}

.ins-sources {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.9375rem;
  color: var(--ins-muted);
}
.ins-sources h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy-darker);
}
.ins-sources-note { margin: 0 0 14px; line-height: 1.6; }
.ins-sources ol { margin: 0; padding-left: 1.3em; }
.ins-sources li { margin: 0 0 10px; line-height: 1.5; }
.ins-sources li:last-child { margin-bottom: 0; }
.ins-sources a { color: var(--primary-dark); overflow-wrap: anywhere; }
.ins-source-host { display: block; font-size: 0.875rem; color: var(--ins-muted); overflow-wrap: anywhere; }

.ins-cta {
  margin: 56px 0 0;
  padding: 40px 32px;
  border-radius: var(--ins-radius);
  background: var(--ins-hero-bg);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}
.ins-cta-title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--white);
}
.ins-cta p { max-width: 540px; margin: 0 auto 24px; line-height: 1.65; }
.ins-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ins-cta .btn { min-height: 48px; }
.ins-cta .btn-primary { background: var(--white); border-color: var(--white); color: var(--primary-dark); }
.ins-cta .btn-primary:hover { background: #eef2ff; border-color: #eef2ff; }
.ins-cta .ins-btn-light { color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.ins-cta .ins-btn-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.ins-related {
  margin-top: 88px;
  padding: 72px 0 96px;
  background: var(--ins-tint);
}
.ins-related-title {
  margin: 0 0 40px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--navy-darker);
}
.ins-page-article .ins-article > .ins-reading:last-child { padding-bottom: 96px; }

/* Development build marker (never present in production output): a strip under the fixed navbar. */
.ins-dev-banner {
  margin-top: var(--ins-nav-h);
  padding: 8px 16px;
  background: #b91c1c;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}
.ins-dev-banner ~ main .ins-hero--listing,
.ins-dev-banner ~ main .ins-hero--article { padding-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
  .insights-page { --ins-overlap: 120px; }
}

@media (max-width: 768px) {
  .insights-page { --ins-nav-h: 96px; --ins-overlap: 72px; }
  .ins-container { padding: 0 16px; }
  .ins-hero--listing { padding: calc(var(--ins-nav-h) + 40px) 0 56px; }
  .ins-hero--article { padding-top: calc(var(--ins-nav-h) + 20px); padding-bottom: calc(var(--ins-overlap) + 36px); }
  .ins-dev-banner ~ main .ins-hero--listing,
  .ins-dev-banner ~ main .ins-hero--article { padding-top: 24px; }
  .ins-hero-subtitle { font-size: 1.0625rem; }
  .ins-breadcrumb { margin-bottom: 20px; }
  .ins-breadcrumb [aria-current="page"] { max-width: 22ch; }
  .ins-cover { padding: 0 16px; }
  .ins-cover img { border-radius: 12px; }
  .ins-reading { padding: 24px 16px 0; }
  .ins-body { font-size: 1.0625rem; }
  .ins-body h2 { font-size: 1.5rem; }
  .ins-body h3 { font-size: 1.2rem; }
  .ins-listing { padding: 28px 0 72px; }
  .ins-controls { margin-bottom: 36px; }
  .ins-cta { padding: 32px 20px; }
  .ins-cta-title { font-size: 1.4rem; }
  .ins-related { margin-top: 64px; padding: 56px 0 72px; }
}

@media (max-width: 720px) {
  .ins-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ins-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ins-chips::-webkit-scrollbar { display: none; }
  .ins-chip { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.insights-page) { scroll-behavior: auto; }
  .insights-page *,
  .insights-page *::before,
  .insights-page *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .ins-card:hover .ins-card-media img { transform: none; }
}

/* ---------- Homepage preview (index.html, between the INSIGHTS-PREVIEW markers) ----------
   Only present when at least one article is published; reuses the listing card styles. */
.ins-home-preview {
  --ins-text: var(--gray-800);
  --ins-muted: var(--gray-600);
  padding: var(--section-padding);
  background: var(--white);
}
.ins-home-preview-more {
  margin: 48px 0 0;
  text-align: center;
}
.ins-home-preview a:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
