/* Insights extends the existing Portocelo tokens and components. */
.insights-hero {
  padding: 80px 0 0;
  background: var(--soft);
}
.insights-hero h1 {
  font-size: clamp(70px, 12vw, 160px);
  letter-spacing: -0.07em;
  line-height: 1;
  margin: 24px 0 40px;
}
.insights-hero h1 span {
  color: var(--mint);
}
.insights-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 54px;
  align-items: end;
}
.insights-intro h2 {
  max-width: 600px;
  font-size: clamp(30px, 4vw, 48px);
}
.insights-intro p {
  font-size: 17px;
  max-width: 500px;
}
.editorial-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark);
  color: var(--paper);
  overflow: hidden;
}
.editorial-featured > div {
  padding: 44px;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 22px;
}
.editorial-featured h2 {
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.18;
}
.editorial-featured p,
.editorial-featured span {
  color: #b8ccc5;
}
.editorial-featured .eyebrow,
.editorial-featured .text-link {
  color: var(--accent);
}
.editorial-featured > a {
  display: flex;
  align-items: center;
  background: #11252c;
}
.editorial-featured img {
  width: 100%;
  height: auto;
}
.editorial-search {
  display: block;
  max-width: 440px;
  width: 100%;
  font-size: 13px;
}
.editorial-search span {
  display: block;
  margin-bottom: 8px;
}
.editorial-search input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}
.editorial-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 25px 0;
}
.editorial-filters button {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 16px;
  font-size: 12px;
  background: transparent;
  color: var(--ink);
  min-height: 44px;
  transition: none;
}
.editorial-filters button[aria-pressed='true'] {
  background: var(--dark);
  color: var(--paper);
  border-color: var(--dark);
}
.search-count {
  font: 12px var(--font-mono);
  margin-bottom: 30px;
}
.editorial-empty {
  padding: 60px 20px;
  background: var(--soft);
  text-align: center;
}
.editorial-empty .button {
  margin-top: 20px;
}
.article-card {
  display: block;
  min-width: 0;
  height: 100%;
}
.article-card .editorial-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--line);
  transition: filter 180ms;
}
.article-card:hover .editorial-card-image {
  filter: brightness(1.08);
}
.article-card .article-meta {
  font-size: 11px;
  gap: 10px;
  line-height: 1.6;
  flex-wrap: wrap;
}
.article-card h3 {
  font-size: clamp(21px, 2vw, 25px);
}
.editorial-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 15px;
  color: var(--muted);
  font-size: 11px;
}
.editorial-card-author {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.editorial-pathways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.editorial-pathways h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 25px;
}
.editorial-pathways p {
  margin-bottom: 24px;
}
.editorial-pathways > div:last-child a {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.editorial-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.editorial-bottom h2 {
  font-size: 24px;
  margin-bottom: 15px;
}
.editorial-hero {
  padding: 40px 0 0;
  background: var(--soft);
}
.editorial-hero .breadcrumbs {
  margin-bottom: 45px;
  max-width: 1100px;
  line-height: 1.7;
  flex-wrap: wrap;
  color: var(--muted);
}
.editorial-hero h1 {
  max-width: 1060px;
  font-size: clamp(35px, 5.6vw, 69px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 22px 0;
}
.editorial-hero .lead {
  max-width: 780px;
  font-size: clamp(17px, 2vw, 21px);
}
.editorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 12px;
  color: var(--muted);
  margin: 30px 0 44px;
  line-height: 1.8;
}
.editorial-cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: 610px;
  object-fit: cover;
}
.editorial-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 790px);
  justify-content: space-between;
  gap: 55px;
  padding-top: 70px;
  padding-bottom: 85px;
  align-items: start;
}
.editorial-toc {
  position: sticky;
  top: 110px;
  max-height: calc(100dvh - 140px);
  overflow: auto;
  border-top: 2px solid var(--mint);
  padding-top: 18px;
  overscroll-behavior: contain;
}
.editorial-toc summary {
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 0;
}
.editorial-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
}
.editorial-toc a {
  font-size: 12px;
  line-height: 1.6;
  padding: 9px 0;
  color: var(--muted);
}
.editorial-toc a:hover {
  color: var(--mint);
}
.editorial-toc .toc-sub {
  padding-left: 16px;
}
.editorial-body {
  min-width: 0;
  font-size: 17px;
  line-height: 1.9;
}
.editorial-body p,
.editorial-body ul,
.editorial-body ol {
  margin: 22px 0;
}
.editorial-body > section {
  margin: 55px 0;
}
.editorial-body h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.23;
  letter-spacing: -0.035em;
  scroll-margin-top: 120px;
  margin-bottom: 25px;
}
.editorial-body h3 {
  font-size: 24px;
  line-height: 1.4;
  scroll-margin-top: 120px;
}
.editorial-body ul,
.editorial-body ol {
  padding-left: 24px;
}
.editorial-body li {
  padding-left: 5px;
  margin: 10px 0;
  color: var(--muted);
}
.editorial-body a:not(.button):not(.heading-anchor) {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.editorial-body .heading-anchor {
  color: inherit;
  text-decoration: none;
}
.heading-anchor:hover::after {
  content: ' #';
  color: var(--mint);
}
.editorial-intro > p:first-child {
  font-size: 21px;
  color: var(--ink);
}
.editorial-callout {
  padding: 27px 30px;
  border-left: 3px solid var(--mint);
  background: var(--soft);
  margin: 35px 0;
}
.editorial-callout strong {
  font-size: 17px;
}
.editorial-callout p {
  margin: 10px 0 0;
  font-size: 16px;
}
.tone-warning {
  border-color: #94651d;
  background: #f6f0e5;
}
.editorial-diagram {
  padding: 30px;
  background: var(--dark);
  color: var(--paper);
  margin: 40px 0;
}
.editorial-diagram figcaption strong,
.editorial-chart figcaption strong {
  font-size: 21px;
  line-height: 1.4;
  display: block;
}
.editorial-diagram figcaption p {
  font-size: 14px;
  color: #b9cdc5;
  margin: 12px 0 24px;
}
.editorial-diagram ol {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}
.editorial-diagram li {
  position: relative;
  padding: 19px;
  margin: 0;
  border: 1px solid #3d5555;
  background: #192e34;
  color: var(--paper);
  min-width: 0;
}
.editorial-diagram li strong {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}
.editorial-diagram li p {
  font-size: 13px;
  color: #bdcec8;
  margin: 8px 0 0;
  line-height: 1.6;
}
.diagram-number {
  font: 12px var(--font-mono);
  color: var(--accent);
  display: block;
  margin-bottom: 15px;
}
.editorial-diagram .figure-note {
  color: #bdcec8;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 0;
}
.editorial-table {
  overflow-x: auto;
  margin: 35px 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  max-width: 100%;
}
.editorial-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 550px;
  font-size: 14px;
  line-height: 1.7;
}
.editorial-table caption {
  padding: 17px 20px;
  text-align: left;
  background: var(--soft);
  font-weight: 700;
  color: var(--ink);
}
.editorial-table th,
.editorial-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.editorial-table thead {
  background: var(--soft);
}
.editorial-table tbody th {
  font-weight: 600;
  width: 24%;
}
.editorial-table td {
  color: var(--muted);
}
.editorial-chart {
  padding: 30px;
  border: 1px solid var(--line);
  margin: 40px 0;
}
.editorial-chart p {
  font-size: 14px;
}
.chart-row {
  display: grid;
  grid-template-columns: 45px 1fr 65px;
  gap: 15px;
  align-items: center;
  margin: 25px 0;
  font: 14px var(--font-mono);
}
.chart-track {
  height: 30px;
  background: var(--soft);
}
.chart-track span {
  display: block;
  height: 100%;
  background: var(--mint);
  min-width: 1px;
}
.figure-note {
  font-size: 12px !important;
}
.editorial-code {
  background: var(--dark);
  color: var(--paper);
  margin: 35px 0;
  max-width: 100%;
  min-width: 0;
}
.editorial-code figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-bottom: 1px solid #415454;
  font-size: 12px;
}
.editorial-code button {
  color: var(--accent);
  border: 1px solid #5b716c;
  padding: 10px;
  background: transparent;
}
.editorial-code pre {
  overflow: auto;
  padding: 25px;
  font: 13px/1.8 var(--font-mono);
}
.code-string {
  color: #b9e9d8;
}
.code-value {
  color: #b8cbea;
}
.editorial-service {
  padding: 36px;
  background: var(--soft);
}
.editorial-service .eyebrow {
  font-size: 11px;
  margin-top: 0;
}
.editorial-service .button {
  white-space: normal;
  line-height: 1.5;
}
.secondary-services {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  margin-top: 25px;
}
.editorial-sources {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.editorial-sources small {
  font-size: 11px;
}
.author-box {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 45px;
  font-size: 14px;
}
.author-box .eyebrow {
  margin: 0 0 14px;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 35px;
  font-size: 13px;
}
.share-actions .button {
  font-size: 12px;
  min-height: 44px;
}
.share-actions [role='status'] {
  flex-basis: 100%;
  font-size: 12px;
}
.editorial-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--read, 0%);
  height: 3px;
  background: var(--accent);
  z-index: 120;
  pointer-events: none;
}
.glossary {
  max-width: 850px;
}
.glossary nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.glossary dt {
  font-size: 25px;
  font-weight: 650;
  scroll-margin-top: 110px;
  margin-top: 40px;
}
.glossary dd {
  margin: 14px 0 30px;
  color: var(--muted);
  line-height: 1.8;
}
@media (max-width: 1000px) {
  .editorial-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 30px;
  }
  .editorial-featured > div {
    padding: 30px;
  }
  .editorial-pathways {
    gap: 35px;
  }
}
@media (max-width: 760px) {
  .insights-hero {
    padding-top: 45px;
  }
  .insights-intro,
  .editorial-featured,
  .editorial-pathways {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .editorial-featured {
    gap: 0;
  }
  .editorial-featured > a {
    order: -1;
  }
  .insights-intro {
    padding-bottom: 35px;
  }
  .editorial-featured > div {
    padding: 28px;
  }
  .editorial-layout {
    display: block;
    padding-top: 28px;
  }
  .editorial-toc {
    position: static;
    max-height: none;
    margin-bottom: 40px;
  }
  .editorial-toc nav {
    max-height: 230px;
    overflow: auto;
  }
  .editorial-body {
    font-size: 16px;
  }
  .editorial-hero .breadcrumbs {
    font-size: 10px;
    margin-bottom: 28px;
  }
  .editorial-hero h1 {
    font-size: 38px;
  }
  .editorial-meta {
    gap: 10px 17px;
    margin-bottom: 28px;
  }
  .editorial-cover {
    max-height: none;
  }
  .editorial-diagram,
  .editorial-chart,
  .editorial-callout,
  .editorial-service {
    padding: 22px;
  }
  .editorial-diagram ol {
    grid-template-columns: 1fr;
  }
  .editorial-diagram li {
    padding: 17px;
  }
  .editorial-diagram li:not(:last-child)::after {
    content: '↓';
    position: absolute;
    bottom: -18px;
    left: 50%;
    color: var(--accent);
    z-index: 1;
  }
  .editorial-search {
    max-width: none;
  }
  .chart-row {
    gap: 10px;
    grid-template-columns: 40px 1fr 57px;
    font-size: 12px;
  }
  .share-actions {
    gap: 9px;
  }
  .editorial-body > section {
    margin: 42px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .article-card .editorial-card-image {
    transition: none;
  }
}
