/*
 * media.css -- shared styles for media.js (download tables, Apple Silicon
 * notes, manifest gallery). Uses each site's own tokens with fallbacks, so
 * the host site.css keeps its look. Copyright (c) 2026 REVYTECH, Inc.
 */
.mx-card { min-width: 0; max-width: 100%; }
.mx-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .9rem; }
.mx-card .mx-arch-title { margin: 0; }
.mx-meta { margin: .35rem 0 .75rem; }
.mx-badge { display: inline-block; padding: .2rem .55rem; border: 1px solid currentColor; border-radius: 999px; font-size: .8rem; line-height: 1.4; text-decoration: none; }
.mx-tag { display: inline-block; margin-left: .15rem; padding: 0 .4rem; border: 1px solid var(--border, #475569); border-radius: 4px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; vertical-align: middle; color: var(--muted, #94a3b8); font-style: normal; }
.mx-scroll { margin-bottom: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mx-table { width: 100%; border-collapse: collapse; }
.mx-table th, .mx-table td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--border, #475569); vertical-align: top; overflow-wrap: anywhere; }
.mx-table thead th { color: var(--muted, #94a3b8); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.mx-table tbody th[scope="row"] { white-space: nowrap; }
.mx-table tr.is-pending th[scope="row"], .mx-table tr.is-pending td { color: var(--muted, #94a3b8); font-style: italic; }
.mx-checksum { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.mx-hash { display: block; margin: 0; padding: .45rem .55rem; max-width: 34rem; font-size: .78rem; line-height: 1.35; word-break: break-all; white-space: normal; -webkit-user-select: all; user-select: all; }
.mx-btn { min-height: 44px; min-width: 44px; padding: .55rem .9rem; font-size: .86rem; }
.mx-empty { margin-bottom: 1rem; }

.utm-steps { max-width: 46rem; }
.utm-steps ol { margin: .4rem 0 1rem; padding-left: 1.3rem; }
.utm-steps li { margin: .3rem 0; }
.utm-steps .mx-sources { font-size: .9rem; }

.mx-gallery-group { margin: 0 0 2.25rem; }
.mx-gallery-title { margin: 0 0 .6rem; }
.mx-gallery-stage { margin: 0 0 1.4rem; }
.mx-stage-title { margin: .2rem 0 .55rem; font-size: 1rem; color: var(--muted, #94a3b8); letter-spacing: .03em; text-transform: uppercase; }
.mx-stage-pending { margin-top: -.2rem; }

@media (max-width: 640px) {
  .mx-card { padding: .85rem .75rem .9rem; }
  .mx-scroll { overflow-x: visible; border: 0; }
  .mx-table, .mx-table tbody, .mx-table tr, .mx-table th, .mx-table td { display: block; width: 100%; min-width: 0; }
  .mx-table { min-width: 0 !important; }
  .mx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mx-table tr { padding: .6rem 0 .7rem; border-bottom: 1px solid var(--border, #475569); }
  .mx-table th, .mx-table td { border: 0; padding: .25rem 0; }
  .mx-table tbody th[scope="row"] { white-space: normal; font-size: 1.02rem; }
  .mx-table td::before { content: attr(data-label); display: block; margin-bottom: .1rem; color: var(--muted, #94a3b8); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; font-style: normal; }
  .mx-table tr.is-pending td { display: none; }
  .mx-table tr.is-pending td.mx-file { display: block; }
  .mx-hash { max-width: 100%; }
}
