/* Insights: overview (/insights/) and articles (/insights/<slug>/), October 2026.
   Built only from the existing brand tokens, type scale and card language. */
@layer insights {
  .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

  /* The section stays marked in the navigation while an article is open. */
  .desktop-nav a[aria-current='true']::after { transform: scaleX(1); }
  .mobile-nav a[aria-current='true'] { color: var(--copper); font-weight: 650; }

  /* Overview */
  .insights-hub { padding-block: 28px clamp(80px, 8vw, 120px); }
  .insights-hub .breadcrumbs { margin-bottom: clamp(36px, 4vw, 52px); }
  .insights-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 390px); gap: 64px; align-items: end; margin-bottom: clamp(40px, 4.4vw, 60px); }
  .insights-heading .section-label { margin-bottom: 20px; }
  .insights-heading h1 { margin: 0; font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1.08; }
  .insights-heading h1 em { color: var(--muted); }
  .insights-intro { padding-bottom: 6px; color: var(--muted); font-size: 1.0625rem; line-height: 1.8; }

  .insight-card {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    background: #fff; border: 1px solid var(--line); border-radius: var(--finish-radius); overflow: hidden;
    box-shadow: 0 2px 4px #10251e04, 0 12px 28px #10251e06;
    transition: transform 400ms var(--finish-ease), box-shadow 350ms ease, border-color 250ms ease;
  }
  .insight-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  /* Same paper tone as the graphic, so the image area reads as one surface. */
  .insight-card-media { display: grid; place-items: center; background: #f6f4ef; border-bottom: 1px solid var(--line); }
  .insight-feature .insight-card-media { border-bottom: 0; border-right: 1px solid var(--line); }
  .insight-card-media img { width: 100%; height: auto; }
  .insight-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(24px, 3vw, 44px); }
  .insight-card-kicker { margin-bottom: 16px; color: var(--copper); font-size: .75rem; letter-spacing: .08em; }
  .insight-card h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.22; letter-spacing: -.035em; }
  .insight-card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
  .insight-card-link:focus-visible { outline: none; }
  .insight-card:has(.insight-card-link:focus-visible) { outline: 3px solid var(--copper); outline-offset: 5px; }
  .insight-card-teaser { margin-top: 16px; color: var(--muted); line-height: 1.8; text-wrap: pretty; }
  .insight-card-meta { display: flex; align-items: center; gap: 12px; margin: 22px 0 28px; }
  .insight-card-meta .insight-avatar { width: 40px; height: 40px; }
  .insight-card-meta > span { display: grid; line-height: 1.45; }
  .insight-card-meta strong { color: var(--ink); font-size: .875rem; font-weight: 600; }
  .insight-card-meta strong + span { color: var(--muted); font-size: .8125rem; }
  .insight-card-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; align-self: stretch;
    margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line);
    color: var(--copper); font-size: .875rem; font-weight: 600;
  }
  .insight-card-cta > span {
    display: grid; place-items: center; width: 34px; height: 34px; flex: none;
    border: 1px solid var(--line); border-radius: 50%; color: var(--forest); font-size: 1.1rem;
    transition: background 250ms ease, border-color 250ms ease, transform 350ms var(--finish-ease);
  }
  .insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }

  /* Article: one reading column; the graphic may run a little wider. */
  .insight-article {
    display: grid;
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [wide-start] minmax(0, 7rem)
      [content-start] min(46rem, 100% - 2 * var(--gutter))
      [content-end] minmax(0, 7rem)
      [wide-end] minmax(var(--gutter), 1fr)
      [full-end];
    padding-block: 28px clamp(80px, 8vw, 120px);
  }
  .insight-article > * { grid-column: content; min-width: 0; }
  .insight-article > .insight-figure { grid-column: wide; }

  .insight-header .breadcrumbs { margin-bottom: clamp(36px, 4vw, 52px); }
  .insight-header .section-label { margin-bottom: 20px; }
  .insight-header h1 { margin: 0; font-size: clamp(2.15rem, 3.5vw, 3rem); line-height: 1.12; }
  .insight-lead { margin-top: 26px; color: var(--ink); font-size: clamp(1.125rem, 1.55vw, 1.3rem); line-height: 1.65; text-wrap: pretty; }
  .insight-byline {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
    margin-top: 34px; padding-block: 18px; border-block: 1px solid var(--line);
  }
  .insight-author { display: flex; align-items: center; gap: 14px; min-width: 0; }
  .insight-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--soft); }
  .insight-author p { display: grid; line-height: 1.45; }
  .insight-author strong { color: var(--ink); font-size: .9375rem; font-weight: 600; }
  .insight-author span { color: var(--muted); font-size: .8125rem; }
  .insight-dateline { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: .875rem; }

  .insight-figure { margin: clamp(36px, 4.5vw, 60px) 0 0; }
  .insight-figure img { width: 100%; height: auto; background: #f6f4ef; border: 1px solid var(--line); border-radius: var(--finish-radius); }
  .insight-figure figcaption { margin-top: 14px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }

  .insight-body { margin-top: clamp(40px, 4.5vw, 60px); color: var(--ink); font-size: 1.0625rem; line-height: 1.85; }
  .insight-body p { text-wrap: pretty; }
  .insight-body p + p { margin-top: 1.15em; }
  .insight-body h2 { margin: clamp(52px, 5.5vw, 72px) 0 20px; font-size: clamp(1.6rem, 2.4vw, 2.05rem); line-height: 1.2; letter-spacing: -.035em; }
  .insight-body .insight-highlight { margin-top: 30px; padding: 2px 0 2px 22px; border-left: 2px solid #cda180; font-size: 1.1875rem; font-weight: 500; line-height: 1.7; }
  .insight-steps { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
  .insight-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 22px; padding-block: 30px; border-bottom: 1px solid var(--line); }
  .insight-step-number {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid #cbd9cf; border-radius: 50%; color: var(--copper); font-size: .875rem; font-variant-numeric: tabular-nums;
  }
  .insight-step h3 { margin: 6px 0 12px; font-size: 1.25rem; line-height: 1.4; letter-spacing: -.02em; }

  .insight-footer { display: grid; gap: 32px; margin-top: clamp(56px, 6vw, 80px); }
  .insight-sources { padding-top: 26px; border-top: 1px solid var(--line); }
  .insight-sources h2 { margin: 0 0 14px; color: var(--copper); font-size: .8125rem; font-weight: 600; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; }
  .insight-sources ol { display: grid; gap: 10px; margin: 0; padding-left: 1.25em; color: var(--muted); font-size: .875rem; line-height: 1.7; }
  .insight-sources li::marker { color: var(--copper); }
  .insight-sources a { color: var(--ink); text-decoration: underline; text-decoration-color: #a5b6ab; text-underline-offset: 3px; overflow-wrap: anywhere; transition: color 200ms ease, text-decoration-color 200ms ease; }
  .insight-sources a:hover { color: var(--copper); text-decoration-color: currentColor; }
  .insight-author-card {
    display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 24px; align-items: start;
    padding: 28px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--finish-radius);
  }
  .insight-author-card img { grid-row: 1 / span 3; width: 88px; height: 98px; object-fit: cover; object-position: center 28%; border-radius: 6px; }
  .insight-author-card > :not(img) { grid-column: 2; }
  .insight-author-card h2 { margin: 0 0 8px; color: var(--copper); font-size: .75rem; line-height: 1.6; letter-spacing: .08em; }
  .insight-author-name { color: var(--ink); font-size: 1.35rem; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
  .insight-author-role { margin-top: 2px; color: var(--muted); font-size: .875rem; }
  .insight-author-bio { margin-top: 12px; color: var(--muted); font-size: .9375rem; line-height: 1.75; }
  .insight-author-card .text-link { justify-self: start; margin-top: 16px; }

  @media (hover: hover) and (pointer: fine) {
    .insight-card:hover { transform: translateY(-4px); border-color: #97aa9c; box-shadow: var(--finish-shadow-raised); }
    .insight-card:hover .insight-card-cta > span { background: var(--orange); border-color: var(--orange); transform: translate(2px, -2px); }
  }

  @media (max-width: 980px) {
    .insights-heading { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .insights-intro { max-width: 560px; padding-bottom: 0; }
  }

  @media (max-width: 1100px) {
    .insight-feature { grid-template-columns: minmax(0, 1fr); }
    .insight-feature .insight-card-media { border-right: 0; border-bottom: 1px solid var(--line); }
  }

  @media (max-width: 860px) {
    .insight-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
  }

  @media (max-width: 600px) {
    .insights-hub, .insight-article { padding-top: 20px; }
    .insights-heading h1 { font-size: min(2.6rem, 9.2vw); }
    .insight-card h2 { font-size: 1.5rem; }
    .insight-header h1 { font-size: clamp(1.9rem, 8.4vw, 2.15rem); line-height: 1.14; }
    .insight-lead { margin-top: 20px; }
    .insight-byline { margin-top: 28px; }
    .insight-figure img { border-radius: 10px; }
    .insight-body { font-size: 1rem; line-height: 1.8; }
    .insight-lead, .insight-body p, .insight-card-teaser, .insight-body h2, .insight-step h3 { -webkit-hyphens: auto; hyphens: auto; }
    .insight-body h2 { font-size: 1.5rem; margin-top: 48px; }
    .insight-body .insight-highlight { padding-left: 16px; font-size: 1.0625rem; }
    .insight-step { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-block: 26px; }
    .insight-step-number { width: 32px; height: 32px; font-size: .75rem; }
    .insight-step h3 { margin-top: 2px; font-size: 1.125rem; }
    .insight-author-card { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
    .insight-author-card img { grid-row: 1; width: 64px; height: 76px; }
    .insight-author-card > .insight-author-bio, .insight-author-card > .text-link { grid-column: 1 / -1; }
    .insight-author-bio { margin-top: 16px; }
    .insight-author-name { font-size: 1.2rem; }
  }
}
