.resource-content {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #1f2937;
}
.resource-content * {
  font-family: 'Inter', sans-serif !important;
}
.resource-content h1,
.resource-content h2,
.resource-content h3,
.resource-content h4 {
  color: #111827;
  line-height: 1.3;
  margin-top: 1.3em;
  margin-bottom: 0.5em;
}
.resource-content p,
.resource-content ul,
.resource-content ol {
  margin-bottom: 1em;
}
.resource-content ul,
.resource-content ol {
  padding-left: 1.25em;
}
.resource-content ul {
  list-style: disc;
}
.resource-content ol {
  list-style: decimal;
}
.resource-content li {
  margin-bottom: 0.35em;
}
.resource-content img,
.resource-content video,
.resource-content iframe {
  max-width: 100%;
  border-radius: 0.9rem;
  margin: 1rem 0;
}
.resource-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  display: table;
  table-layout: auto;
  overflow: visible;
  background: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 0.85rem;
  box-shadow: 0 10px 24px -18px rgba(127, 29, 29, 0.45);
}
.resource-content table th,
.resource-content table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #fee2e2;
  text-align: left;
  vertical-align: top;
  min-width: 0;
  background-clip: padding-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.resource-content table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fef2f2;
  border-bottom: 1px solid #fecaca;
}
.resource-content table tbody tr:nth-child(even) td {
  background: #fef2f2;
}
.resource-content table tbody tr:hover td {
  background: #fee2e2;
}
.resource-content table tr:last-child td {
  border-bottom: none;
}
.resource-content table caption {
  caption-side: bottom;
  padding-top: 0.75rem;
  font-size: 0.9rem;
  color: #6b7280;
}
.resource-content blockquote {
  border-left: 4px solid #ef4444;
  padding-left: 1rem;
  color: #4b5563;
}
.resource-content a {
  color: #ef4444;
  text-decoration: underline;
}
.resource-content a:hover {
  color: #dc2626;
}
.resource-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.resource-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-margin-top: 7rem;
}
.resource-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.resource-section-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.2;
  color: #111827;
}
.resource-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}
.resource-table-wrap table {
  margin: 0;
}
.resource-infographic-shell {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.resource-infographic-track {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 0;
}
.resource-infographic-track-desktop {
  display: flex;
}
.resource-infographic-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.resource-empty-state {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #4b5563;
}
.resource-section-nav {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(280px, calc(100vw - 2rem));
  padding: 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
  max-height: min(55vh, 420px);
  overflow-y: auto;
}
.resource-section-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fff;
  color: #111827;
  padding: 0.6rem 0.7rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.resource-section-nav-link:hover {
  border-color: #fca5a5;
  background: #fff5f5;
}
.resource-section-nav-link.is-active {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}
.resource-section-nav-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.resource-section-nav-link.is-active .resource-section-nav-index {
  background: #ef4444;
  color: #fff;
}
.resource-section-nav-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 600;
}

@media (max-width: 1023px) {
  .resource-section-nav {
    left: max(0.75rem, env(safe-area-inset-left, 0px) + 0.75rem);
    right: max(0.75rem, env(safe-area-inset-right, 0px) + 0.75rem);
    width: auto;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 1.5rem);
  }
}

@media (max-width: 767px) {
  .resource-infographic-track-desktop,
  .resource-infographic-track-tablet {
    display: none;
  }

  .resource-infographic-track-mobile {
    display: flex;
  }

  .resource-content {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .resource-content h1,
  .resource-content h2,
  .resource-content h3,
  .resource-content h4 {
    line-height: 1.25;
  }

  .resource-content table {
    display: table;
  }

  .resource-content table th,
  .resource-content table td {
    min-width: 140px;
    white-space: normal;
  }

  .resource-section-nav {
    padding: 0.55rem;
    gap: 0.4rem;
  }

  .resource-section-nav-link {
    padding: 0.55rem 0.6rem;
  }

  .resource-section-nav-text {
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .resource-infographic-track-desktop,
  .resource-infographic-track-mobile {
    display: none;
  }

  .resource-infographic-track-tablet {
    display: flex;
  }
}
