/**
 * Baptist Member Portal - Public Styles
 *
 * Styles for registration form and public-facing elements.
 * Mobile-first responsive design matching Baptist Insurance branding.
 */

/* ========================================
   Registration Container
   ======================================== */

.bmp-registration-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

/* ========================================
   Form Styles
   ======================================== */

.bmp-form {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.bmp-form-header {
  margin-bottom: 30px;
  text-align: center;
}

.bmp-form-header h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
}

.bmp-form-header p {
  margin: 0;
  font-size: 16px;
  color: #666;
}

/* Form Groups */

.bmp-form-group {
  margin-bottom: 24px;
}

.bmp-form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bmp-form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.bmp-form-group label .required {
  color: #d32f2f;
}

.bmp-form-group input[type="text"],
.bmp-form-group input[type="email"],
.bmp-form-group input[type="password"],
.bmp-form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bmp-form-group input:focus,
.bmp-form-group select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.bmp-form-group input::placeholder {
  color: #999;
}

.bmp-field-description {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* Constituent Autocomplete */

.bmp-autocomplete-wrapper {
  position: relative;
}

.bmp-autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 2px solid #0066cc;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
  margin-top: -2px;
}

.bmp-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

.bmp-suggestion-item:last-child {
  border-bottom: none;
}

.bmp-suggestion-item:hover {
  background-color: #f5f5f5;
}

.bmp-suggestion-item.no-match {
  cursor: default;
  color: #999;
  font-style: italic;
}

.bmp-suggestion-item.no-match:hover {
  background-color: #fff;
}

/* Password Field Wrapper */

.bmp-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.bmp-password-wrapper input {
  flex: 1;
  padding-right: 48px;
}

.bmp-password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #666;
  transition: color 0.2s ease;
}

.bmp-password-toggle:hover {
  color: #0066cc;
}

.bmp-password-toggle .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Password Strength Indicator */

.bmp-password-strength {
  margin-top: 10px;
}

.bmp-password-strength-bar {
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 0%;
}

.bmp-password-strength-bar.weak {
  background-color: #d32f2f;
}

.bmp-password-strength-bar.medium {
  background-color: #f57c00;
}

.bmp-password-strength-bar.strong {
  background-color: #388e3c;
}

.bmp-password-strength-bar.very-strong {
  background-color: #1976d2;
}

.bmp-password-strength-text {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

.bmp-password-strength-bar.weak + .bmp-password-strength-text {
  color: #d32f2f;
}

.bmp-password-strength-bar.medium + .bmp-password-strength-text {
  color: #f57c00;
}

.bmp-password-strength-bar.strong + .bmp-password-strength-text {
  color: #388e3c;
}

.bmp-password-strength-bar.very-strong + .bmp-password-strength-text {
  color: #1976d2;
}

.bmp-password-strength-text small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: #666;
}

/* Honeypot Field (Hidden) */

.bmp-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form Actions */

.bmp-form-actions {
  margin-top: 30px;
}

.bmp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.bmp-button-primary {
  background-color: #0066cc;
  color: #ffffff;
}

.bmp-button-primary:hover {
  background-color: #0052a3;
}

.bmp-button-primary:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.bmp-button-spinner .dashicons {
  animation: bmp-spin 1s linear infinite;
  font-size: 20px;
  width: 20px;
  height: 20px;
}

@keyframes bmp-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Form Footer */

.bmp-form-footer {
  margin-top: 24px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.bmp-form-footer p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.bmp-form-footer a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.bmp-form-footer a:hover {
  text-decoration: underline;
}

/* ========================================
   Messages
   ======================================== */

.bmp-message {
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
}

.bmp-message-success,
.bmp-success {
  background-color: #e8f5e9;
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.bmp-message-error,
.bmp-error {
  background-color: #ffebee;
  border-left: 4px solid #f44336;
  color: #c62828;
}

.bmp-message-info,
.bmp-info {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  color: #1565c0;
}

.bmp-message a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 640px) {
  .bmp-registration-container {
    padding: 10px;
  }

  .bmp-form {
    padding: 20px;
  }

  .bmp-form-header h2 {
    font-size: 24px;
  }

  .bmp-form-header p {
    font-size: 14px;
  }

  .bmp-form-row-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bmp-button {
    padding: 12px 24px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .bmp-form {
    padding: 16px;
  }

  .bmp-form-header h2 {
    font-size: 22px;
  }

  .bmp-form-group input[type="text"],
  .bmp-form-group input[type="email"],
  .bmp-form-group input[type="password"],
  .bmp-form-group select {
    font-size: 15px;
    padding: 10px 14px;
  }
}

/* ========================================
   Resource Save/Unsave Buttons
   ======================================== */

.bmp-resource-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #fff;
  border: 2px solid #2271b1;
  border-radius: 4px;
  color: #2271b1;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bmp-resource-save-btn:hover {
  background-color: #2271b1;
  color: #fff;
}

.bmp-resource-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bmp-resource-save-btn .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.bmp-save-resource-btn .dashicons {
  color: #2271b1;
}

.bmp-save-resource-btn:hover .dashicons {
  color: #fff;
}

.bmp-unsave-resource-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #2271b1;
  border: 2px solid #2271b1;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bmp-unsave-resource-btn:hover {
  background-color: #135e96;
  border-color: #135e96;
}

.bmp-unsave-resource-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bmp-unsave-resource-btn .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: #fff;
}

/* Notification Toast */

.bmp-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  padding: 16px 20px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.bmp-notification-show {
  opacity: 1;
  transform: translateY(0);
}

.bmp-notification-success {
  border-left: 4px solid #46b450;
  color: #155724;
}

.bmp-notification-error {
  border-left: 4px solid #dc3232;
  color: #721c24;
}

@media (max-width: 768px) {
  .bmp-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .bmp-resource-save-btn,
  .bmp-unsave-resource-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   Dashboard
   ======================================== */

.bmp-dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.bmp-dashboard-header {
  margin-bottom: 30px;
  text-align: center;
}

.bmp-dashboard-header h1 {
  margin: 0 0 10px;
  font-size: 32px;
  color: var(--bis-dark, #090750);
}

.bmp-dashboard-subtitle {
  color: var(--bis-gray-500, #6B7280);
  font-size: 16px;
  margin: 0;
}

.bmp-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.bmp-dashboard-card {
  background: #fff;
  border-radius: var(--bis-radius-md, 12px);
  box-shadow: var(--bis-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
  overflow: hidden;
}

.bmp-dashboard-card-wide {
  grid-column: 1 / -1;
}

.bmp-card-header {
  background: var(--bis-gray-100, #F3F4F6);
  padding: 20px;
  border-bottom: 1px solid var(--bis-gray-200, #E5E7EB);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bmp-card-header .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: var(--bis-primary, #016AA4);
}

.bmp-card-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--bis-dark, #090750);
}

.bmp-card-content {
  padding: 20px;
}

.bmp-card-footer {
  padding: 20px;
  border-top: 1px solid var(--bis-gray-200, #E5E7EB);
  text-align: center;
}

.bmp-info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--bis-gray-100, #F3F4F6);
}

.bmp-info-row:last-child {
  border-bottom: none;
}

.bmp-info-label {
  font-weight: 600;
  color: var(--bis-gray-500, #6B7280);
}

.bmp-info-value {
  color: var(--bis-dark, #090750);
}

.bmp-stat-box {
  text-align: center;
  padding: 20px;
  background: var(--bis-gray-100, #F3F4F6);
  border-radius: 4px;
  margin-bottom: 15px;
}

.bmp-stat-box:last-child {
  margin-bottom: 0;
}

.bmp-stat-number {
  font-size: 32px;
  font-weight: bold;
  color: var(--bis-primary, #016AA4);
  margin-bottom: 5px;
}

.bmp-stat-label {
  color: var(--bis-gray-500, #6B7280);
  font-size: 14px;
}

.bmp-quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bmp-quick-links li {
  margin-bottom: 10px;
}

.bmp-quick-links li:last-child {
  margin-bottom: 0;
}

.bmp-quick-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bis-gray-100, #F3F4F6);
  border-radius: 4px;
  text-decoration: none;
  color: var(--bis-dark, #090750);
  transition: background 0.3s;
}

.bmp-quick-links a:hover {
  background: var(--bis-gray-200, #E5E7EB);
}

.bmp-quick-links .dashicons {
  color: var(--bis-primary, #016AA4);
}

.bmp-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bmp-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border-bottom: 1px solid var(--bis-gray-100, #F3F4F6);
}

.bmp-activity-item:last-child {
  border-bottom: none;
}

.bmp-activity-item .dashicons {
  color: var(--bis-primary, #016AA4);
  margin-top: 2px;
}

.bmp-activity-thumb {
  flex: 0 0 75px;
  width: 75px;
  height: 75px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bis-gray-100, #F3F4F6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bmp-activity-thumb a,
.bmp-activity-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.bmp-activity-thumb img {
  object-fit: cover;
}

.bmp-activity-thumb .dashicons {
  color: var(--bis-gray-500, #6B7280);
  margin: 0;
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.bmp-activity-content {
  flex: 1;
}

.bmp-activity-content strong {
  display: block;
  color: var(--bis-dark, #090750);
  margin-bottom: 5px;
}

.bmp-activity-content strong a {
  color: inherit;
  text-decoration: none;
}

.bmp-activity-content strong a:hover {
  color: var(--bis-primary, #016AA4);
  text-decoration: underline;
}

.bmp-activity-meta {
  color: var(--bis-gray-500, #6B7280);
  font-size: 14px;
}

.bmp-dashboard-section {
  margin-top: 20px;
}

.bmp-recent-resources-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bmp-recent-resource-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border-bottom: 1px solid var(--bis-gray-100, #F3F4F6);
}

.bmp-recent-resource-item:last-child {
  border-bottom: none;
}

.bmp-recent-resource-thumb {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bis-gray-100, #F3F4F6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bmp-recent-resource-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bmp-recent-resource-thumb .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
  color: var(--bis-primary, #016AA4);
}

.bmp-recent-resource-content {
  flex: 1;
}

.bmp-recent-resource-title {
  display: block;
  color: var(--bis-dark, #090750);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 4px;
}

.bmp-recent-resource-title:hover {
  color: var(--bis-primary, #016AA4);
}

.bmp-recent-resource-description {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--bis-gray-500, #6B7280);
  line-height: 1.4;
}

.bmp-recent-resource-date {
  color: #999;
  font-size: 13px;
}

/* ========================================
   Profile Editor
   ======================================== */

.bmp-profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.bmp-profile-header {
  margin-bottom: 30px;
  text-align: center;
}

.bmp-profile-header h1 {
  margin: 0 0 10px;
  font-size: 32px;
  color: var(--bis-dark, #090750);
}

.bmp-profile-subtitle {
  color: var(--bis-gray-500, #6B7280);
  font-size: 16px;
  margin: 0;
}

.bmp-form-section {
  background: #fff;
  border-radius: var(--bis-radius-md, 12px);
  box-shadow: var(--bis-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
  padding: 30px;
  margin-bottom: 20px;
}

.bmp-form-section h2 {
  margin: 0 0 20px;
  font-size: 20px;
  color: var(--bis-dark, #090750);
  border-bottom: 2px solid var(--bis-gray-100, #F3F4F6);
  padding-bottom: 10px;
}

/* ========================================
   Saved Documents
   ======================================== */

.bmp-saved-documents-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* The /saved-documents/ page in Divi has a coloured background applied
   on a generated column class (e.g. .et_pb_column_11 { background-color:
   #008cc4 }). Neutralise the section / row / column that wraps our
   container so the page reads white like other member-portal pages.
   :has() scopes this strictly to ancestors of our shortcode output. */
.et_pb_section:has(.bmp-saved-documents-container),
.et_pb_row:has(.bmp-saved-documents-container),
.et_pb_column:has(.bmp-saved-documents-container) {
  background-color: #fff !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Saved-documents-only card border (matches the dark blue footer bar). */
.bmp-saved-resources-grid .bmp-resource-card {
  border: 1px solid #003C78;
}

.bmp-saved-documents-header {
  margin-bottom: 30px;
  text-align: center;
}

.bmp-saved-documents-header h1 {
  margin: 0 0 10px;
  font-size: 32px;
  color: var(--bis-dark, #090750);
}

.bmp-saved-documents-subtitle {
  color: var(--bis-gray-500, #6B7280);
  font-size: 16px;
  margin: 0;
}

#bmp-saved-documents-messages {
  margin-bottom: 20px;
}

.bmp-saved-list {
  background: #fff;
  border-radius: var(--bis-radius-md, 12px);
  box-shadow: var(--bis-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
  overflow: hidden;
}

.bmp-saved-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bis-gray-100, #F3F4F6);
  transition: background 0.2s;
}

.bmp-saved-list-item:last-child {
  border-bottom: none;
}

.bmp-saved-list-item:hover {
  background: var(--bis-gray-100, #F3F4F6);
}

.bmp-saved-list-icon {
  flex: 0 0 auto;
}

.bmp-saved-list-icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: var(--bis-primary, #016AA4);
}

.bmp-saved-list-info {
  flex: 1;
  min-width: 0;
}

.bmp-saved-list-title {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.4;
}

.bmp-saved-list-title a {
  color: var(--bis-dark, #090750);
  text-decoration: none;
}

.bmp-saved-list-title a:hover {
  color: var(--bis-primary, #016AA4);
}

.bmp-saved-list-description {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--bis-gray-500, #6B7280);
  line-height: 1.4;
  max-width: 600px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bmp-saved-list-meta {
  font-size: 13px;
  color: var(--bis-gray-500, #6B7280);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bmp-saved-list-separator {
  color: #ccc;
}

.bmp-saved-list-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.bmp-button-sm {
  padding: 8px 12px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bmp-button-sm .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.bmp-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: var(--bis-radius-md, 12px);
  box-shadow: var(--bis-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
}

.bmp-empty-state-icon {
  margin-bottom: 20px;
}

.bmp-empty-state-icon .dashicons {
  font-size: 80px;
  width: 80px;
  height: 80px;
  color: #ccc;
}

.bmp-empty-state h2 {
  margin: 0 0 15px;
  font-size: 24px;
  color: var(--bis-dark, #090750);
}

.bmp-empty-state p {
  color: var(--bis-gray-500, #6B7280);
  font-size: 16px;
  margin: 0 0 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Resources Library
   ======================================== */

.bmp-resources-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.bmp-resources-search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.bmp-resources-header {
  margin-bottom: 30px;
  text-align: center;
}

.bmp-resources-header h1 {
  margin: 0 0 10px;
  font-size: 32px;
  color: var(--bis-dark, #090750);
}

.bmp-resources-subtitle {
  color: var(--bis-gray-500, #6B7280);
  font-size: 16px;
  margin: 0;
}

.bmp-resources-filters {
  background: var(--bis-gray-100, #F3F4F6);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.bmp-search-box {
  position: relative;
  flex: 1 1 280px;
  min-width: 240px;
}

.bmp-search-box .dashicons {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bis-gray-500, #6B7280);
  pointer-events: none;
}

.bmp-search-input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 2px solid var(--bis-gray-200, #E5E7EB);
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}

.bmp-search-input:focus {
  outline: none;
  border-color: var(--bis-primary, #016AA4);
}

.bmp-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Newsletters & Presentations: dark blue border on cards to match brand */
.bmp-newsletter-card,
.bmp-presentation-card {
  border: 1px solid #003C78;
}

/* Presentations: thumbnail with play overlay */
.bmp-presentation-thumbnail {
  position: relative;
}

.bmp-presentation-thumbnail a {
  display: block;
  position: relative;
  text-decoration: none;
}

.bmp-presentation-thumbnail img {
  width: 100%;
  display: block;
}

.bmp-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 60, 120, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
}

.bmp-presentation-thumbnail:hover .bmp-play-overlay,
.bmp-presentation-thumbnail a:focus .bmp-play-overlay {
  opacity: 1;
}

.bmp-play-overlay .dashicons {
  font-size: 64px;
  width: 64px;
  height: 64px;
  color: #fff;
  background: rgba(0, 60, 120, 0.85);
  border-radius: 50%;
  padding: 12px;
  box-sizing: content-box;
  line-height: 64px;
  text-align: center;
}

/* Always show play overlay on touch devices (no :hover) */
@media (hover: none) {
  .bmp-play-overlay {
    opacity: 1;
    background: rgba(0, 60, 120, 0.15);
  }
  .bmp-play-overlay .dashicons {
    background: rgba(0, 60, 120, 0.75);
  }
}

/* Watch Video button — inherits .bmp-button-primary; just give the icon spacing */
.bmp-presentation-watch-btn .dashicons,
.bmp-newsletter-download-btn .dashicons {
  margin-right: 6px;
  vertical-align: middle;
}

/* ========================================
   Presentation player page (/watch-presentation/)
   ======================================== */

.bmp-presentation-player-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.bmp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--bis-primary, #016AA4);
  text-decoration: none;
  font-weight: 600;
}

.bmp-back-link:hover {
  text-decoration: underline;
}

.bmp-presentation-title {
  margin: 0 0 8px;
  color: var(--bis-dark, #003C78);
  font-size: 32px;
  line-height: 1.2;
}

.bmp-presentation-meta {
  margin-bottom: 20px;
  color: var(--bis-gray-500, #6B7280);
}

/* Responsive 16:9 video container — works in iframe and HTML5 video.
   Uses aspect-ratio (modern) with padding-top fallback for old Safari. */
.bmp-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 60, 120, 0.15);
}

@supports not (aspect-ratio: 16 / 9) {
  .bmp-video-wrapper {
    height: 0;
    padding-top: 56.25%;
  }
}

.bmp-video-iframe,
.bmp-video-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bmp-video-fallback {
  margin-top: 12px;
  font-size: 14px;
  color: var(--bis-gray-500, #6B7280);
  text-align: center;
}

.bmp-video-fallback a {
  color: var(--bis-primary, #016AA4);
}

.bmp-presentation-description {
  margin-top: 30px;
  line-height: 1.7;
  color: var(--bis-gray-700, #374151);
}

.bmp-filter-select {
  padding: 10px 15px;
  border: 2px solid var(--bis-gray-200, #E5E7EB);
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

.bmp-filter-select:focus {
  outline: none;
  border-color: var(--bis-primary, #016AA4);
}

.bmp-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.bmp-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.bmp-resources-count {
  margin-bottom: 20px;
  color: var(--bis-gray-500, #6B7280);
  font-size: 14px;
}

.bmp-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.bmp-resource-card {
  background: #fff;
  border-radius: var(--bis-radius-md, 12px);
  box-shadow: var(--bis-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.bmp-resource-card:hover {
  box-shadow: var(--bis-shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1));
  transform: translateY(-2px);
}

/* News cards: dark blue 1px border */
.bmp-resource-card.bmp-news-card {
  border: 1px solid var(--bis-primary, #016AA4);
}

.bmp-resource-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bis-gray-100, #F3F4F6);
}

.bmp-resource-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bmp-resource-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.bmp-resource-no-image img {
  width: 60%;
  height: auto;
  max-width: 150px;
  object-fit: contain;
}

.bmp-resource-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bmp-resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--bis-gray-500, #6B7280);
}

.bmp-resource-category,
.bmp-resource-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bmp-resource-meta .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.bmp-resource-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.4;
}

.bmp-resource-title a {
  color: var(--bis-dark, #090750);
  text-decoration: none;
  transition: color 0.3s;
}

.bmp-resource-title a:hover {
  color: var(--bis-primary, #016AA4);
}

.bmp-resource-categories {
  margin-bottom: 10px;
}

.bmp-resource-categories .bmp-resource-category {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bis-gray-100, #F3F4F6);
  border-radius: 3px;
  font-size: 12px;
  margin-right: 5px;
  margin-bottom: 5px;
  color: var(--bis-gray-500, #6B7280);
}

.bmp-resource-excerpt {
  color: var(--bis-gray-500, #6B7280);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Dark-blue footer bar — sits flush at the bottom of every card.
   Split 50/50 between "View Resource" and "Save", separated by a
   single white vertical divider. */
.bmp-resource-actions {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: auto -20px -20px;       /* escape .bmp-resource-content padding */
  padding: 0;
  background: #003C78;
}

.bmp-resource-actions .bmp-button,
.bmp-resource-actions .bmp-button-secondary,
.bmp-resource-actions .bmp-resource-save-btn {
  flex: 1 1 50%;
  width: 50%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 14px 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bmp-resource-actions .bmp-resource-save-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.6);
}

.bmp-resource-actions .bmp-button:hover,
.bmp-resource-actions .bmp-button-secondary:hover,
.bmp-resource-actions .bmp-resource-save-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Footer bar is text-only by design; hide the dashicons span the
   save/unsave JS injects so "Saved" / "Save" stay centered. */
.bmp-resource-actions .bmp-resource-save-btn .dashicons,
.bmp-resource-actions .bmp-save-resource-btn .dashicons,
.bmp-resource-actions .bmp-unsave-resource-btn .dashicons {
  display: none;
}


.bmp-resource-btn {
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  display: inline-block;
}

.bmp-resource-view-btn {
  background: var(--bis-primary, #016AA4);
  color: #fff;
}

.bmp-resource-view-btn:hover {
  background: var(--bis-primary-dark, #003C78);
}

.bmp-resources-search-bar {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.bmp-no-results {
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: var(--bis-radius-md, 12px);
}

/* ========================================
   Badges
   ======================================== */

.bmp-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bmp-badge-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.bmp-badge-warning {
  background: #fff3e0;
  color: #e65100;
}

.bmp-badge-error {
  background: #ffebee;
  color: #c62828;
}

/* ========================================
   Responsive - Dashboard & Resources
   ======================================== */

@media (max-width: 768px) {
  .bmp-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .bmp-dashboard-header h1 {
    font-size: 24px;
  }

  .bmp-info-row {
    flex-direction: column;
    gap: 5px;
  }

  .bmp-form-actions {
    flex-direction: column;
  }

  .bmp-saved-documents-header h1 {
    font-size: 24px;
  }

  .bmp-saved-list-item {
    flex-wrap: wrap;
  }

  .bmp-saved-list-info {
    flex: 1 1 calc(100% - 40px);
  }

  .bmp-saved-list-actions {
    flex: 0 0 100%;
    padding-left: 39px;
    padding-top: 8px;
  }

  .bmp-resources-grid {
    grid-template-columns: 1fr;
  }

  .bmp-filter-options {
    flex-direction: column;
    align-items: stretch;
  }

  .bmp-filter-select {
    width: 100%;
  }

  /* Footer bar stays as a row on mobile — View Resource left, Save right */
  .bmp-resource-actions {
    flex-direction: row;
  }

  .bmp-resources-search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .bmp-search-box {
    min-width: 100%;
  }
}

/* ========================================
   Email Verification Pages
   ======================================== */

.bmp-verification-container {
  max-width: 600px;
  margin: 60px auto;
  padding: 20px;
}

.bmp-verification-box {
  background: #fff;
  border-radius: var(--bis-radius-md, 12px);
  box-shadow: var(--bis-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1));
  padding: 40px;
  text-align: center;
}

.bmp-verification-icon {
  margin-bottom: 20px;
}

.bmp-verification-icon .dashicons {
  font-size: 80px;
  width: 80px;
  height: 80px;
}

.bmp-verification-success .dashicons {
  color: var(--bis-success, #27AE60);
}

.bmp-verification-error .dashicons {
  color: var(--bis-alert, #C0392B);
}

.bmp-verification-box h1 {
  margin: 0 0 20px;
  font-size: 32px;
  line-height: 1.2;
}

.bmp-verification-box p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--bis-gray-500, #6B7280);
  margin-bottom: 15px;
}

.bmp-verification-details {
  background: var(--bis-gray-100, #F3F4F6);
  border-radius: 4px;
  padding: 20px;
  margin: 30px 0;
  text-align: left;
}

.bmp-verification-details p {
  margin: 10px 0;
}

.bmp-verification-actions {
  margin-top: 30px;
}

.bmp-verification-actions .button {
  margin: 5px;
  text-decoration: none;
}

/* ==========================================================================
   Member-only access control
   ========================================================================== */

/**
 * Hide the entire Divi section/row/column wrapping the Member Menu when
 * the visitor isn't an authorised member. The wrapper element must be
 * given the class `member-menu-container` in the Divi module's advanced
 * settings (CSS Class field). The body class `bmp-member-logged-out` is
 * added by BMP_Access_Control::add_body_class().
 *
 * !important is needed to win over Divi's own inline section styles
 * (background colors, padding, etc.) which would otherwise leave a
 * visible empty band where the menu used to be.
 */
body.bmp-member-logged-out .member-menu-container {
  display: none !important;
}

/* "Members only" notice that appears above /member-login/ when a visitor
   was redirected from a restricted page (?members_only=1). */
.bmp-members-only-notice {
  margin-bottom: 1rem;
}

/* ==========================================================================
   Comprehensive search ([bmp_search] shortcode)
   ========================================================================== */
.bmp-search {
  max-width: 960px;
  margin: 0 auto;
  font-family: var(--bis-font-sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  color: var(--bis-text, #1a1a1a);
}

.bmp-search__form {
  margin-bottom: 1rem;
}

.bmp-search__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bmp-search__icon {
  position: absolute;
  left: 1.25rem;
  color: var(--bis-gray-500, #6b7280);
  pointer-events: none;
}

.bmp-search__input {
  width: 100%;
  padding: 1.125rem 3rem 1.125rem 3.25rem;
  font-size: 1.25rem;
  line-height: 1.4;
  border: 2px solid var(--bis-gray-200, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  color: var(--bis-text, #1a1a1a);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.bmp-search__input:focus {
  outline: none;
  border-color: var(--bis-primary, #003d6b);
  box-shadow: 0 0 0 4px rgba(0, 61, 107, 0.12);
}

.bmp-search__input::-webkit-search-cancel-button { display: none; }

.bmp-search__clear {
  position: absolute;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--bis-gray-100, #f3f4f6);
  color: var(--bis-gray-700, #374151);
  cursor: pointer;
  transition: background .15s ease;
}

.bmp-search__clear:hover {
  background: var(--bis-gray-200, #e5e7eb);
}

.bmp-search__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.25rem;
}

.bmp-search__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid var(--bis-gray-200, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  color: var(--bis-gray-700, #374151);
  cursor: pointer;
  transition: all .15s ease;
}

.bmp-search__chip:hover {
  border-color: var(--bis-gray-400, #9ca3af);
  color: var(--bis-text, #1a1a1a);
}

.bmp-search__chip.is-active {
  background: var(--bis-primary, #003d6b);
  border-color: var(--bis-primary, #003d6b);
  color: #fff;
}

.bmp-search__chip[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.bmp-search__count {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

.bmp-search__chip.is-active .bmp-search__count {
  background: rgba(255, 255, 255, 0.25);
}

.bmp-search__count:empty {
  display: none;
}

.bmp-search__status {
  margin: 0 0 1rem;
  min-height: 1.25rem;
  font-size: 0.875rem;
  color: var(--bis-gray-600, #4b5563);
}

.bmp-search__results {
  display: grid;
  gap: 1rem;
}

.bmp-search__result {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--bis-gray-200, #e5e7eb);
  border-radius: 0.75rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.bmp-search__result:hover,
.bmp-search__result:focus-visible {
  border-color: var(--bis-primary, #003d6b);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  outline: none;
}

.bmp-search__result.is-keynav {
  border-color: var(--bis-primary, #003d6b);
  box-shadow: 0 0 0 3px rgba(0, 61, 107, 0.15);
}

.bmp-search__result-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--bis-gray-500, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bmp-search__result-badge {
  padding: 0.2rem 0.6rem;
  font-weight: 600;
  background: var(--bis-primary-50, #e6f0f7);
  color: var(--bis-primary, #003d6b);
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.bmp-search__result-title {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--bis-primary, #003d6b);
  font-weight: 600;
}

.bmp-search__result-snippet {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--bis-gray-700, #374151);
}

.bmp-search__result mark,
.bmp-search__result-title mark {
  background: rgba(255, 207, 51, 0.45);
  color: inherit;
  font-weight: 600;
  padding: 0 0.1em;
  border-radius: 2px;
}

.bmp-search__recent {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bis-gray-50, #f9fafb);
  border-radius: 0.75rem;
}

.bmp-search__recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.bmp-search__recent-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bis-gray-700, #374151);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bmp-search__recent-clear {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--bis-gray-600, #4b5563);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.bmp-search__recent-clear:hover {
  color: var(--bis-primary, #003d6b);
  text-decoration: underline;
}

.bmp-search__recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bmp-search__recent-list button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid var(--bis-gray-200, #e5e7eb);
  border-radius: 999px;
  color: var(--bis-gray-700, #374151);
  cursor: pointer;
}

.bmp-search__recent-list button:hover {
  border-color: var(--bis-primary, #003d6b);
  color: var(--bis-primary, #003d6b);
}

.bmp-search__empty,
.bmp-search__no-results {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--bis-gray-50, #f9fafb);
  border-radius: 0.75rem;
}

.bmp-search__empty h3,
.bmp-search__no-results h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--bis-text, #1a1a1a);
}

.bmp-search__empty p,
.bmp-search__no-results p {
  margin: 0 0 1rem;
  color: var(--bis-gray-600, #4b5563);
}

.bmp-search__suggestions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bmp-search__suggestions a {
  display: inline-flex;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--bis-gray-200, #e5e7eb);
  border-radius: 999px;
  color: var(--bis-primary, #003d6b);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.bmp-search__suggestions a:hover {
  border-color: var(--bis-primary, #003d6b);
  background: var(--bis-primary-50, #e6f0f7);
}

.bmp-search.is-loading .bmp-search__results { opacity: 0.5; }

@media (max-width: 640px) {
  .bmp-search__input { font-size: 1.0625rem; padding: 0.9rem 2.75rem 0.9rem 2.75rem; }
  .bmp-search__icon { left: 1rem; }
  .bmp-search__filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
  .bmp-search__chip { white-space: nowrap; }
  .bmp-search__result { padding: 1rem; }
}

/* ==========================================================================
   Logout confirmation modal (and reusable .bmp-modal base)
   ========================================================================== */
.bmp-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.bmp-modal[hidden] { display: none; }

.bmp-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bmp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.bmp-modal__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform .2s ease;
  outline: none;
}

.bmp-modal.is-open .bmp-modal__panel {
  transform: translateY(0) scale(1);
}

.bmp-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--bis-gray-500, #6b7280);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.bmp-modal__close:hover {
  background: var(--bis-gray-100, #f3f4f6);
  color: var(--bis-text, #1a1a1a);
}

.bmp-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  background: var(--bis-primary-50, #e6f0f7);
  color: var(--bis-primary, #003d6b);
  border-radius: 50%;
}

.bmp-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bis-text, #1a1a1a);
}

.bmp-modal__body {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--bis-gray-600, #4b5563);
}

.bmp-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.bmp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
  min-width: 130px;
}

.bmp-btn:active { transform: translateY(1px); }

.bmp-btn--primary {
  background: var(--bis-primary, #003d6b);
  border-color: var(--bis-primary, #003d6b);
  color: #fff;
}

.bmp-btn--primary:hover,
.bmp-btn--primary:focus-visible {
  background: var(--bis-primary-700, #002a4a);
  border-color: var(--bis-primary-700, #002a4a);
  color: #fff;
  outline: none;
}

.bmp-btn--ghost {
  background: #fff;
  border-color: var(--bis-gray-200, #e5e7eb);
  color: var(--bis-gray-700, #374151);
}

.bmp-btn--ghost:hover,
.bmp-btn--ghost:focus-visible {
  border-color: var(--bis-gray-400, #9ca3af);
  color: var(--bis-text, #1a1a1a);
  outline: none;
}

body.bmp-modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .bmp-modal__panel { padding: 1.75rem 1.25rem 1.25rem; }
  .bmp-modal__title { font-size: 1.2rem; }
  .bmp-modal__actions { flex-direction: column-reverse; }
  .bmp-btn { width: 100%; }
}

/* ==========================================================================
   Single News page (Divi child theme: single-news.php)
   ========================================================================== */

.bis-news-main {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFC 100%);
}

.bis-news-article {
  margin: 0;
}

/* Hero ------------------------------------------------------------------- */

.bis-news-hero {
  position: relative;
  isolation: isolate;
  padding: 0;
  color: #fff;
  overflow: hidden;
}

.bis-news-hero--has-image {
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}

.bis-news-hero--plain {
  background: linear-gradient(135deg, #003C78 0%, #016AA4 55%, #31AEE4 100%);
  padding: 72px 0 80px;
}

.bis-news-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.02);
  filter: saturate(1.05);
}

.bis-news-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 60, 120, 0.35) 0%, rgba(0, 60, 120, 0.65) 55%, rgba(0, 60, 120, 0.92) 100%);
  z-index: -1;
}

.bis-news-hero__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 48px;
}

.bis-news-hero--has-image .bis-news-hero__inner {
  padding: 200px 24px 56px;
}

.bis-news-crumbs {
  margin-bottom: 28px;
}

.bis-news-crumbs__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.bis-news-crumbs__link:hover,
.bis-news-crumbs__link:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateX(-2px);
}

.bis-news-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bis-accent, #E67E22);
  border-radius: 10px;
  box-shadow: 0 4px 14px -4px rgba(230, 126, 34, 0.45);
}

.bis-news-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 3.4vw + 1rem, 3.5rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 24px;
  max-width: 900px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.bis-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.bis-news-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bis-news-meta__icon {
  opacity: 0.85;
}

.bis-news-meta__sep {
  opacity: 0.4;
}

/* Body ------------------------------------------------------------------- */

.bis-news-body-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.bis-news-body {
  max-width: 980px;
  margin: -56px auto 0;
  padding: 64px clamp(28px, 6vw, 96px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px -28px rgba(1, 60, 120, 0.18), 0 4px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
}

/* Constrain prose to a comfortable reading width inside the wider card */
.bis-news-body > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.bis-news-body > figure,
.bis-news-body > .alignwide,
.bis-news-body > .alignfull {
  max-width: 100%;
}

.bis-news-hero--plain + .bis-news-body-wrap .bis-news-body {
  margin-top: -36px;
}

.bis-news-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.075rem;
  line-height: 1.78;
  color: var(--bis-gray-900, #111827);
}

.bis-news-body > *:first-child {
  margin-top: 0;
}

.bis-news-body > * {
  margin: 0 0 1.4em;
}

.bis-news-body > p:first-of-type::first-letter {
  font-weight: 700;
  color: var(--bis-primary, #016AA4);
  font-size: 1.15em;
}

.bis-news-body p {
  margin: 0 0 1.4em;
}

.bis-news-body h2,
.bis-news-body h3,
.bis-news-body h4 {
  font-family: inherit;
  color: var(--bis-primary-dark, #003C78);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 2em 0 0.7em;
}

.bis-news-body h2 {
  font-size: 1.7rem;
  font-weight: 700;
  position: relative;
  padding-left: 18px;
}

.bis-news-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 4px;
  background: linear-gradient(180deg, var(--bis-primary, #016AA4) 0%, var(--bis-accent, #E67E22) 100%);
  border-radius: 4px;
}

.bis-news-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.bis-news-body h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.bis-news-body a {
  color: var(--bis-primary, #016AA4);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(1, 106, 164, 0.35);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.bis-news-body a:hover,
.bis-news-body a:focus-visible {
  text-decoration-color: var(--bis-accent, #E67E22);
  color: var(--bis-primary-dark, #003C78);
}

.bis-news-body strong { color: var(--bis-primary-dark, #003C78); }

.bis-news-body ul,
.bis-news-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}

.bis-news-body li {
  margin-bottom: 0.5em;
}

.bis-news-body ul li::marker { color: var(--bis-primary, #016AA4); }
.bis-news-body ol li::marker { color: var(--bis-primary, #016AA4); font-weight: 700; }

.bis-news-body blockquote {
  margin: 2em 0;
  padding: 1.5em 1.75em;
  background: linear-gradient(135deg, rgba(1, 106, 164, 0.04) 0%, rgba(49, 174, 228, 0.06) 100%);
  border-left: 4px solid var(--bis-primary, #016AA4);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--bis-gray-700, #374151);
  font-size: 1.05em;
  position: relative;
}

.bis-news-body blockquote p:last-child { margin-bottom: 0; }

.bis-news-body img,
.bis-news-body figure {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.bis-news-body figure { margin: 1.8em 0; }
.bis-news-body figcaption {
  font-size: 0.88rem;
  color: var(--bis-gray-500, #6B7280);
  text-align: center;
  margin-top: 0.6em;
}

.bis-news-body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--bis-gray-300, #D1D5DB) 50%, transparent 100%);
  margin: 2.5em 0;
}

@media (max-width: 720px) {
  .bis-news-hero--has-image { min-height: 360px; }
  .bis-news-hero--has-image .bis-news-hero__inner { padding: 140px 20px 36px; }
  .bis-news-hero--plain { padding: 56px 0 60px; }
  .bis-news-body {
    margin-top: -24px;
    padding: 36px 22px;
    border-radius: 14px;
  }
  .bis-news-body { font-size: 1rem; line-height: 1.7; }
  .bis-news-body h2 { font-size: 1.4rem; }
}

/* ==========================================================================
   Related content (appended to single news via the_content)
   ========================================================================== */

.bmp-related {
  margin: 56px 0 0;
  padding: 64px 24px 80px;
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(49, 174, 228, 0.08) 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(230, 126, 34, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #F7FAFC 0%, #EEF4F9 100%);
  border-top: 1px solid var(--bis-gray-200, #E5E7EB);
}

.bmp-related__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.bmp-related__header {
  text-align: center;
  margin-bottom: 48px;
}

.bmp-related__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bis-primary, #016AA4);
  background: rgba(1, 106, 164, 0.08);
  border-radius: 999px;
}

.bmp-related__heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bis-primary-dark, #003C78);
  margin: 0 0 10px;
}

.bmp-related__lead {
  margin: 0 auto;
  max-width: 560px;
  color: var(--bis-gray-700, #374151);
  font-size: 1rem;
  line-height: 1.55;
}

/* Related cards — single grid, mirrors the bmp-resource-card pattern used
   on Resources / Newsletters / Presentations listing pages. */
.bmp-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

@media (min-width: 760px) {
  .bmp-related__grid { gap: 28px; }
}

.bmp-related-rcard {
  position: relative;
  border: 1px solid var(--bis-primary, #016AA4);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease;
}

.bmp-related-rcard:hover {
  transform: translateY(-4px);
  border-color: var(--bis-primary, #016AA4);
  box-shadow: 0 18px 32px -14px rgba(1, 60, 120, 0.28);
}

.bmp-related-rcard__thumb-link {
  display: block;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  border-bottom: 1px solid rgba(1, 106, 164, 0.08);
}

.bmp-related-rcard .bmp-resource-thumbnail {
  height: 180px;
  transition: transform 0.4s ease;
}

.bmp-related-rcard:hover .bmp-resource-thumbnail {
  transform: scale(1.04);
}

.bmp-related-rcard .bmp-resource-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bmp-related-rcard__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(1, 106, 164, 0.10) 0%, rgba(49, 174, 228, 0.16) 100%),
    var(--bis-gray-100, #F3F4F6);
  color: var(--bis-primary, #016AA4);
}

/* Type pill anchored to the thumbnail */
.bmp-related-rcard__type-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #fff;
  background: var(--bis-primary, #016AA4);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bmp-related-rcard__type-pill--news {
  background: linear-gradient(135deg, #016AA4 0%, #31AEE4 100%);
}
.bmp-related-rcard__type-pill--resources {
  background: linear-gradient(135deg, #003C78 0%, #016AA4 100%);
}
.bmp-related-rcard__type-pill--presentation_for_dmf {
  background: linear-gradient(135deg, #E67E22 0%, #F39C12 100%);
}
.bmp-related-rcard__type-pill--newsletter {
  background: linear-gradient(135deg, #2C3E50 0%, #016AA4 100%);
}

/* Card body inside related card */
.bmp-related-rcard .bmp-resource-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bmp-related-rcard .bmp-resource-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.bmp-related-rcard .bmp-resource-date {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  color: var(--bis-gray-500, #6B7280);
  font-weight: 500;
}

.bmp-related-rcard .bmp-resource-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bmp-related-rcard .bmp-resource-title a {
  color: var(--bis-primary-dark, #003C78);
  text-decoration: none;
  transition: color 0.18s ease;
}

.bmp-related-rcard:hover .bmp-resource-title a {
  color: var(--bis-primary, #016AA4);
}

.bmp-related-rcard .bmp-resource-excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--bis-gray-700, #374151);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bmp-related-rcard .bmp-resource-actions {
  margin-top: auto;
  padding-top: 6px;
}

/* CTA inherits the flush dark-blue bar from .bmp-resource-actions .bmp-button.
   Override the .bis-news-body a cascade (underline + primary color) that
   bleeds in because related HTML is appended via the_content filter. */
.bmp-related .bmp-resource-actions .bmp-button,
.bmp-related .bmp-resource-actions .bmp-button:hover,
.bmp-related .bmp-resource-actions .bmp-button:focus-visible {
  color: #fff;
  text-decoration: none;
}

.bmp-related-rcard__cta {
  gap: 8px;
  transition: gap 0.2s ease, background 0.2s ease;
}

.bmp-related-rcard__cta:hover {
  gap: 12px;
}

/* Footer actions --------------------------------------------------------- */

.bmp-related__footer {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

/* Footer buttons match the homepage "Get in Touch" style:
   solid accent orange, white text, soft-rounded corners (not full pill). */
.bmp-related__back,
.bmp-related__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 10px;
  background: var(--bis-accent, #E67E22);
  color: #fff;
  border: none;
  text-decoration: none !important;
  box-shadow: 0 4px 14px -4px rgba(230, 126, 34, 0.45);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.bmp-related__back:hover,
.bmp-related__back:focus-visible,
.bmp-related__cta:hover,
.bmp-related__cta:focus-visible {
  background: #C0570B;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -6px rgba(230, 126, 34, 0.55);
  color: #fff;
}

/* Override the .bis-news-body a cascade (underline + primary blue) that
   bleeds in because the related block is appended via the_content. */
.bis-news-body .bmp-related__back,
.bis-news-body .bmp-related__back:hover,
.bis-news-body .bmp-related__back:focus-visible,
.bis-news-body .bmp-related__cta,
.bis-news-body .bmp-related__cta:hover,
.bis-news-body .bmp-related__cta:focus-visible {
  color: #fff;
}

@media (max-width: 540px) {
  .bmp-related { padding: 48px 18px 60px; }
  .bmp-related__footer { flex-direction: column-reverse; }
  .bmp-related__back,
  .bmp-related__cta { width: 100%; justify-content: center; }
}

/* =====================================================================
 * Two-factor verify step (login flow + profile enable flow)
 * ================================================================== */

.bmp-2fa-form .bmp-form-header p {
  color: #4b5563;
}

.bmp-2fa-code-group {
  text-align: center;
}

.bmp-2fa-code-input {
  width: 100% !important;
  max-width: 320px;
  margin: 0 auto !important;
  font-family: 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.5em;
  text-align: center;
  padding-left: 0.5em !important; /* offset visual lean from letter-spacing */
}

.bmp-2fa-code-input::placeholder {
  letter-spacing: 0.5em;
  color: #cbd5e1;
}

.bmp-2fa-footer {
  text-align: center;
}

.bmp-2fa-footer p {
  margin: 6px 0;
}

/* Inline link-styled button used for "Send a new code" / "Cancel". */
.bmp-link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--bis-primary, #016AA4);
  cursor: pointer;
  text-decoration: underline;
}

.bmp-link-button:hover,
.bmp-link-button:focus-visible {
  color: var(--bis-primary-dark, #003C78);
}

.bmp-link-button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  text-decoration: none;
}

/* =====================================================================
 * Two-factor section on the profile page
 * ================================================================== */

.bmp-2fa-section {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--bis-gray-200, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.bmp-2fa-section__header h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bis-primary-dark, #003C78);
}

.bmp-2fa-section__intro {
  margin: 0 0 20px;
  color: #4b5563;
  line-height: 1.55;
}

.bmp-2fa-status {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #f8fafc;
  border-left: 4px solid #cbd5e1;
}

.bmp-2fa-status[data-2fa-status="on"] {
  background: #ecfdf5;
  border-left-color: #10b981;
}

.bmp-2fa-status[data-2fa-status="off"] {
  background: #fff7ed;
  border-left-color: #f59e0b;
}

.bmp-2fa-status__line {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
}

.bmp-2fa-status__line .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.bmp-2fa-status[data-2fa-status="on"] .bmp-2fa-status__line .dashicons {
  color: #10b981;
}

.bmp-2fa-status[data-2fa-status="off"] .bmp-2fa-status__line .dashicons {
  color: #f59e0b;
}

.bmp-2fa-status__meta {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.bmp-2fa-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.bmp-2fa-feedback {
  font-size: 0.95rem;
}

.bmp-2fa-feedback--success { color: #047857; }
.bmp-2fa-feedback--error   { color: #b91c1c; }
.bmp-2fa-feedback--info    { color: #4b5563; }

.bmp-2fa-enable-form {
  margin-top: 22px;
  padding: 20px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--bis-gray-200, #e5e7eb);
}

.bmp-2fa-enable-form__intro {
  margin: 0 0 16px;
  color: #1f2937;
  line-height: 1.5;
}

.bmp-2fa-enable-form .bmp-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* ============================================================
   SINGLE CPT TEMPLATES (resources, presentation_for_dmf, newsletter)
   Shared design language with single-news.php (.bis-news-*).
   Scoped to .bis-single-* on stable wrapper classes — never to
   .page-id-* or auto-numbered Divi module classes (would differ
   between local and staging databases).
   ============================================================ */

.bis-single-main {
  background: #fff;
  margin: 0;
  padding: 0;
}

.bis-single-article {
  margin: 0;
  padding: 0;
}

/* --- Hero -------------------------------------------------- */
.bis-single-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.bis-single-hero--has-image {
  min-height: 360px;
  padding: 96px 24px 56px;
}

.bis-single-hero--plain {
  background: linear-gradient(135deg, #003C78 0%, #0052a3 100%);
  padding: 80px 24px 48px;
}

.bis-single-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  /* Soft blur disguises low-resolution / pixelated source images when
     they're stretched full-width. The scale > 1 hides the soft halo
     that filter:blur() leaves at the edges of an element. Tunable per
     page via --bis-hero-blur (default 14px). */
  filter: blur(var(--bis-hero-blur, 14px)) saturate(1.05);
  transform: scale(1.12);
  will-change: transform, filter;
}

.bis-single-hero__overlay {
  position: absolute;
  inset: 0;
  /* Slightly stronger floor than the un-blurred version so the white
     text still has comfortable contrast over a now-soft backdrop. */
  background: linear-gradient(180deg, rgba(0,60,120,0.65) 0%, rgba(0,60,120,0.88) 100%);
  z-index: -1;
}

.bis-single-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.bis-single-hero--has-image .bis-single-hero__inner {
  padding-top: 12px;
}

/* Breadcrumb back-link */
.bis-single-crumbs {
  margin: 0 0 20px;
}

.bis-single-crumbs__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color .15s ease, transform .15s ease;
}

.bis-single-crumbs__link:hover,
.bis-single-crumbs__link:focus-visible {
  color: #fff;
  transform: translateX(-3px);
  text-decoration: none;
}

/* Title row: title-group on the left, action (save button) on the right.
   Stacks vertically on smaller screens. */
.bis-single-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.bis-single-hero__title-group {
  flex: 1 1 60%;
  min-width: 0;
}

.bis-single-hero__action {
  flex: 0 0 auto;
  margin-top: 4px;
}

/* Eyebrow / Title / Meta */
.bis-single-eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.bis-single-title {
  margin: 0 0 16px;
  font-size: clamp( 28px, 4vw, 44px );
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  word-wrap: break-word;
}

.bis-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}

.bis-single-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.bis-single-meta__icon {
  flex-shrink: 0;
}

.bis-single-meta__sep {
  opacity: 0.55;
}

/* Frequently Used pill (resources only) */
.bis-single-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bis-single-pill--star {
  background: rgba(255, 196, 0, 0.18);
  color: #FFD25A;
  border: 1px solid rgba(255, 196, 0, 0.45);
}

/* --- Body wrap -------------------------------------------- */
.bis-single-body-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Action row sits above body content (download CTA on resources/newsletter) */
.bis-single-actions {
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Download buttons — primary is filled, secondary is outline */
.bis-single-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 8px;
  background: #003C78;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid #003C78;
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.bis-single-download:hover,
.bis-single-download:focus-visible {
  background: #00264d;
  border-color: #00264d;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,60,120,0.25);
}

.bis-single-download--secondary {
  background: #fff;
  color: #003C78;
  border-color: #003C78;
}

.bis-single-download--secondary:hover,
.bis-single-download--secondary:focus-visible {
  background: #003C78;
  color: #fff;
}

/* Presentations: stacked download list */
.bis-single-downloads {
  margin: 0 0 36px;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.bis-single-downloads__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #003C78;
}

.bis-single-downloads__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bis-single-downloads__item {
  margin: 0;
}

.bis-single-downloads .bis-single-download {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.bis-single-download__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.bis-single-download__title {
  font-size: 15px;
  font-weight: 600;
}

.bis-single-download__meta {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Presentation video embed wrapper — responsive 16:9 */
.bis-single-video-wrap {
  margin: 0 0 36px;
}

.bis-single-video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.bis-single-video iframe,
.bis-single-video embed,
.bis-single-video object,
.bis-single-video video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* --- Body content ---------------------------------------- */
.bis-single-body.entry-content {
  font-size: 17px;
  line-height: 1.7;
  color: #1f2937;
}

.bis-single-body p {
  margin: 0 0 1.2em;
}

.bis-single-body h2 {
  margin: 1.8em 0 0.6em;
  font-size: 26px;
  font-weight: 700;
  color: #003C78;
  line-height: 1.25;
}

.bis-single-body h3 {
  margin: 1.6em 0 0.5em;
  font-size: 21px;
  font-weight: 700;
  color: #003C78;
  line-height: 1.3;
}

.bis-single-body a {
  color: #003C78;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bis-single-body a:hover,
.bis-single-body a:focus-visible {
  color: #00264d;
  text-decoration-thickness: 2px;
}

.bis-single-body ul,
.bis-single-body ol {
  margin: 0 0 1.2em 1.5em;
}

.bis-single-body li {
  margin-bottom: 0.4em;
}

.bis-single-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.bis-single-body blockquote {
  margin: 1.6em 0;
  padding: 16px 24px;
  border-left: 4px solid #003C78;
  background: #f8fafc;
  font-style: italic;
  color: #374151;
  border-radius: 0 8px 8px 0;
}

/* --- Save button override inside the hero (orange) ----------
   `BMP_Resources::get_save_button()` actually outputs
   `.bmp-resource-save-btn` (with `.bmp-save-resource-btn` or
   `.bmp-unsave-resource-btn` for the toggled state). The default rules
   are white-bg + WordPress admin blue, which clashes with the navy hero.
   Repaint to BIS accent orange and centre-align the label. */
.bis-single-hero__action .bmp-resource-save-btn,
.bis-single-hero__action .bmp-resource-save-btn.bmp-save-resource-btn,
.bis-single-hero__action .bmp-resource-save-btn.bmp-unsave-resource-btn {
  background-color: var(--bis-accent, #E67E22);
  color: #fff;
  border: 2px solid var(--bis-accent, #E67E22);
  justify-content: center;
  text-align: center;
}

.bis-single-hero__action .bmp-resource-save-btn:hover,
.bis-single-hero__action .bmp-resource-save-btn:focus-visible {
  background-color: var(--bis-accent-dark, #C76519);
  color: #fff;
  border-color: var(--bis-accent-dark, #C76519);
}

/* Inherit currentColor for the label so it always matches the white
   text — the base rule paints it blue. */
.bis-single-hero__action .bmp-resource-save-btn .bmp-save-btn-text {
  color: inherit;
}

/* Hide the heart dashicon inside the hero save button — the
   text-only label reads cleaner against the navy hero. */
.bis-single-hero__action .bmp-resource-save-btn .dashicons {
  display: none;
}

/* --- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  .bis-single-hero--has-image {
    min-height: 280px;
    padding: 72px 20px 40px;
  }

  .bis-single-hero--plain {
    padding: 64px 20px 36px;
  }

  .bis-single-hero__top {
    flex-direction: column;
    align-items: stretch;
  }

  .bis-single-hero__action {
    margin-top: 12px;
  }

  .bis-single-hero__action .bmp-resource-save-btn {
    width: 100%;
    justify-content: center;
  }

  .bis-single-body-wrap {
    padding: 36px 20px 60px;
  }

  .bis-single-body.entry-content {
    font-size: 16px;
  }

  .bis-single-body h2 {
    font-size: 22px;
  }

  .bis-single-body h3 {
    font-size: 19px;
  }

  .bis-single-downloads {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .bis-single-meta {
    font-size: 13px;
    gap: 6px;
  }

  .bis-single-meta__sep {
    display: none;
  }

  .bis-single-download {
    width: 100%;
    justify-content: center;
    font-size: 14px;
  }
}

/* =============================================================
   Related Presentations (single-presentation_for_dmf.php)
   ----------------------------------------------------------- */
.bis-single-related {
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.bis-single-related__header {
  margin: 0 0 24px;
}

.bis-single-related__eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bis-accent, #E67E22);
}

.bis-single-related__heading {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #003C78;
  line-height: 1.25;
}

.bis-single-related__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bis-single-related__item {
  margin: 0;
}

.bis-single-related__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bis-single-related__card:hover,
.bis-single-related__card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 60, 120, 0.12);
  border-color: #003C78;
  text-decoration: none;
  color: inherit;
}

.bis-single-related__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #003C78;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bis-single-related__media--placeholder {
  background-image: linear-gradient(135deg, #003C78 0%, #00264d 100%);
}

.bis-single-related__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(2px);
  transition: background 0.18s ease, transform 0.18s ease;
}

.bis-single-related__card:hover .bis-single-related__play,
.bis-single-related__card:focus-visible .bis-single-related__play {
  background: var(--bis-accent, #E67E22);
  transform: scale(1.06);
}

.bis-single-related__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bis-single-related__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #003C78;
}

.bis-single-related__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

@media (max-width: 900px) {
  .bis-single-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .bis-single-related {
    margin-top: 36px;
    padding-top: 24px;
  }
  .bis-single-related__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bis-single-related__heading {
    font-size: 22px;
  }
}
