/*-----------------------------------------------
  NATUS & PERSYST INSTRUCTIONS STYLING
-----------------------------------------------*/
.natus-container {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 2rem;
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition: padding 0.3s ease, margin 0.3s ease;
}






#natus-persyst h2.section-header {
  font-size: 1.6rem;
  text-align: left;
  border-bottom: none;
  max-width: 800px;
  margin: 1.5rem auto 0.75rem;
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: -0.01em;
}

#natus-persyst h2.section-header:first-of-type {
  margin-top: 0.5rem;
}

.natus-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: gap 0.3s ease;
}

.natus-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.natus-step:hover {
  transform: none;
  box-shadow: none;
}

.natus-step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--action-bg);
  color: var(--action-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  transition: width 0.3s ease, height 0.3s ease, font-size 0.3s ease;
}

.natus-step-content {
  flex: 1;
}

.natus-step-content h3 {
  margin-top: 0;
  font-size: 1.4rem;
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
  transition: font-size 0.3s ease, margin 0.3s ease;
}

.natus-step-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  transition: font-size 0.3s ease, margin 0.3s ease, line-height 0.3s ease;
}

.natus-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: var(--radius-md);
  box-shadow: none;
  transition: margin 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
}

/* Special styling for the inline layout in step 1 */
#natus-tab .natus-step:first-of-type .natus-step-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: gap 0.3s ease;
}

#natus-tab .natus-step:first-of-type .natus-step-content .step1-text-container {
  flex: 1;
}

#natus-tab .step1-image {
  max-width: 40%;
  height: auto;
  align-self: center;
  margin-top: 0;
  transition: max-width 0.3s ease;
  max-height: 300px;
  object-fit: contain;
}

/* Dark mode overrides */
body.dark .natus-container {
  background: var(--surface-1);
}

body.dark .natus-step {
  background: var(--surface-2);
}

body.dark #natus-persyst h2.section-header,
body.dark .natus-step-content h3 {
  color: var(--text-color);
}

body.dark .natus-step-content p {
  color: var(--text-secondary);
}

/* Enhanced Responsive styles */
/* Medium screens */
@media (max-width: 992px) {

  
  .natus-container {
    margin: 1.75rem auto;
    padding: 1.75rem;
  }
  
  #natus-persyst h2.section-header {
    font-size: 1.45rem !important;
    margin: 1.25rem auto 0.5rem !important;
  }
  #natus-persyst h2.section-header:first-of-type {
    margin-top: 0.5rem !important;
  }
  
  .natus-steps {
    gap: 1.75rem;
  }
  
  .natus-step {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  
  .natus-step-content h3 {
    font-size: 1.3rem;
  }
}

/* Tablets and small laptops */
@media (max-width: 768px) {


  .natus-container {
    margin: 1.25rem auto;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }
  
  #natus-persyst h2.section-header {
    font-size: 1.3rem !important;
    margin: 1.25rem auto 0.5rem !important;
  }
  #natus-persyst h2.section-header:first-of-type {
    margin-top: 0.5rem !important;
  }
  
  .natus-steps {
    gap: 1.5rem;
  }
  
  .natus-step {
    padding: 1rem;
    gap: 1rem;
    border-radius: var(--radius-md);
  }
  
  .natus-step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .natus-step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  
  .natus-step-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }
  
  .natus-image {
    border-radius: var(--radius-md);
    margin-top: 0.8rem;
    box-shadow: none;
  }
  
  #natus-tab .natus-step:first-of-type .natus-step-content {
    flex-direction: column;
    gap: 12px;
  }
  
  #natus-tab .step1-image {
    max-width: 100% !important;
    height: auto !important;
    margin-top: 0.8rem;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/* Mobile devices */
@media (max-width: 480px) {

  
  .natus-container {
    margin: 1rem auto;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: none;
  }
  
  #natus-persyst h2.section-header {
    font-size: 1.15rem !important;
    margin: 1rem auto 0.4rem !important;
  }
  #natus-persyst h2.section-header:first-of-type {
    margin-top: 0.4rem !important;
  }
  
  .natus-steps {
    gap: 1.2rem;
  }
  
  .natus-step {
    padding: 0.9rem;
    gap: 0.8rem;
    border-radius: var(--radius-md);
  }
  
  .natus-step-number {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  
  .natus-step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .natus-step-content p {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }
  
  .natus-image {
    border-radius: var(--radius-md);
    margin-top: 0.7rem;
    box-shadow: none;
  }
  
  #natus-tab .step1-image {
    max-width: 100% !important;
    height: auto !important;
    margin-top: 0.7rem;
    object-fit: contain !important;
    max-height: none !important;
  }
}

/* Very small mobile devices */
@media (max-width: 360px) {

  
  .natus-container {
    margin: 0.8rem auto;
    padding: 1rem;
    border-radius: var(--radius-md);
  }
  
  #natus-persyst h2.section-header {
    font-size: 1.1rem !important;
    margin: 0.8rem auto 0.4rem !important;
  }
  #natus-persyst h2.section-header:first-of-type {
    margin-top: 0.4rem !important;
  }
  
  .natus-steps {
    gap: 1rem;
  }
  
  .natus-step {
    padding: 0.8rem;
    gap: 0.6rem;
    border-radius: var(--radius-md);
  }
  
  .natus-step-number {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
  
  .natus-step-content h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  
  .natus-step-content p {
    font-size: 0.8rem;
    line-height: 1.25;
    margin-bottom: 0.6rem;
  }
  
  .natus-image {
    border-radius: var(--radius-sm);
    margin-top: 0.6rem;
    box-shadow: none;
  }
  
  #natus-tab .step1-image {
    max-width: 100% !important;
    height: auto !important;
    margin-top: 0.6rem;
    object-fit: contain !important;
    max-height: 150px !important; /* Even smaller for very small devices */
  }
}

/*-----------------------------------------------
  EPIC Smartphrase table + copy buttons
  (mirrors the epilepsy-rotation styles, scoped to this page)
----------------------------------------------- */
.page-natus_instructions .phrase-table {
  margin-top: 0.75rem;
}

.page-natus_instructions .phrase-table tbody td:first-child {
  min-width: 12rem;
}

.page-natus_instructions .copy-button {
  appearance: none;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: var(--radius-sm);
  color: var(--accent-color);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 0.45rem;
  padding: 0.25rem 0.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-natus_instructions .copy-button:hover,
.page-natus_instructions .copy-button:focus-visible {
  background: rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.45);
}

/* Stack the calibrate screenshots neatly */
.natus-step-content .natus-image {
  margin-right: 0.5rem;
}
/* Keep workstation screenshots complete and provide readable text on small screens. */
.page-natus_instructions .natus-step-content { min-width: 0; }
.page-natus_instructions .natus-step { transform: none; }
.page-natus_instructions .natus-step-content p { line-height: 1.55; }
.page-natus_instructions .natus-image { object-fit: contain; }
.page-natus_instructions .natus-container { margin-bottom: 2rem; padding: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 480px) {
  .page-natus_instructions .natus-step-content p { font-size: .95rem; }
}

.page-natus_instructions .phrase-table { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
