/* The Evidence Studio — mobile single-news metadata row.
   Dates remain on ONE line, side by side; text-only SHARE sits at the right. */
@media (max-width: 600px) {
  .tee-single-meta-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: center !important;
    justify-content: stretch !important;
    column-gap: 8px !important;
    row-gap: 0 !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  /* The two date groups and separator all stay horizontally aligned. */
  .tee-single-meta-row > .tee-date-line {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 1 1 auto !important;
    gap: 3px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    font-size: clamp(8px, 2.45vw, 10px) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
    overflow: visible !important;
  }

  .tee-single-meta-row > .tee-date-line > span {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    margin: 0 !important;
  }

  .tee-single-meta-row > .tee-date-line > .tee-meta-separator {
    flex: 0 0 auto !important;
    margin: 0 1px !important;
  }

  .tee-single-meta-row > .tee-share-dropdown {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    justify-self: end !important;
    align-self: center !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1001 !important;
    white-space: nowrap !important;
  }

  /* Show only the word SHARE in the row. Social icons remain in the opened menu. */
  .tee-single-meta-row .tee-share-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 2px 0 2px 3px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--tee-navy, #092b40) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: .035em !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }

  .tee-single-meta-row .tee-share-trigger-caret {
    display: none !important;
  }

  .tee-single-meta-row .tee-share-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    left: auto !important;
    width: min(250px, calc(100vw - 24px)) !important;
    min-width: min(230px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    z-index: 1002 !important;
    box-sizing: border-box !important;
  }

  .tee-single-header,
  .tee-single-meta-row,
  .tee-date-line {
    overflow: visible !important;
  }
}

/* Very narrow phones: keep the row intact by reducing date typography slightly. */
@media (max-width: 360px) {
  .tee-single-meta-row {
    column-gap: 5px !important;
  }

  .tee-single-meta-row > .tee-date-line {
    font-size: 8px !important;
    gap: 2px !important;
    letter-spacing: -0.025em !important;
  }

  .tee-single-meta-row .tee-share-trigger {
    font-size: 9px !important;
  }
}

/* Touchscreens: open the share menu by tapping/focusing, not by hover. */
@media (max-width: 600px) and (hover: none) and (pointer: coarse) {
  .tee-share-dropdown:hover:not(.is-open) .tee-share-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(5px) !important;
  }

  .tee-share-dropdown.is-open .tee-share-menu,
  .tee-share-dropdown:focus-within .tee-share-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}
