/* Integrated Human Practices — the "All interview transcript" viewer.
   The compiled interview PDF shown in an embedded viewer, with links to open
   or download the same file. Loaded from the iHP page's own extra_css block, so
   it stacks after science-content.css and dual-theme.css. Colours come from the
   --ui-* tokens, so the light and dark themes both work without a second rule
   set. */

.student-ihp-page .science-story .hp-interviews {
  margin: 2.6rem 0 0;
  padding-top: 1.7rem;
  border-top: 1px solid var(--ui-border);
}

/* ----------------------------------------------------------- PDF document */
.student-ihp-page .science-story .hp-interviews__document {
  margin: 1.2rem 0 0;
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: var(--ui-surface);
  overflow: hidden;
}
.student-ihp-page .science-story .hp-interviews__document-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .8rem;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--ui-border);
}
.student-ihp-page .science-story .hp-interviews__document-label {
  font: 600 .62rem/1.6 var(--font-nav);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ui-accent);
}
.student-ihp-page .science-story .hp-interviews__document-title {
  font-size: 1rem;
  color: var(--ui-ink);
}
.student-ihp-page .science-story .hp-interviews__document-meta {
  font-size: .78rem;
  color: var(--ui-muted);
}
.student-ihp-page .science-story .hp-interviews__viewer {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  background: var(--ui-soft);
}
.student-ihp-page .science-story .hp-interviews__viewer-fallback {
  margin: 0;
  padding: 1.4rem 1.1rem;
  font-size: .9rem;
}

.student-ihp-page .science-story .hp-interviews__document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: .9rem 1.1rem;
  border-top: 1px solid var(--ui-border);
}
.student-ihp-page .science-story .hp-interviews__document-btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .5rem 1.05rem;
  border: 1px solid var(--ui-accent);
  border-radius: 40px;
  background: var(--ui-accent);
  color: var(--ui-on-accent);
  font: 600 .78rem/1.2 var(--font-nav);
  letter-spacing: .04em;
  text-decoration: none;
}
.student-ihp-page .science-story .hp-interviews__document-btn--ghost {
  background: transparent;
  color: var(--ui-accent);
}
.student-ihp-page .science-story .hp-interviews__document-btn:is(:hover, :focus-visible) {
  background: var(--ui-soft);
  color: var(--ui-accent);
}
.student-ihp-page .science-story .hp-interviews__document-btn:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 760px) {
  .student-ihp-page .science-story .hp-interviews__viewer { height: min(70vh, 460px); }
}
@media (max-width: 480px) {
  .student-ihp-page .science-story .hp-interviews__document-head { padding: .8rem .85rem; }
  .student-ihp-page .science-story .hp-interviews__document-actions { padding: .8rem .85rem; }
  .student-ihp-page .science-story .hp-interviews__document-btn { flex: 1 1 auto; justify-content: center; }
}

/* A printed copy cannot embed the PDF, so the card reduces to its caption and
   the links stay available on paper as plain URLs. */
@media print {
  .student-ihp-page .science-story .hp-interviews__viewer { display: none !important; }
  .student-ihp-page .science-story .hp-interviews__document {
    border: 0;
    break-inside: avoid;
  }
  .student-ihp-page .science-story .hp-interviews__document-head { padding: 0 0 .4rem; }
  .student-ihp-page .science-story .hp-interviews__document-actions { padding: .4rem 0 0; }
}
