/* v10 responsive fixes for embedded intelligence assets, industry pages and footer CTA. */

/* Keep the commercial CTA legible in both themes. The previous generic button
   rules produced a near-white label on a near-white button in dark mode. */
.footer-v9-contact .btn.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.footer-v9-contact .btn.btn-primary:hover,
.footer-v9-contact .btn.btn-primary:focus-visible {
  background: var(--ink-2);
  color: var(--paper);
  border-color: var(--ink-2);
}
.footer-v9-contact .btn.btn-primary .arrow { color: currentColor; }

/* Embedded MINERVA/POLIS frame headers must reserve real space for the action.
   Long source URLs are allowed to wrap, but the open-full-page action is not. */
.embed-frame .frame-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
}
.embed-frame .frame-head > .label {
  flex: 1 1 30rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.embed-frame .frame-head > .cluster {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 0;
}
.embed-frame .frame-head a.small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  white-space: nowrap;
}

/* Industry pages share renderIndustry(), so one rule fixes Oil & Gas, Energy,
   Retail, Textile & Apparel, Tourism and Public Sector in EN and PT-BR. */
.industry-page-v10 .grid-sidebar,
.industry-page-v10 .grid-sidebar > *,
.industry-page-v10 .stack,
.industry-page-v10 .timeline-list,
.industry-page-v10 .timeline-list li {
  min-width: 0;
}

@media (max-width: 900px) {
  .industry-page-v10 .grid-sidebar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .industry-page-v10 .timeline-list {
    display: grid;
    gap: 0;
  }
  .industry-page-v10 .timeline-list li {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px 14px;
    align-items: baseline;
    padding: 18px 0;
  }
  .industry-page-v10 .timeline-list li > .mono {
    grid-column: 1;
    white-space: nowrap;
  }
  .industry-page-v10 .timeline-list li > .label {
    grid-column: 2;
    justify-self: start;
    min-width: 0;
  }
  .industry-page-v10 .timeline-list li > span:last-child {
    grid-column: 1 / -1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.55;
  }
}

@media (max-width: 640px) {
  .embed-frame .frame-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
  }
  .embed-frame .frame-head > .status {
    grid-column: 1;
  }
  .embed-frame .frame-head > .label {
    grid-column: 1 / -1;
    width: 100%;
    font-size: 11px;
    line-height: 1.5;
  }
  .embed-frame .frame-head > .cluster {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .embed-frame .frame-head > a.small,
  .embed-frame .frame-head > .cluster a.small {
    min-height: 44px;
    padding: 6px 0;
    font-size: .95rem;
    white-space: normal;
  }

  .industry-page-v10 .timeline-list li {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 5px 12px;
  }
  .industry-page-v10 .timeline-list li > span:last-child {
    font-size: 1rem;
  }
}
