/* ============================================================
   BLOG — shared by /blog/ and every article. Uses style.css tokens.
   ============================================================ */
.post {
  max-width: 880px;
  --line: #E2E2E2;
  --head: #F4F4F4;
}

.crumbs {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.crumbs a {
  color: var(--grape);
}

.post h1 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.12;
}

.lede {
  margin-top: 18px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.post h2 {
  margin: 64px 0 18px;
}

.post p,
.post li {
  line-height: 1.7;
}

.post p + p {
  margin-top: 14px;
}

/* ─── Comparison table: features down, apps across ────────── */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.compare {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.compare th,
.compare td {
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid var(--line);
}

.compare tr > :first-child {
  border-inline-start: 0;
}

.compare tr > :last-child {
  border-inline-end: 0;
}

.compare thead > tr > * {
  border-top: 0;
}

.compare tbody tr:last-child > * {
  border-bottom: 0;
}

.compare thead th,
.compare thead td,
.compare .group th {
  background: var(--head);
  color: var(--ink);
}

.compare thead th {
  padding: 14px 10px 12px;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 800;
}

.compare thead img {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 10px;
}

.compare thead td,
.compare tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  width: 20%;
  text-align: start;
  font-weight: 700;
  color: var(--ink-soft);
  background: #fff;
}

.compare thead td {
  background: var(--head);
}

.compare .group th {
  padding: 10px 14px;
  font-weight: 800;
}

.compare b {
  font-weight: 800;
  color: var(--ink);
}

.yes,
.no {
  display: inline-block;
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

.yes {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5.5 5.5L20 6.5' fill='none' stroke='%232FB457' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.no {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23E23744' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.table-note {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ─── App reviews: plain article flow, divided by thin lines ─ */
.post-hero {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 28px;
  border-radius: 16px;
}

.app {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.app-head img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 15px;
}

.app h3 {
  font-size: 1.5rem;
}

.app-meta {
  margin-top: 2px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.app-best {
  font-weight: 800;
  color: var(--orange);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 36px;
  margin-top: 20px;
}

.pros-cons h4 {
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 800;
}

.pros li,
.cons li {
  position: relative;
  padding-inline-start: 24px;
}

.pros li::before,
.cons li::before {
  position: absolute;
  inset-inline-start: 0;
  font-weight: 800;
}

.pros li::before {
  content: '+';
  color: var(--green);
}

.cons li::before {
  content: '−';
  color: var(--red);
}

.app-price {
  margin-top: 18px;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.app-links img {
  display: block;
  width: auto;
  height: 42px;
}

.post-more {
  margin-top: 40px;
}

.post-foot {
  margin-top: 24px;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ─── Blog index ──────────────────────────────────────────── */
.posts {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 28px 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.post-card .post-date {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.post-card h2 {
  margin: 6px 0 10px;
  font-size: 1.5rem;
}

.post-card p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.post-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.post-card .more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 800;
  color: var(--grape);
}

[dir="rtl"] .compare td {
  direction: ltr;
}

/* ─── Changelog ───────────────────────────────────────────── */
.releases {
  margin-top: 24px;
}

.release {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.release:last-child {
  border-bottom: 0;
}

.post .release h2 {
  margin: 0;
  font-size: 1.5rem;
}

.release-date {
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.release ul {
  margin-top: 14px;
  padding-inline-start: 22px;
  list-style: disc;
}

.release li + li {
  margin-top: 4px;
}

@media (max-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .app-links img {
    height: 40px;
  }

  .post-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .post-card img {
    grid-row: 1;
  }
}
