/* NSH Narrative Profiles: page bar, PDF form popup and report box. GitLab #64. */
.nsh-np { width: 100%; }
.nsh-np__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid #e5e5e5; }
.nsh-np__label { font-weight: 600; }
.nsh-np__select { font: inherit; padding: 6px 8px; min-width: 260px; max-width: 100%; }
/* Looks like a link (site green, orange on hover) but stays a button: it opens the popup, it doesn't go anywhere. */
.nsh-np .nsh-np__download { padding: 0; border: 0; background: none; font: inherit; color: #003b30; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color 0.3s; }
.nsh-np .nsh-np__download:hover { color: #f58220; }
.nsh-np .nsh-np__download:focus-visible { outline: 2px solid #003b30; outline-offset: 2px; }
.nsh-np .nsh-np__download:disabled { color: #003b30; cursor: progress; opacity: 0.6; }
/* PDF popup: matches the site's share popup (400px white box, 15px corners and padding, 50% black backdrop). */
.nsh-np__pdf { box-sizing: border-box; width: 400px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); padding: 15px; border: 0; border-radius: 15px; background: #fff; color: #222; }
.nsh-np__pdf::backdrop { background: rgba(0, 0, 0, 0.5); }
.nsh-np__pdf-close { position: absolute; top: 8px; right: 10px; padding: 4px 6px; border: 0; background: none; font: inherit; font-size: 18px; line-height: 1; color: #222; cursor: pointer; }
.nsh-np .nsh-np__pdf-title { margin: 15px 0 4px; font-size: 18px; font-weight: 400; line-height: 1.3; text-align: center; color: #222; }
/* Fixed sizes: otherwise the popup takes the page's paragraph size, which differs per theme and page. */
.nsh-np .nsh-np__pdf-name { margin: 0 0 15px; font-size: 16px; font-weight: 600; line-height: 1.4; text-align: center; }
.nsh-np .nsh-np__pdf-intro { margin: 0 0 8px; padding-top: 15px; border-top: 1px solid #e5e5e5; font-size: 15px; line-height: 1.5; }
.nsh-np .nsh-np__pdf-done { padding-top: 15px; border-top: 1px solid #e5e5e5; font-size: 15px; line-height: 1.5; }
/* Once sent, the thank-you message replaces the form; the intro would just repeat it. */
.nsh-np__pdf:has(.nsh-np__pdf-done) .nsh-np__pdf-intro { display: none; }
.nsh-np__pdf-close:focus-visible { outline: 2px solid #003b30; outline-offset: 2px; }
/* The site styles every Gravity Forms field white-on-transparent (made for dark sections), so typed
   text vanished on this light panel. Long selectors + !important to beat the site's own !important. */
.nsh-np .nsh-np__pdf .gform_wrapper .gform_body .gform_fields .gfield input[type="email"] {
  color: #003b30 !important; -webkit-text-fill-color: #003b30 !important; caret-color: #003b30 !important;
  border-color: #003b30 !important; background-color: #fff !important;
}
.nsh-np .nsh-np__pdf .gform_wrapper .gform_body .gform_fields .gfield .gfield_label,
.nsh-np .nsh-np__pdf .gform_wrapper .gform_body .gform_fields .gfield:focus-within .gfield_label,
.nsh-np .nsh-np__pdf .gform_wrapper .gform_body .gform_fields .gfield .gfield_label .gfield_required { color: #003b30 !important; }
.nsh-np__status { font-size: 0.875em; color: #666; }
/* Placeholder height until the script sizes the frame to the report page. */
.nsh-np__report { height: 80vh; }
.nsh-np__report iframe { border: 0; }
