/* Comunidade nTask — CSS puro (convertido de Tailwind/Design System) */

:root {
  --background: oklch(0.99 0.003 264);
  --foreground: oklch(0.2 0.04 264);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0.04 264);
  --primary: oklch(0.413 0.246 264.1);
  --primary-foreground: oklch(0.99 0.003 264);
  --primary-glow: oklch(0.55 0.22 264);
  --muted: oklch(0.97 0.008 264);
  --muted-foreground: oklch(0.52 0.02 264);
  --accent: oklch(0.96 0.04 264);
  --accent-foreground: oklch(0.3 0.15 264);
  --border: oklch(0.93 0.01 264);
  --popover: #fff;

  --cat-processos: oklch(0.413 0.246 264.1);
  --cat-processos-soft: oklch(0.96 0.03 264);
  --cat-intimador: oklch(0.686 0.151 132.5);
  --cat-intimador-soft: oklch(0.96 0.05 132);
  --cat-financeiro: oklch(0.413 0.246 264.1);
  --cat-financeiro-soft: oklch(0.96 0.03 264);
  --cat-whatsapp: oklch(0.686 0.151 132.5);
  --cat-whatsapp-soft: oklch(0.96 0.05 132);

  --gradient-hero: linear-gradient(
    90deg,
    oklch(0.413 0.246 264.1) 0%,
    oklch(0.55 0.18 230) 45%,
    oklch(0.72 0.13 190) 100%
  );
  --gradient-soft: linear-gradient(180deg, oklch(0.98 0.012 264) 0%, oklch(0.99 0.003 264) 100%);

  --shadow-soft: 0 1px 3px oklch(0.2 0.04 264 / 0.05), 0 4px 12px oklch(0.2 0.04 264 / 0.035);
  --shadow-elevated: 0 10px 30px -12px oklch(0.413 0.246 264.1 / 0.22);
  --shadow-card-hover: 0 14px 40px -14px oklch(0.413 0.246 264.1 / 0.18);

  --radius: 0.75rem;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: oklch(0.55 0.22 274 / 0.2); color: var(--foreground); }

/* layout */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container, .container-sm { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container, .container-sm { padding: 0 2rem; } }

.min-h-screen { min-height: 100vh; }

/* ====== HEADER ====== */
.header {
  position: sticky; top: 0; z-index: 40;
  width: 100%;
  background: oklch(0.99 0.003 264 / 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.625rem; }
.brand img { width: 2.25rem; height: 2.25rem; }
.btn-support {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.5rem 1rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.875rem;
  transition: opacity var(--transition);
}
.btn-support:hover { opacity: 0.9; }
.btn-support svg { width: 1rem; height: 1rem; }

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--border);
  background: oklch(0.97 0.008 264 / 0.4);
}
.footer-inner {
  padding: 1.5rem 0;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem; color: var(--muted-foreground);
}
@media (min-width: 640px) { .footer-inner { flex-direction: row; align-items: center; } }

/* ====== HERO ====== */
.hero {
  position: relative; overflow: hidden;
  background: var(--background);
}
.hero-blob {
  position: absolute; pointer-events: none; border-radius: 9999px;
  filter: blur(60px);
}
.hero-blob.b1 {
  left: -8rem; top: -8rem; width: 28rem; height: 28rem; opacity: 0.6;
  background: radial-gradient(closest-side, oklch(0.413 0.246 264.1 / 0.20), transparent);
}
.hero-blob.b2 {
  right: -10rem; top: 5rem; width: 32rem; height: 32rem; opacity: 0.5;
  background: radial-gradient(closest-side, oklch(0.686 0.151 132.5 / 0.18), transparent);
}
.hero-blob.b3 {
  bottom: 0; left: 50%; transform: translateX(-50%);
  height: 18rem; width: 40rem; opacity: 0.4;
  background: radial-gradient(closest-side, oklch(0.5 0.2 220 / 0.16), transparent);
}
.hero-line {
  position: absolute; inset: auto 0 0 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent,
    oklch(0.413 0.246 264.1 / 0.22),
    oklch(0.686 0.151 132.5 / 0.22), transparent);
}
.hero-inner {
  position: relative; max-width: 64rem; margin: 0 auto;
  padding: 5rem 1rem; text-align: center;
}
@media (min-width: 640px) { .hero-inner { padding: 7rem 1.5rem; } }
@media (min-width: 1024px) { .hero-inner { padding: 8rem 2rem; } }
.hero h1 {
  margin: 0;
  font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p {
  margin: 1rem auto 0; max-width: 42rem;
  color: var(--muted-foreground); font-size: 1rem;
}
@media (min-width: 640px) { .hero p { font-size: 1.125rem; } }
.hero-search { max-width: 42rem; margin: 2rem auto 0; }
.hero-tags {
  margin-top: 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.5rem;
}
.hero-tags-label { font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); }
.hero-tag {
  border: 1px solid var(--border); background: var(--card);
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 500; color: oklch(0.2 0.04 264 / 0.8);
  box-shadow: var(--shadow-soft);
  transition: color var(--transition), border-color var(--transition);
}
.hero-tag:hover { color: var(--primary); border-color: oklch(0.413 0.246 264.1 / 0.3); }

/* ====== SEARCH BAR ====== */
.searchbar { position: relative; width: 100%; }
.searchbar-form {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1rem 1.25rem;
  box-shadow: var(--shadow-elevated);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.searchbar-form.size-md { padding: 0.625rem 1rem; }
.searchbar-form:focus-within { border-color: oklch(0.413 0.246 264.1 / 0.4); box-shadow: var(--shadow-card-hover); }
.searchbar-form svg.search-icon { width: 1.25rem; height: 1.25rem; color: var(--muted-foreground); flex-shrink: 0; }
.searchbar-form input {
  border: 0; outline: 0; background: transparent;
  flex: 1; font-size: 1rem; color: var(--foreground);
  font-family: inherit;
}
.searchbar-form input::placeholder { color: var(--muted-foreground); }
.searchbar-btn {
  display: none; align-items: center; gap: 0.375rem;
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.5rem 1rem; border-radius: 0.75rem;
  font-weight: 600; font-size: 0.875rem;
  transition: background var(--transition);
}
.searchbar-btn:hover { background: oklch(0.413 0.246 264.1 / 0.9); }
.searchbar-btn svg { width: 1rem; height: 1rem; }
@media (min-width: 640px) { .searchbar-btn { display: inline-flex; } }

.searchbar-results {
  position: absolute; left: 0; right: 0; top: 100%;
  margin-top: 0.5rem; z-index: 50;
  background: var(--popover); border: 1px solid var(--border);
  border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}
.searchbar-results .empty { padding: 1.5rem 1.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.searchbar-results ul { list-style: none; margin: 0; padding: 0; max-height: 24rem; overflow: auto; }
.searchbar-results li button.result {
  display: flex; align-items: flex-start; gap: 0.75rem; width: 100%;
  text-align: left; padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.searchbar-results li:last-child button.result { border-bottom: 0; }
.searchbar-results li button.result:hover { background: var(--muted); }
.searchbar-results .dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; margin-top: 0.375rem; flex-shrink: 0; }
.searchbar-results .title { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.searchbar-results .meta { margin-top: 0.125rem; font-size: 0.75rem; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.searchbar-results .seeall {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: oklch(0.97 0.008 264 / 0.5);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
}
.searchbar-results .seeall:hover { background: var(--muted); }

/* ====== SECTIONS / CATEGORIES ====== */
.section { padding: 5rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-head h2 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
@media (min-width: 640px) { .section-head h2 { font-size: 2.25rem; } }
.section-head p { margin-top: 0.5rem; color: var(--muted-foreground); }

.bg-soft { background: var(--gradient-soft); }

.cat-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 1rem; padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.cat-card:hover { transform: translateY(-4px); border-color: oklch(0.413 0.246 264.1 / 0.3); box-shadow: var(--shadow-card-hover); }
.cat-bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; transition: height var(--transition); }
.cat-card:hover .cat-bar { height: 6px; }
.cat-icon { width: 3.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center; }
.cat-icon img { width: 3.5rem; height: 3.5rem; }
.cat-card h3 { margin: 1.25rem 0 0; font-size: 1.125rem; font-weight: 700; }
.cat-card .desc { margin: 0.375rem 0 0; font-size: 0.875rem; color: var(--muted-foreground);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card .meta {
  margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground);
}
.cat-card .meta .more { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--primary); opacity: 0; transition: opacity var(--transition); }
.cat-card:hover .meta .more { opacity: 1; }

/* ====== ARTICLE CARDS ====== */
.featured-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .featured-grid { grid-template-columns: repeat(3, 1fr); } }

.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--accent); color: var(--accent-foreground);
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600;
}
.badge svg { width: 0.875rem; height: 0.875rem; }

.article-card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 1rem; padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.article-card:hover { transform: translateY(-2px); border-color: oklch(0.413 0.246 264.1 / 0.3); box-shadow: var(--shadow-card-hover); }
.article-card .card-head { display: flex; align-items: center; gap: 0.5rem; }
.article-card .card-head img { width: 1.375rem; height: 1.375rem; }
.cat-tag {
  display: inline-flex; align-items: center;
  padding: 0.125rem 0.625rem; border-radius: 9999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.025em;
  text-transform: uppercase;
}
.article-card h3 {
  margin: 0.75rem 0 0;
  font-size: 1.125rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em;
  color: var(--foreground); transition: color var(--transition);
}
.article-card:hover h3 { color: var(--primary); }
.article-card p {
  margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted-foreground);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card .foot {
  margin-top: auto; padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--muted-foreground);
}
.article-card .foot .read { display: inline-flex; align-items: center; gap: 0.375rem; }
.article-card .foot svg { width: 0.875rem; height: 0.875rem; }

/* "Em breve" placeholder cards */
.article-card.is-placeholder { border-style: dashed; background: var(--muted); }
.article-card.is-placeholder h3 { color: var(--muted-foreground); }
.placeholder-badge {
  margin-left: auto;
  display: inline-flex; align-items: center;
  padding: 0.125rem 0.625rem; border-radius: 9999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: oklch(0.95 0.02 80); color: oklch(0.45 0.12 60);
  border: 1px solid oklch(0.85 0.06 75);
}
.article-card .card-head { flex-wrap: wrap; }

/* "Em breve" indicator on the article page itself */
.placeholder-banner {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: oklch(0.97 0.03 80);
  border: 1px solid oklch(0.88 0.07 75);
  color: oklch(0.4 0.1 60);
  font-size: 0.875rem;
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.placeholder-banner svg {
  flex-shrink: 0;
  width: 1.25rem; height: 1.25rem;
  margin-top: 0.125rem;
  color: oklch(0.45 0.12 60);
}
.placeholder-banner strong { color: oklch(0.32 0.12 60); }

/* ====== CTA ====== */
.cta-card {
  position: relative; overflow: hidden;
  border-radius: 1.5rem; padding: 2.5rem;
  background: var(--gradient-hero); color: #fff;
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 640px) { .cta-card { padding: 3.5rem; } }
.cta-blob {
  position: absolute; right: -5rem; top: -5rem;
  width: 18rem; height: 18rem; border-radius: 9999px;
  background: rgba(255,255,255,0.1); filter: blur(60px);
  pointer-events: none;
}
.cta-grid { position: relative; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .cta-grid { grid-template-columns: 1fr auto; } }
.cta-icon-wrap {
  width: 3rem; height: 3rem; border-radius: 1rem;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center;
}
.cta-icon-wrap svg { width: 1.5rem; height: 1.5rem; }
.cta-card h3 { margin: 1.25rem 0 0; font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; }
@media (min-width: 640px) { .cta-card h3 { font-size: 2.25rem; } }
.cta-card .lead { margin: 0.5rem 0 0; max-width: 36rem; color: rgba(255,255,255,0.8); }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }
@media (min-width: 768px) { .cta-actions { flex-direction: column; } }
.btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #fff; color: var(--primary);
  padding: 0.75rem 1.5rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.875rem;
  transition: background var(--transition);
}
.btn-white:hover { background: rgba(255,255,255,0.9); }
.btn-outline-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.4); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.875rem;
  transition: background var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-white svg, .btn-outline-white svg { width: 1rem; height: 1rem; }

/* ====== BREADCRUMB ====== */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground);
}
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb svg { width: 0.875rem; height: 0.875rem; }
.breadcrumb .current { color: var(--foreground); }

/* ====== CATEGORY PAGE ====== */
.cat-header { border-bottom: 1px solid var(--border); }
.cat-header-inner { padding: 3.5rem 0; }
.cat-header .row { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 640px) { .cat-header .row { flex-direction: row; align-items: center; } }
.cat-header .icon-box {
  width: 5rem; height: 5rem; flex-shrink: 0;
  background: #fff; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.cat-header .icon-box img { width: 4rem; height: 4rem; }
.cat-header h1 { margin: 0; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.025em; }
@media (min-width: 640px) { .cat-header h1 { font-size: 2.25rem; } }
.cat-header .lead { margin-top: 0.5rem; max-width: 42rem; color: var(--muted-foreground); }

.cat-content { padding: 3rem 0; }
.cat-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .cat-layout { grid-template-columns: 260px 1fr; } }
.sidebar-card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 1rem; padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 1024px) { .sidebar-card { position: sticky; top: 6rem; } }
.sidebar-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.sidebar-title svg { width: 0.875rem; height: 0.875rem; }
.sidebar-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-btn {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground); text-align: left;
  transition: background var(--transition), color var(--transition);
}
.sidebar-btn:hover { background: var(--muted); color: var(--foreground); }
.sidebar-btn.active { background: var(--accent); color: var(--accent-foreground); }
.sidebar-btn .count { font-size: 0.75rem; opacity: 0.7; }
.list-meta { margin-bottom: 1.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.cards-2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }

/* ====== ARTICLE PAGE ====== */
.article-page { padding: 3rem 0; }
.article-layout { margin-top: 2rem; display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: 1fr 240px; } }
.article-toc { display: none; }
@media (min-width: 1024px) { .article-toc { display: block; } }
.article-toc-sticky { position: sticky; top: 6rem; }
.toc-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.toc-list { list-style: none; margin: 0.75rem 0 0; padding: 0; border-left: 1px solid var(--border); }
.toc-list li { padding: 0; }
.toc-list li.lvl3 { padding-left: 0.75rem; }
.toc-link {
  display: block; padding: 0.25rem 0 0.25rem 0.75rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.875rem; color: var(--muted-foreground);
  transition: color var(--transition), border-color var(--transition);
}
.toc-link:hover { color: var(--foreground); }
.toc-link.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }

.article-title { margin: 1rem 0 0; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
@media (min-width: 640px) { .article-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .article-title { font-size: 3rem; } }
.article-excerpt { margin: 1rem 0 0; font-size: 1.125rem; color: var(--muted-foreground); }
.article-meta {
  margin-top: 1.5rem; padding: 1rem 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  font-size: 0.875rem; color: var(--muted-foreground);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.article-meta svg { width: 1rem; height: 1rem; }

.article-prose { color: var(--foreground); line-height: 1.75; font-size: 1.0625rem; margin-top: 2.5rem; }
.article-prose h2 { font-size: 1.75rem; font-weight: 700; margin: 2.5rem 0 1rem; scroll-margin-top: 6rem; letter-spacing: -0.02em; }
.article-prose h3 { font-size: 1.25rem; font-weight: 600; margin: 1.75rem 0 0.75rem; scroll-margin-top: 6rem; }
.article-prose p { margin: 0 0 1.25rem; }
.article-prose ul, .article-prose ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.article-prose ul li { list-style: disc; margin-bottom: 0.5rem; }
.article-prose ol li { list-style: decimal; margin-bottom: 0.5rem; }
.article-prose strong { font-weight: 600; color: var(--foreground); }
.article-prose figure { margin: 1.5rem 0; }
.article-prose figure img { border-radius: 0.75rem; border: 1px solid var(--border); }

.lottie-figure { margin: 2rem 0; }
.lottie-frame {
  overflow: hidden; border-radius: 1rem; border: 1px solid var(--border);
  background: linear-gradient(to bottom right, oklch(0.413 0.246 264.1 / 0.05), var(--background), oklch(0.97 0.008 264 / 0.5));
  padding: 1rem; box-shadow: var(--shadow-soft);
}
.lottie-frame .player { max-height: 420px; width: 100%; margin: 0 auto; }
.lottie-frame .placeholder {
  aspect-ratio: 16 / 10; width: 100%; border-radius: 0.75rem;
  background: var(--muted); animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }
.lottie-figure figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }

.feedback-box {
  margin-top: 3.5rem; border: 1px solid var(--border);
  background: oklch(0.97 0.008 264 / 0.4);
  border-radius: 1rem; padding: 1.5rem; text-align: center;
}
.feedback-box h3 { font-size: 1.125rem; font-weight: 700; margin: 0; }
.feedback-actions { margin-top: 1rem; display: flex; justify-content: center; gap: 0.75rem; }
.feedback-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); background: var(--card);
  padding: 0.625rem 1.25rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.875rem;
  transition: color var(--transition), border-color var(--transition);
}
.feedback-btn:hover { color: var(--primary); border-color: oklch(0.413 0.246 264.1 / 0.4); }
.feedback-btn svg { width: 1rem; height: 1rem; }
.feedback-thanks { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.related { margin-top: 4rem; }
.related h3 { font-size: 1.5rem; font-weight: 700; margin: 0 0 1.5rem; }
.related-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

.scroll-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40;
  width: 3rem; height: 3rem; border-radius: 9999px;
  background: var(--primary); color: var(--primary-foreground);
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-elevated);
  transition: background var(--transition);
}
.scroll-top.show { display: inline-flex; }
.scroll-top:hover { background: oklch(0.413 0.246 264.1 / 0.9); }
.scroll-top svg { width: 1.25rem; height: 1.25rem; }

/* ====== SEARCH PAGE ====== */
.search-head { padding: 3rem 0; border-bottom: 1px solid var(--border); background: var(--gradient-soft); }
.search-head h1 { margin: 1rem 0 0; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.025em; }
@media (min-width: 640px) { .search-head h1 { font-size: 2.25rem; } }
.search-head .count { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.search-head .form-wrap { margin-top: 1.5rem; max-width: 64rem; }

.search-results { padding: 3rem 0; }
.search-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .search-layout { grid-template-columns: 240px 1fr; } }
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.5rem;
  border: 1px dashed var(--border); background: var(--card);
  border-radius: 1rem;
}
.empty-state .icon-circle {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: var(--muted); color: var(--muted-foreground);
  display: inline-flex; align-items: center; justify-content: center;
}
.empty-state .icon-circle svg { width: 1.5rem; height: 1.5rem; }
.empty-state h2 { margin: 1.25rem 0 0; font-size: 1.25rem; font-weight: 700; }
.empty-state p { margin: 0.25rem 0 0; max-width: 28rem; font-size: 0.875rem; color: var(--muted-foreground); }
.btn-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.625rem 1.25rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.875rem;
  margin-top: 1.25rem;
}

.results-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.result-card {
  display: block;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 1rem; padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.result-card:hover { border-color: oklch(0.413 0.246 264.1 / 0.3); box-shadow: var(--shadow-card-hover); }
.result-card h3 { margin: 0.5rem 0 0; font-size: 1.125rem; font-weight: 700; }
.result-card:hover h3 { color: var(--primary); }
.result-card p { margin: 0.375rem 0 0; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }
.result-card .foot { margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted-foreground); }
.result-card mark { background: var(--accent); color: var(--accent-foreground); padding: 0 0.125rem; border-radius: 0.25rem; }

.dot-bullet { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 9999px; margin-right: 0.5rem; vertical-align: middle; }

/* ====== 404 / Error page ====== */
.error-hero .hero-inner { padding: 4rem 1rem 5rem; }
@media (min-width: 640px) { .error-hero .hero-inner { padding: 5rem 1.5rem 6rem; } }
@media (min-width: 1024px) { .error-hero .hero-inner { padding: 6rem 2rem 7rem; } }

.error-illustration {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto 1.5rem;
}
@media (min-width: 640px) { .error-illustration { max-width: 440px; } }
@media (min-width: 1024px) { .error-illustration { max-width: 520px; margin-bottom: 2rem; } }

.error-hero h1 {
  margin: 0;
  font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2;
}
@media (min-width: 640px) { .error-hero h1 { font-size: 2.5rem; } }

.error-actions {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.625rem 1.25rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.875rem;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-ghost:hover { border-color: oklch(0.413 0.246 264.1 / 0.4); color: var(--primary); background: var(--muted); }
.btn-ghost svg { width: 1rem; height: 1rem; }

.hidden-md { display: none; }
@media (min-width: 768px) { .hidden-md { display: inline-flex; } }
