/* Mobile interior cards: allow headings and source links to use full rows. */
@media (max-width:650px) {
  .xj-inner .card-heading {
    flex-direction:column;
    align-items:flex-start;
  }
  .xj-inner .card-heading > * { min-width:0; max-width:100%; }
  .xj-inner .card-heading h2 {
    display:block;
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.5;
  }
  .xj-inner .card-heading > a {
    margin-left:0;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .xj-inner .portal-note { display:block; overflow-wrap:anywhere; }
  .xj-inner .portal-note > a { display:inline; }
  .xj-inner .portal-table-scroll { min-width:0; max-width:100%; overscroll-behavior-inline:contain; }
}
@media (max-width:650px) {
  .xj-inner .xj-exchange-country-grid { grid-template-columns:1fr; }
  .xj-inner .xj-exchange-country span,
  .xj-inner .xj-exchange-country small { flex-shrink:0; white-space:nowrap; }
}

/* Mobile heading button contrast */
@media(max-width:650px){html:not([data-theme=dark]) .xj-inner .card-heading > a.portal-button{color:#321b09}}
