/* BATTAG JHA Builder — standalone JHA viewer (view.html). Reuses styles.css
   tokens (.card, .tag); this file only adds the sticky header bar and the
   read-off host frame (pm.css precedent). */

.view-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--line, #2a2f37);
  position: sticky;
  top: 0;
  background: var(--bg, #0f1216);
  z-index: 5;
}
/* Back link: comfortable thumb target (>=44px) without inflating the bar. */
.view-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  margin: -10px 0 -10px -10px;
  border-radius: 10px;
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.view-back:active {
  background: rgba(255, 255, 255, 0.08);
}
.view-titles {
  flex: 1;
  min-width: 0;
}
.view-header h1 {
  font-size: 18px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.view-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* Error-card Back link: block-level tap target, same 44px minimum. */
.view-back-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

/* Read-off host: white sheet like the printed form (pm.css #readoffHost). */
#readoffHost {
  border: 1px solid var(--line, #2a2f37);
  border-radius: 10px;
  background: #fff;
  overflow-x: auto;
}

/* Attachment download links (V3-4 C2) */
.view-attachment {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.view-attachment:first-of-type {
  border-top: 0;
}
