/* Lotus365 Research Hub — Custom overrides */

/* Neutral global background for better readability */
body {
  background-color: #fafaf9; /* Tailwind stone-50 */
}

.site-container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.page-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

[data-hero-followup-note] {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

[data-hero-followup-note] .site-container {
  max-width: 80rem;
}

[data-hero-followup-note] .site-container > * {
  width: 100%;
}

.surface-card {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(5, 46, 22, 0.06);
}

.section-kicker {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #14532d;
}

/* Override lotus-900 text color to black */
.text-lotus-900 {
  color: #000000 !important;
}

.section-number {
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 1;
  font-weight: 900;
  color: rgba(22, 101, 52, 0.2);
  user-select: none;
}

.toc-link {
  display: inline-flex;
  align-items: center;
  border-radius: 0.75rem;
  border: 1px solid #bbf7d0;
  background: #ffffff;
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #14532d;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.page-jump-section {
  background: #f5f5f4;
  border-top: 1px solid rgba(187, 247, 208, 0.65);
  border-bottom: 1px solid rgba(187, 247, 208, 0.65);
}

.page-jump-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.page-jump-divider {
  flex: 1;
  height: 1px;
  background: rgba(187, 247, 208, 0.7);
}

.page-jump-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
}

.page-jump-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid #bbf7d0;
  background: #ffffff;
  padding: 0.85rem 1rem;
  color: #14532d;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.page-jump-link:hover {
  border-color: #166534;
  box-shadow: 0 12px 28px rgba(5, 46, 22, 0.08);
  transform: translateY(-1px);
}

.page-jump-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.7rem;
  background: #f5f5f4;
  color: #14532d;
  flex: none;
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.toc-link:hover {
  background: #f5f5f4;
  border-color: #166534;
  transform: translateY(-1px);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(187, 247, 208, 0.55);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 15rem;
  font-weight: 700;
  color: #14532d;
}

.content-prose p + p {
  margin-top: 1rem;
}

/* Keep visible bullets in content lists across pages. */
main ul:not(.list-none) {
  list-style: disc;
  padding-left: 1.25rem;
}

main ul:not(.list-none) li::marker {
  color: currentColor;
}

.legal-note {
  border-left: 4px solid #16a34a;
  background: #f5f5f4;
  padding: 1rem 1.25rem;
  border-radius: 0 1rem 1rem 0;
}

.related-links-grid {
  display: grid;
  gap: 1rem;
}

.related-link-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border-radius: 0.9rem;
  border: 1px solid #bbf7d0;
  background: #ffffff;
  padding: 1rem;
  text-decoration: none;
  color: #14532d;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.related-link-card:hover {
  transform: translateY(-2px);
  border-color: #166534;
  box-shadow: 0 12px 28px rgba(5, 46, 22, 0.08);
}

[data-image-shell] {
  position: relative;
  overflow: hidden;
}

.content-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}

.image-fallback {
  display: none;
}

@media (min-width: 640px) {
  .site-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .page-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  [data-hero-followup-note] {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .related-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  [data-hero-followup-note] .site-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2.5rem;
  }

  [data-hero-followup-note] .site-container > * {
    grid-column: 1 / span 3;
    max-width: none;
  }
}

/* FAQ details marker removal */
details summary::-webkit-details-marker,
details summary::marker {
  display: none;
  content: "";
}

details summary {
  list-style: none;
}

/* Smooth FAQ open transition */
details[open] {
  border-color: #14532d; /* lotus-900 */
  background: #dcfce7; /* lotus-100 */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
