/* jev-article — Apple Design comparison table
   Scoped to .jev-article so it never leaks to other posts.
   Principles: translucent material, spatial consistency,
   size-specific tracking/leading, rubber-banded scroll, reduced-motion. */

.jev-article .legal-section h2 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ——— Table material ——— */
.jev-article .post-table-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: 16px;
  border: 1px solid rgba(39, 40, 38, 0.08);
  border-top-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 1px 2px rgba(39, 40, 38, 0.04),
    0 8px 24px rgba(39, 40, 38, 0.06),
    0 0 0 1px rgba(39, 40, 38, 0.02) inset;
  margin: 18px 0 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(39, 40, 38, 0.18) transparent;
}

.jev-article .post-table-wrap::-webkit-scrollbar { height: 6px; }
.jev-article .post-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(39, 40, 38, 0.18);
  border-radius: 999px;
}
.jev-article .post-table-wrap:focus-visible {
  outline: 2px solid rgba(51, 164, 37, 0.45);
  outline-offset: 2px;
}

/* Scroll edge fades — hint that the table scrolls, not a hard divider */
.jev-article .post-table-wrap::before,
.jev-article .post-table-wrap::after {
  content: "";
  position: sticky;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  z-index: 2;
  display: block;
  height: 0;
}
.jev-article .post-table-wrap::before {
  left: 0;
  float: left;
  background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
  margin-right: -24px;
}
.jev-article .post-table-wrap::after {
  right: 0;
  float: right;
  background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
  margin-left: -24px;
}

/* ——— Table ——— */
.jev-article .post-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "ss01" 1;
}

/* Caption for a11y */
.jev-article .post-table caption {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: #5c7073;
  padding: 14px 16px 0;
  caption-side: top;
}
.jev-article .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Header — heavier material, anchored, symmetric */
.jev-article .post-table thead th {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.3;
  color: #5c7073;
  text-align: left;
  padding: 14px 16px;
  background: rgba(242, 244, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(39, 40, 38, 0.08);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.jev-article .post-table thead th:first-child {
  border-radius: 16px 0 0 0;
  color: #272826;
  min-width: 132px;
}
.jev-article .post-table thead th:last-child {
  border-radius: 0 16px 0 0;
  color: #33a425;
  background: linear-gradient(180deg, rgba(51,164,37,0.08), rgba(242,244,242,0.92));
  border-left: 1px solid rgba(51, 164, 37, 0.10);
}
.jev-article .post-table thead th:nth-child(2) {
  color: #636261;
  border-left: 1px solid rgba(39, 40, 38, 0.06);
  border-right: 1px solid rgba(39, 40, 38, 0.06);
}

/* Body cells */
.jev-article .post-table tbody td {
  font-size: 13.5px;
  line-height: 1.6;
  color: #3a3d3a;
  padding: 13px 16px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid rgba(39, 40, 38, 0.06);
  background: rgba(255,255,255,0.0);
  transition: background 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.jev-article .post-table tbody td:first-child {
  font-weight: 600;
  color: #272826;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: rgba(242, 244, 242, 0.35);
  border-right: 1px solid rgba(39, 40, 38, 0.05);
  position: sticky;
  left: 0;
  z-index: 1;
}
.jev-article .post-table tbody td:nth-child(2) {
  color: #5c7073;
  border-right: 1px solid rgba(39, 40, 38, 0.05);
}
.jev-article .post-table tbody td:last-child {
  color: #272826;
  background: rgba(51, 164, 37, 0.02);
  border-left: 1px solid rgba(51, 164, 37, 0.06);
  font-weight: 450;
}

/* Zebra + hover — subtle, no jarring flash */
.jev-article .post-table tbody tr:nth-child(even) td { background-color: rgba(242,244,242,0.22); }
.jev-article .post-table tbody tr:nth-child(even) td:first-child { background-color: rgba(242,244,242,0.48); }
.jev-article .post-table tbody tr:nth-child(even) td:last-child { background-color: rgba(51,164,37,0.035); }

.jev-article .post-table tbody tr:hover td { background-color: rgba(51,164,37,0.045); }
.jev-article .post-table tbody tr:hover td:first-child { background-color: rgba(51,164,37,0.06); }
.jev-article .post-table tbody tr:hover td:last-child { background-color: rgba(51,164,37,0.07); }

.jev-article .post-table tbody tr:last-child td { border-bottom: none; }
.jev-article .post-table tbody tr:last-child td:first-child { border-radius: 0 0 0 16px; }
.jev-article .post-table tbody tr:last-child td:last-child { border-radius: 0 0 16px 0; }

/* Emphasis inside cells */
.jev-article .post-table tbody td strong { color: #272826; font-weight: 700; }
.jev-article .post-table tbody td:last-child strong { color: #1a5a12; }

/* ——— Responsive ——— */
@media (max-width: 720px) {
  .jev-article .post-table { min-width: 560px; }
  .jev-article .post-table thead th { font-size: 10px; padding: 12px 12px; }
  .jev-article .post-table tbody td { font-size: 13px; padding: 11px 12px; line-height: 1.55; }
  .jev-article .post-table thead th:first-child,
  .jev-article .post-table tbody td:first-child { min-width: 110px; }
}

/* ——— Reduced motion / transparency / contrast ——— */
@media (prefers-reduced-motion: reduce) {
  .jev-article .post-table tbody td { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .jev-article .post-table-wrap {
    background: #ffffff;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .jev-article .post-table thead th { background: #f2f4f2; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .jev-article .post-table-wrap { border-color: rgba(39,40,38,0.18); }
  .jev-article .post-table thead th,
  .jev-article .post-table tbody td { border-bottom-color: rgba(39,40,38,0.14); }
}
