/* CleaningHQ — Technical Article & Protocol Stylesheet
   Fully dual-theme (Light & Dark), WCAG AA contrast compliant, high-trust clinical design.
*/

/* ==========================================================================
   1. Article Header & Hero Block
   ========================================================================== */
.article-header {
  position: relative;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  overflow: hidden;
  transition: background var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .article-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.article-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.article-breadcrumb a:hover {
  color: var(--accent-teal);
}
[data-theme="dark"] .article-breadcrumb a:hover {
  color: var(--accent-lime);
}
.breadcrumb-separator {
  color: var(--border-medium);
}

.article-title-block {
  max-width: 960px;
}
.article-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.protocol-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}
[data-theme="dark"] .protocol-badge {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
}

.hazard-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-sm);
}

.article-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.14;
  margin-bottom: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.article-deck {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}
[data-theme="dark"] .article-deck {
  color: #cbd5e1;
}

/* Featured Header Media */
.article-featured-media {
  margin: 2.5rem 0 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
  position: relative;
}
.article-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.article-photo-caption {
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* E-E-A-T Author & Reviewer Metadata Card */
.eeat-meta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.35rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
}
.author-info {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}
.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-main);
  font-size: 1.1rem;
}
.author-details-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.verified-icon {
  color: var(--safe-emerald);
  font-size: 0.9rem;
}
.author-credentials {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.article-review-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-teal);
  font-weight: 700;
}
[data-theme="dark"] .review-badge {
  color: var(--accent-lime);
}

/* Field Action Toolbar */
.article-action-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.btn-field-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: var(--shadow-card);
}
.btn-field-action:hover {
  background: var(--accent-lime-tint);
  border-color: var(--safe-emerald);
  color: var(--text-main);
}

/* ==========================================================================
   2. Main Layout Grid & Sidebar
   ========================================================================== */
.article-body-wrapper {
  padding: 3.5rem 0 5.5rem;
}
.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
  min-width: 0;
}
.article-sidebar {
  min-width: 0;
}
.article-content {
  min-width: 0;
}
.article-main-col {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

/* Sticky Table of Contents */
.article-sidebar {
  position: sticky;
  top: 116px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}
.article-sidebar::-webkit-scrollbar {
  width: 4px;
}
.article-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
}
.toc-title {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
}
.toc-link {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  display: block;
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.toc-link:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
}
.toc-link.active {
  color: var(--text-main);
  font-weight: 700;
  border-left-color: var(--safe-emerald);
  background: var(--bg-elevated);
}
[data-theme="dark"] .toc-link.active {
  color: var(--text-main);
  font-weight: 700;
  border-left-color: var(--safe-emerald);
  background: var(--bg-elevated);
}

.sidebar-cta-card {
  margin-top: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.sidebar-cta-title {
  font-size: 0.96rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.sidebar-cta-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

/* ==========================================================================
   3. Article Content Typography (High Contrast in Light & Dark)
   ========================================================================== */
.article-content {
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--text-muted);
}
[data-theme="dark"] .article-content {
  color: #cbd5e1;
}

.article-content p {
  margin-bottom: 1.65rem;
  color: inherit;
}
.article-content strong,
.article-content b {
  color: var(--text-main);
  font-weight: 700;
}
[data-theme="dark"] .article-content strong,
[data-theme="dark"] .article-content b {
  color: #f8fafc;
}

.article-content a {
  color: var(--accent-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color var(--transition-fast);
}
.article-content a:hover {
  color: var(--accent-teal-deep);
}
[data-theme="dark"] .article-content a {
  color: #5eead4;
}
[data-theme="dark"] .article-content a:hover {
  color: var(--accent-lime);
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-top: 3.25rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  scroll-margin-top: 100px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
[data-theme="dark"] .article-content h2 {
  color: #f8fafc;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.48rem;
  font-weight: 700;
  margin-top: 2.35rem;
  margin-bottom: 1rem;
  scroll-margin-top: 100px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}
[data-theme="dark"] .article-content h3 {
  color: #f8fafc;
}

.article-content h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.article-content ul, 
.article-content ol {
  margin-bottom: 1.85rem;
  padding-left: 1.85rem;
  color: inherit;
}
.article-content li {
  margin-bottom: 0.55rem;
  line-height: 1.7;
}

/* ==========================================================================
   4. Key Protocol Takeaways Box
   ========================================================================== */
.takeaways-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--safe-emerald);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.75rem 2rem;
  margin-bottom: 2.75rem;
  box-shadow: var(--shadow-card);
}
[data-theme="dark"] .takeaways-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--safe-emerald);
  box-shadow: none;
}

.takeaways-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #15803d;
  margin-bottom: 1.2rem;
}
[data-theme="dark"] .takeaways-header {
  color: var(--accent-lime);
}

.takeaways-list {
  list-style: none !important;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 0 !important;
}
.takeaways-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.98rem;
  color: #1e293b;
  margin-bottom: 0;
  line-height: 1.65;
}
[data-theme="dark"] .takeaways-list li {
  color: #e2e8f0;
}
.takeaways-list strong {
  color: #0f172a;
}
[data-theme="dark"] .takeaways-list strong {
  color: #ffffff;
}

.takeaways-check {
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 0.2rem;
  font-weight: 800;
}
[data-theme="dark"] .takeaways-check {
  color: var(--safe-emerald);
}

/* ==========================================================================
   5. Regulatory OSHA / EPA Alert Callouts
   ========================================================================== */
.reg-alert {
  border-radius: var(--radius-md);
  padding: 1.65rem 1.85rem;
  margin: 2.25rem 0;
  border: 1px solid var(--border-medium);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.reg-alert p,
.reg-alert li {
  margin-bottom: 0.85rem;
  line-height: 1.65;
}
.reg-alert p:last-child {
  margin-bottom: 0;
}

/* Danger Alert */
.reg-alert.danger {
  border-left-color: #dc2626;
  background: #fef2f2;
  border-right: 1px solid #fecaca;
  border-top: 1px solid #fecaca;
  border-bottom: 1px solid #fecaca;
}
.reg-alert.danger .reg-alert-title { 
  color: #b91c1c; 
  font-weight: 800;
}
.reg-alert.danger p, 
.reg-alert.danger li { 
  color: #334155; 
}
.reg-alert.danger strong { 
  color: #0f172a; 
}

[data-theme="dark"] .reg-alert.danger {
  background: rgba(220, 38, 38, 0.12);
  border-left-color: #ef4444;
  border-right: 1px solid rgba(239, 68, 68, 0.3);
  border-top: 1px solid rgba(239, 68, 68, 0.3);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}
[data-theme="dark"] .reg-alert.danger .reg-alert-title { 
  color: #f87171; 
}
[data-theme="dark"] .reg-alert.danger p, 
[data-theme="dark"] .reg-alert.danger li { 
  color: #e2e8f0; 
}
[data-theme="dark"] .reg-alert.danger strong { 
  color: #ffffff; 
}

/* Warning Alert */
.reg-alert.warning {
  border-left-color: #d97706;
  background: #fffbeb;
  border-right: 1px solid #fde68a;
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
}
.reg-alert.warning .reg-alert-title { 
  color: #b45309; 
  font-weight: 800;
}
.reg-alert.warning p, 
.reg-alert.warning li { 
  color: #334155; 
}
.reg-alert.warning strong { 
  color: #0f172a; 
}

[data-theme="dark"] .reg-alert.warning {
  background: rgba(217, 119, 6, 0.12);
  border-left-color: #f59e0b;
  border-right: 1px solid rgba(245, 158, 11, 0.3);
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}
[data-theme="dark"] .reg-alert.warning .reg-alert-title { 
  color: #fbbf24; 
}
[data-theme="dark"] .reg-alert.warning p, 
[data-theme="dark"] .reg-alert.warning li { 
  color: #e2e8f0; 
}
[data-theme="dark"] .reg-alert.warning strong { 
  color: #ffffff; 
}

/* Info Alert */
.reg-alert.info {
  border-left-color: #16a34a;
  background: #f0fdf4;
  border-right: 1px solid #bbf7d0;
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
}
.reg-alert.info .reg-alert-title { 
  color: #15803d; 
  font-weight: 800;
}
.reg-alert.info p, 
.reg-alert.info li { 
  color: #334155; 
}
.reg-alert.info strong { 
  color: #0f172a; 
}

[data-theme="dark"] .reg-alert.info {
  background: rgba(22, 163, 74, 0.12);
  border-left-color: #22c55e;
  border-right: 1px solid rgba(34, 197, 94, 0.3);
  border-top: 1px solid rgba(34, 197, 94, 0.3);
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
}
[data-theme="dark"] .reg-alert.info .reg-alert-title { 
  color: #4ade80; 
}
[data-theme="dark"] .reg-alert.info p, 
[data-theme="dark"] .reg-alert.info li { 
  color: #e2e8f0; 
}
[data-theme="dark"] .reg-alert.info strong { 
  color: #ffffff; 
}

.reg-alert-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.reg-code-ref {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
}

/* ==========================================================================
   6. Interactive Checklist (Clean Light & High-Contrast Dark)
   ========================================================================== */
.interactive-checklist-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.75rem 0;
  box-shadow: var(--shadow-card);
}
[data-theme="dark"] .interactive-checklist-box {
  background: #111827;
  border-color: var(--border-medium);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.checklist-title {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
}
.checklist-progress-pill {
  font-size: 0.76rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  color: var(--safe-emerald);
}
[data-theme="dark"] .checklist-progress-pill {
  background: var(--bg-elevated);
  border-color: var(--border-medium);
  color: var(--safe-emerald);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 0.95rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.checklist-item:hover {
  border-color: var(--safe-emerald);
  background: var(--bg-card);
}
[data-theme="dark"] .checklist-item {
  background: #162032;
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .checklist-item:hover {
  background: #1c2b42;
  border-color: var(--safe-emerald);
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--safe-emerald);
  margin-top: 0.25rem;
  cursor: pointer;
}
.checklist-item.checked {
  background: var(--bg-elevated);
  border-color: var(--border-medium);
}
[data-theme="dark"] .checklist-item.checked {
  background: var(--bg-elevated);
  border-color: var(--border-medium);
}
.checklist-item.checked .checklist-item-text {
  text-decoration: line-through;
  color: var(--text-dim);
}
.checklist-item-body {
  flex: 1;
}
.checklist-item-text {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.checklist-item-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}
[data-theme="dark"] .checklist-item-sub {
  color: #94a3b8;
}

/* ==========================================================================
   7. Comparison / Cost Tables
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2.25rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  background: var(--bg-card);
}
.clean-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
  background: var(--bg-card);
}
.clean-table th {
  background: var(--bg-elevated);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  padding: 1rem 1.35rem;
  border-bottom: 2px solid var(--border-medium);
  white-space: nowrap;
}
[data-theme="dark"] .clean-table th {
  background: #1e293b;
  color: #f8fafc;
}

.clean-table td {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
[data-theme="dark"] .clean-table td {
  color: #cbd5e1;
}

.clean-table tr:hover td {
  background: var(--bg-card-hover);
}
[data-theme="dark"] .clean-table tr:hover td {
  background: #172235;
}

.clean-table .highlight-col {
  color: var(--accent-teal);
  font-weight: 700;
  font-family: var(--font-mono);
}
[data-theme="dark"] .clean-table .highlight-col {
  color: var(--accent-lime);
}

/* ==========================================================================
   8. FAQ Accordion Component
   ========================================================================== */
.faq-section-block {
  margin: 4rem 0;
}
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 1.75rem;
}
.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast);
}
.faq-card.open {
  border-color: var(--safe-emerald);
}
.faq-question-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.35rem;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.faq-question-btn:hover {
  color: var(--accent-teal);
}
[data-theme="dark"] .faq-question-btn:hover {
  color: var(--accent-lime);
}

.faq-icon-toggle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: transform var(--transition-normal);
}
.faq-card.open .faq-icon-toggle {
  transform: rotate(180deg);
  background: var(--accent-lime);
  color: #111827;
}
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1.35rem;
}
.faq-answer > * {
  overflow: hidden;
}
.faq-card.open .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: 1.35rem;
}
.faq-answer-inner {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.1rem;
}
[data-theme="dark"] .faq-answer-inner {
  color: #cbd5e1;
}

/* ==========================================================================
   9. Regulatory Citation Blocks
   ========================================================================== */
.reg-citation-footer {
  margin-top: 4rem;
  padding: 1.85rem 2rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px dashed var(--border-medium);
  font-size: 0.86rem;
  color: var(--text-muted);
}
.reg-citation-title {
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.reg-citation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
}
.reg-citation-list li {
  line-height: 1.55;
  color: var(--text-muted);
}
[data-theme="dark"] .reg-citation-list li {
  color: #cbd5e1;
}

/* ==========================================================================
   10. Reading Progress Bar & Media Queries
   ========================================================================== */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--safe-emerald), var(--accent-teal));
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.4);
  z-index: 9999;
  transform-origin: left;
}

@supports (animation-timeline: scroll()) {
  .reading-progress-bar {
    width: 100%;
    transform: scaleX(0);
    animation: grow-progress auto linear;
    animation-timeline: scroll();
  }
  @keyframes grow-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

@media (max-width: 992px) {
  .article-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 2rem;
  }
  .article-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  .article-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .toc-box,
  .sidebar-cta-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .sidebar-cta-card .btn,
  .sidebar-cta-card button,
  .sidebar-cta-card a {
    white-space: normal;
    word-break: break-word;
    height: auto;
    min-height: 44px;
    line-height: 1.35;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .article-body-wrapper {
    padding: 1.75rem 0 3.5rem;
  }
  .toc-box,
  .sidebar-cta-card {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-md);
  }
}

/* Field Deployment Sign-off Block */
.field-signoff-sheet {
  display: none;
}

/* ==========================================================================
   11. Print Stylesheet
   ========================================================================== */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: #0f172a !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
    background: #ffffff !important;
    color: #0f172a !important;
  }

  .emergency-topbar,
  .site-header,
  .reading-progress-bar,
  .article-sidebar,
  .site-footer,
  .article-action-toolbar,
  .search-modal,
  .btn,
  .back-to-top,
  .mobile-toggle {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .article-layout {
    display: block !important;
  }

  .article-content {
    width: 100% !important;
  }

  .article-header {
    border-bottom: 2pt solid #0f172a;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }

  .article-main-title {
    font-size: 20pt !important;
    color: #000000 !important;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .article-deck {
    font-size: 11pt !important;
    color: #334155 !important;
  }

  .protocol-badge, .hazard-tag {
    border: 1pt solid #000000 !important;
    color: #000000 !important;
    font-size: 8pt !important;
    padding: 2pt 6pt !important;
  }

  .article-featured-media img {
    max-height: 220px !important;
    object-fit: cover;
    filter: grayscale(100%);
    border: 1pt solid #cbd5e1;
  }

  .table-container,
  .table-responsive {
    border: 1pt solid #000000 !important;
    margin: 1rem 0 !important;
    page-break-inside: avoid;
  }

  .clean-table,
  .tech-table {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  .clean-table th,
  .tech-table th {
    background: #f1f5f9 !important;
    color: #000000 !important;
    border-bottom: 1.5pt solid #000000 !important;
    padding: 6pt !important;
    font-size: 9pt !important;
  }

  .clean-table td,
  .tech-table td {
    border-bottom: 0.5pt solid #cbd5e1 !important;
    padding: 5pt 6pt !important;
    font-size: 8.5pt !important;
  }

  .reg-alert {
    border: 1.5pt solid #000000 !important;
    border-left: 4pt solid #000000 !important;
    background: #f8fafc !important;
    padding: 8pt 10pt !important;
    margin: 1rem 0 !important;
    page-break-inside: avoid;
  }

  .interactive-checklist-box {
    border: 1.5pt solid #000000 !important;
    background: #ffffff !important;
    padding: 10pt !important;
    margin: 1rem 0 !important;
    page-break-inside: avoid;
  }

  .checklist-item {
    border: 0.5pt solid #cbd5e1 !important;
    background: #ffffff !important;
    padding: 6pt !important;
    page-break-inside: avoid;
  }

  .checklist-item input[type="checkbox"] {
    display: inline-block !important;
    width: 14pt !important;
    height: 14pt !important;
    border: 1pt solid #000000 !important;
  }

  .checklist-item-text {
    color: #000000 !important;
    font-size: 9.5pt !important;
  }

  .checklist-item-sub {
    font-size: 8pt !important;
    color: #475569 !important;
  }

  .field-signoff-sheet {
    display: block !important;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 2pt solid #0f172a;
    page-break-inside: avoid;
  }

  .field-signoff-header {
    font-weight: 800;
    font-size: 11pt;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1pt solid #0f172a;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
  }

  .field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 9pt;
  }

  .field-row {
    border-bottom: 1pt dashed #94a3b8;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
  }

  .field-row strong {
    color: #0f172a !important;
  }
}

/* ==========================================================================
   Article Cinematic Hero with Image & Scrim Overlay
   ========================================================================== */
.article-hero-header {
  position: relative;
  padding: 4.25rem 0 3.25rem;
  border-bottom: 1px solid var(--border-medium);
  overflow: hidden;
  background-color: #0b0f17;
  color: #ffffff;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 15, 23, 0.78) 0%,
    rgba(11, 15, 23, 0.88) 50%,
    rgba(11, 15, 23, 0.98) 100%
  );
  z-index: 2;
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
}

.article-hero-header .article-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}
.article-hero-header .article-breadcrumb a:hover {
  color: var(--accent-lime);
}
.article-hero-header .article-breadcrumb span {
  color: rgba(255, 255, 255, 0.45);
}

.article-hero-header .article-main-title {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.article-hero-header .article-deck {
  color: #e2e8f0;
  max-width: 820px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.article-hero-header .eeat-meta-box {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.article-hero-header .eeat-meta-box .author-details-name {
  color: #ffffff;
}
.article-hero-header .eeat-meta-box .author-credentials {
  color: #94a3b8;
}
.article-hero-header .eeat-meta-box .article-review-status {
  color: #cbd5e1;
}


/* Safety Guardrails for All Article Content */
.article-content table {
  max-width: 100%;
}
.article-content pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
@media (max-width: 768px) {
  .article-content {
    font-size: 1.02rem;
    line-height: 1.72;
  }
  .article-hero-header {
    padding: 2.75rem 0 2rem;
  }
}
