/* ============================================================
   LUCIDSEAL DIGITAL TRUST INSIGHTS
   Clean, balanced styling – tuned for calm readability
   ============================================================ */

   body {
    font-family: "Inter", sans-serif;
    margin: 2rem auto;
    max-width: 960px;
    padding: 0 1rem;
    color: #0a1c2c;
    background: #f9fafb;
  }
  
  /* Typography */
  h1 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #0a1c2c;
  }
  
  h2, h3 {
    color: #0a1c2c;
  }
  
  .lead {
    color: #1e293b;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 760px;
  }
  
  /* Section layout rhythm */
  section {
    margin-bottom: 4rem;
  }
  section + section {
    margin-top: 2rem;
  }
  
  /* Filters */
  .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .filter-btn {
    border: 1px solid #00b7c2;
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    background: white;
    color: #00b7c2;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }
  
  .filter-btn.active {
    background: #00b7c2;
    color: white;
  }
  
  .filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  /* Search */
  #insights-search {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid #dce1e5;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }
  
  /* Headings & paragraphs */
  section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid #00b7c2;
    padding-bottom: 0.25rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    color: #0a1c2c;
    margin-top: 2rem;
  }
  
  section p {
    margin: 0.5rem 0 1.25rem;
    color: #475569;
  }
  
  /* Grid layout */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    padding: 1rem;
    border-radius: 8px;
  }
  
  /* Cards */
  .insight-card {
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
  }
  
  .insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  }
  
  .insight-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .insight-header h3 {
    font-size: 1.05rem;
    margin: 0;
    flex: 1;
  }
  
  .insight-header .new {
    font-size: 0.7rem;
    background: #00b7c2;
    color: white;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .insight-card p {
    color: #333;
    margin: 0.5rem 0 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
  }
  
  /* Buttons */
  .btn,
  .filter-btn,
  .prompt-tags button {
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background: #00b7c2;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
  }
  
  .btn:hover {
    background: #008c96;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  /* Suggestion dropdown */
}
.suggestion-box {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  z-index: 20;
  width: 100%;
}

  .suggestion-box div {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f2f4;
  }
  
  .suggestion-box div:last-child {
    border-bottom: none;
  }
  
  .suggestion-box div:hover {
    background: #f2f6f8;
  }
  
  .suggestion-header {
    display: flex;
    justify-content: space-between;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    color: #0a1c2c;
  }
  
  .suggestion-stage {
    font-size: 0.8rem;
    color: #64748b;
    font-style: italic;
  }
  
  .suggestion-desc {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 0.25rem;
    opacity: 0.85;
  }
  
  /* Empty / Loading States */
  .no-results,
  .state.loading {
    text-align: center;
    padding: 4rem 1rem;
    color: #334155;
    opacity: 0.8;
    background: #f9fafb;
    border-radius: 8px;
  }
  
  .no-results i,
  .state.loading i {
    width: 48px;
    height: 48px;
    color: #00b7c2;
    margin-bottom: 1rem;
  }
  
  .state.loading i {
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  .no-results h3 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  .no-results p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Fade-in animation */
  .no-results {
    animation: fadeIn 0.3s ease-in;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 0.8; transform: translateY(0); }
  }
  
  /* Hero */
  .hero.alt {
    background: linear-gradient(135deg, #f0fafa, #ffffff 50%);
    padding: 4rem 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
  }
  
  /* Prompt tags */
  .prompt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 0 1.5rem;
  }
  
  .prompt-tags button {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: .4rem .9rem;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s ease-in-out;
  }
  
  .prompt-tags button:hover {
    background: #00b7c2;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  
  /* Featured */
  .featured {
    background: #ecfeff;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px #bae6fd;
    padding: 3rem 1rem;
  }
  
  .scroll-row {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
  }
  
  .scroll-row::-webkit-scrollbar { display: none; }
  
  /* CTA */
  .cta {
    padding: 3rem 1rem;
    text-align: center;
    background: #f9fafb;
  }
  
  .cta h3 {
    margin-bottom: .5rem;
  }
  
  .cta a {
    color: #00b7c2;
    font-weight: 500;
  }
  
  /* Responsive */
  @media (max-width: 640px) {
    body {
      margin: 1rem auto;
      padding: 0 .5rem;
    }
  
    h1 { font-size: 1.6rem; }
    section h2 { font-size: 1.2rem; }
  
    .grid {
      grid-template-columns: 1fr;
    }
  
    .prompt-tags {
      flex-direction: column;
    }
  
    .filters {
      justify-content: flex-start;
    }
  }
  .accordion {
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
  }
  
  .accordion.open {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  
  .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .accordion-header:hover {
    background: #e2e8f0;
  }
  
  .accordion-header h2 {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    padding: 0;
  }
  
  .accordion-toggle {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .accordion.open .accordion-toggle {
    transform: rotate(180deg);
  }
  
  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1rem;
  }
  
  .how-to-use {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    margin: 3rem 0;
  }
  
  .how-to-use h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    border: none;
    margin-bottom: 1rem;
  }
  
  .how-to-use p.lead {
    color: #1e293b;
    margin-bottom: 1.5rem;
  }
  
  .how-to-use .steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
  }
  
  .how-to-use .steps li {
    margin: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #334155;
    line-height: 1.5;
  }
  
  .how-to-use .steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    background: #00b7c2;
    color: white;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero.alt .small-intro {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
  }
  .hero.alt .lead strong {
    color: #00b7c2;
    font-weight: 600;
  }
  .search-bar {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .clear-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s ease;
  }
  
  .clear-btn:hover {
    color: #00b7c2;
  }
  
  #insights-search {
    width: 100%;
    padding: 0.6rem 2.2rem 0.6rem 0.9rem;
    border: 1px solid #dce1e5;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }
  
  .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f1f5f9;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  
  .accordion-header:hover {
    background: #e2e8f0;
  }
  
  .accordion-heading {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .accordion-heading h2 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    padding: 0;
  }
  
  .accordion-sub {
    color: #475569;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    max-width: 80%;
  }
  .article-page {
    margin-top: 3rem;
    margin-bottom: 4rem;
    font-family: "Inter", sans-serif;
    color: #0a1c2c;
  }
  
  /* --- Article Header --- */
.article-header {
  text-align: center;
  margin: 3rem auto 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color, #e5e7eb);
  max-width: 800px;
}

.article-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-strong, #111);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-header h1 i[data-lucide] {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent, #00b7c2);
}

.article-header .meta {
  color: var(--text-muted, #666);
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0.25rem 0;
}

.article-header .meta:not(:last-child)::after {
  content: "•";
  color: #ccc;
  margin: 0 0.5rem;
}

.article-header .meta#readtime {
  display: inline-block;
  color: var(--accent, #00b7c2);
  font-weight: 500;
}

.article-header + article.prose {
  margin-top: 2rem;
}

/* Subtle background option for distinction */
.article-page {
  background: var(--bg-alt, #fafafa);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Breadcrumb polish */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted, #666);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--accent, #00b7c2);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .divider {
  margin: 0 0.25rem;
  color: #bbb;
}

  
  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #00b7c2;
    text-decoration: none;
    margin-bottom: 1rem;
  }
  .back-link:hover { text-decoration: underline; }
  
  .prose {
    margin-top: 2rem;
    line-height: 1.7;
  }
  .prose h2, .prose h3 {
    margin-top: 2rem;
    font-family: "Space Grotesk", sans-serif;
  }
  .prose a {
    color: #00b7c2;
    text-decoration: underline;
  }
  .prose code {
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
  }
  
  .nav-links {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e4e7eb;
    margin-top: 3rem;
    padding-top: 1rem;
  }
  .nav-links a {
    color: #00b7c2;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }
  .nav-links a:hover { text-decoration: underline; }
  .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 1.25rem;
    gap: 0.25rem;
  }
  
  .breadcrumb a {
    color: #00b7c2;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .breadcrumb a:hover {
    text-decoration: underline;
  }
  
  .breadcrumb .divider {
    color: #94a3b8;
  }
  
  #breadcrumb-title {
    font-weight: 500;
    color: #334155;
  }
  .results-summary {
    text-align: right;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 1rem;
    opacity: 0.85;
    animation: fadeIn 0.3s ease-in;
  }
  
  .results-summary::before {
    content: "📊 ";
    font-size: 1rem;
    opacity: 0.8;
  }
  .suggestion-header strong {
    color: #0a1c2c;
  }
  .suggestion-desc {
    color: #475569;
    font-size: 0.85rem;
  }
  .related-box {
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .related-box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .related-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .related-list li {
    margin: 0.4rem 0;
  }
  
  .related-list a {
    color: #00b7c2;
    text-decoration: none;
    font-weight: 500;
  }
  .related-list a:hover {
    text-decoration: underline;
  }
  
  .related-insights {
    margin-top: 3rem;
  }
  .related-insights h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  .related-insights .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }
  
  .related-group {
    margin-bottom: 1.25rem;
  }
  
  .related-group h4 {
    font-size: 0.95rem;
    color: #0a1c2c;
    font-weight: 600;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.25rem;
  }
  
  .related-group ul {
    margin: 0.4rem 0 0 0;
    padding-left: 1rem;
  }
  /* --- Focus & Meta Pills --- */
.article-focus {
  margin-top: 0.75rem;
  text-align: center;
}

.pill {
  display: inline-block;
  background: var(--accent-bg, #007b84);
  color: var(--accent-text, #fff);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin: 0.25rem 0.25rem;
  transition: background 0.2s ease;
}

.pill:hover {
  background: var(--accent, #00b7c2);
  color: #fff;
}
.badge.beta {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-left: 0.25rem;
}
.breadcrumb {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--ink-faint);
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumb .divider {
  margin: 0 0.25rem;
  opacity: 0.6;
}
.badge.beta {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.notice-bar {
  background: var(--accent-faint);
  padding: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
}