/* Blog — article and hub styles (uses the tokens from style.css) */

.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 5vw, 2rem) clamp(3rem, 8vw, 5rem);
}

.article-head .eyebrow { margin-bottom: .7rem; }
.article-head h1 {
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  margin-bottom: .8rem;
}
.article-head .lead { max-width: none; margin: 0 0 1.2rem; }
.article-meta {
  color: var(--text-dim);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
}
.article-meta .dot { opacity: .5; }

.disclosure {
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent-1);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1rem;
  color: var(--text-dim);
  font-size: .9rem;
  margin: 1.4rem 0;
}
.disclosure strong { color: var(--text); }

.toc {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.6rem 0 2.4rem;
}
.toc h2 {
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent-1);
  margin: 0 0 .6rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; color: var(--text-dim); }
.toc li { margin: .25rem 0; }
.toc a { color: var(--text-dim); }
.toc a:hover { color: var(--text); }

.prose { color: var(--text); }
.prose h2 {
  text-align: left;
  margin: 2.6rem 0 .8rem;
  scroll-margin-top: 5.5rem;
}
.prose h3 {
  margin: 1.8rem 0 .5rem;
  font-size: 1.25rem;
  scroll-margin-top: 5.5rem;
}
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin: .3rem 0; }
.prose strong { color: #fff; }
.prose a { text-decoration: underline; text-decoration-color: rgba(79,140,255,.45); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--accent-1); }
.prose hr {
  border: 0;
  border-top: 1px solid var(--card-border);
  margin: 2.2rem 0;
}
.prose blockquote {
  border-left: 3px solid var(--accent-2);
  padding: .2rem 0 .2rem 1rem;
  color: var(--text-dim);
  margin: 1.2rem 0;
}

.small { font-size: .85rem; color: var(--text-dim); }
.muted { color: var(--text-dim); }

/* Badges */
.badge {
  display: inline-block;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-no {
  color: #7ee2a8;
  background: rgba(46, 170, 100, .12);
  border-color: rgba(46, 170, 100, .3);
}
.badge-yes {
  color: #f0c36a;
  background: rgba(200, 150, 40, .12);
  border-color: rgba(200, 150, 40, .3);
}
.badge-neutral {
  color: var(--text-dim);
  background: rgba(140, 150, 170, .1);
  border-color: rgba(140, 150, 170, .25);
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin: 1.2rem 0 1.6rem;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 760px;
}
.compare caption {
  caption-side: top;
  text-align: left;
  padding: .8rem 1rem;
  color: var(--text-dim);
  font-size: .8rem;
  border-bottom: 1px solid var(--card-border);
}
.compare th, .compare td {
  padding: .65rem .75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(120,150,255,.09);
}
.compare thead th {
  position: sticky;
  top: 0;
  background: #171e2c;
  color: var(--text);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td { background: rgba(79,140,255,.05); }
.compare td:first-child, .compare th:first-child {
  position: sticky;
  left: 0;
  background: var(--card);
  min-width: 160px;
  z-index: 1;
}
.compare thead th:first-child { background: #171e2c; z-index: 2; }
.compare .hl td { background: rgba(79,140,255,.08); }
.compare .hl td:first-child { background: #171e2c; }

/* Narrow two-column tables: no sticky column, keep the number cell tight */
.compare.plain td:first-child, .compare.plain th:first-child {
  position: static;
  min-width: 0;
  width: 1%;
  white-space: nowrap;
  background: transparent;
}
.compare.plain thead th:first-child { background: #171e2c; }
.compare.plain tbody tr:hover td:first-child { background: rgba(79,140,255,.05); }

/* App review cards */
.app-review {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin: 1.2rem 0;
}
.app-review h3 { margin-top: 0; }
.app-review .verdict {
  color: var(--text);
  background: var(--bg-soft);
  border-left: 3px solid var(--accent-2);
  padding: .5rem .8rem;
  border-radius: 0 8px 8px 0;
  font-size: .92rem;
  margin: 0 0 .9rem;
}
.app-review dl {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: .35rem .8rem;
  margin: .8rem 0 0;
  font-size: .9rem;
}
.app-review dt { color: var(--text-dim); font-weight: 600; }
.app-review dd { margin: 0; }
@media (max-width: 560px) {
  .app-review dl { grid-template-columns: 1fr; gap: .1rem; }
  .app-review dd { margin-bottom: .5rem; }
}

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
  font-size: .93rem;
}
.callout h3 { margin-top: 0; font-size: 1rem; }
.callout p:last-child { margin-bottom: 0; }

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  margin: .6rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.faq summary::marker { color: var(--accent-1); }
.faq details[open] summary { margin-bottom: .5rem; }
.faq p { margin: 0; color: var(--text-dim); }

/* Sources */
.sources {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: .85rem;
}
.sources h2 { font-size: 1rem; text-align: left; margin-bottom: .6rem; }
.sources ul { padding-left: 1.2rem; }
.sources li { margin: .3rem 0; }

/* Blog hub */
.post-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.post-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  color: var(--text);
}
.post-card:hover { text-decoration: none; border-color: var(--accent-1); }
.post-card .post-date {
  color: var(--accent-1);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}
.post-card h2 {
  text-align: left;
  font-size: 1.3rem;
  margin: .35rem 0 .45rem;
}
.post-card p { color: var(--text-dim); font-size: .92rem; margin: 0; }
