/* hs-results-mobile-20260914: HS Code result cards on phones (760px and under).
   styles.css still positions each card label absolutely, from an older two-column
   card, and the tool's own card rules stack label and value without undoing that, so
   every label was printed on top of its value. Here each field is a label line above
   its value; long descriptions wrap; the share buttons are 44px touch targets. */
@media (max-width: 760px) {
  .public-site .section--hs-lookup:has(.hs-table-form) .hs-results-table td {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .public-site .section--hs-lookup:has(.hs-table-form) .hs-results-table td::before {
    position: static;
    inset: auto;
    width: auto;
    margin-bottom: 2px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  /* The code itself is set in the monospace face; its label is not. */
  .public-site .section--hs-lookup:has(.hs-table-form) .hs-results-table td.hs-results-table__code::before {
    font-family: var(--font-latin);
    letter-spacing: 0.02em;
  }
  html[dir="rtl"] .public-site .section--hs-lookup:has(.hs-table-form) .hs-results-table td.hs-results-table__code::before {
    font-family: var(--font-arabic);
    letter-spacing: 0;
  }
  /* The English description reads left to right on the Arabic pages too. */
  html[dir="rtl"] .public-site .section--hs-lookup:has(.hs-table-form) .hs-results-table td:nth-child(4) {
    direction: ltr;
    text-align: left;
  }
  .public-site .section--hs-lookup:has(.hs-table-form) .hs-results-table__share {
    gap: 10px;
  }
  .public-site .section--hs-lookup:has(.hs-table-form) .hs-share-action {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .public-site .section--hs-lookup:has(.hs-table-form) .hs-share-action img {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 359px) {
  .public-site .section--hs-lookup:has(.hs-table-form) .hs-results-table tr {
    grid-template-columns: minmax(0, 1fr);
  }
}
