/* Blog pages only (loaded after site.css by scripts/build-blog.mjs). Uses the colour tokens from site.css. */
.post,
.blog-intro,
.card-grid {
  --measure: 44rem;
}

/* ---------- article header ---------- */
.post {
  padding: 28px 0 56px;
  min-width: 0;
  max-width: 100%;
}
.post-layout > *,
.post-hero {
  min-width: 0;
}
.post-hero {
  max-width: 56rem;
  margin: 0 auto 28px;
}
.post-crumbs {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 600;
}
.post-crumbs a {
  text-decoration: none;
}
.post-crumbs a::before {
  content: '\2190\00a0';
}
.post-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
}
.post-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--soft);
}

/* ---------- body + contents ---------- */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 1040px) {
  .post-layout {
    max-width: 71rem;
    grid-template-columns: 15rem minmax(0, var(--measure));
    justify-content: center;
    gap: 56px;
    align-items: start;
  }
  .toc {
    position: sticky;
    top: 24px;
  }
}
.toc {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.93rem;
}
.toc-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.toc ol {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
}
.toc a {
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.post-content {
  max-width: var(--measure);
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--text);
}
.post-content .lead {
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--ink);
}
.post-content h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 2.2em 0 0.5em;
  scroll-margin-top: 20px;
}
.post-content h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.7em 0 0.3em;
}
.post-content p,
.post-content li {
  text-wrap: pretty;
}
.post-content li {
  margin: 0.3em 0;
}
.post-content a {
  text-underline-offset: 2px;
}

/* ---------- callouts, call to action ---------- */
.callout,
.blog-cta {
  background: #eef1ff;
  border: 1px solid #d9e0ff;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 4px 18px;
  margin: 1.4em 0;
}
.callout p,
.blog-cta {
  line-height: 1.6;
}

/* ---------- comparison blocks ---------- */
.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 12px;
  margin: 1.2em 0 0.4em;
}
.verdict {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text) !important;
  text-decoration: none;
  line-height: 1.4;
  font-size: 0.97rem;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.verdict:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.verdict strong {
  color: var(--ink);
  font-size: 1.05rem;
}
.verdict-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.verdict.is-yotei {
  background: #eef1ff;
  border-color: #c7d1ff;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.2em 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
.post-content table {
  border-collapse: collapse;
  width: 100%;
  min-width: 36rem;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.45;
}
.post-content th,
.post-content td {
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.post-content thead th {
  background: #f1f4fc;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.post-content tbody tr:last-child td {
  border-bottom: 0;
}
.post-content tbody tr:nth-child(even) {
  background: #faf9f6;
}
.post-content tr.is-yotei td {
  background: #eef1ff;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px 6px;
  margin: 1.2em 0;
  scroll-margin-top: 20px;
}
.app-card.is-yotei {
  border-color: #b9c5ff;
  box-shadow: 0 6px 24px rgba(61, 90, 254, 0.1);
}
.app-card h3 {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-size: 1.4rem;
}
.app-card .app-kind {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- end of article ---------- */
.post-end {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: var(--measure);
  margin: 48px auto 0;
  padding: 20px 22px;
  background: var(--band);
  border: 1px solid var(--border);
  border-radius: 16px;
}
@media (min-width: 1040px) {
  .post-end {
    margin-left: calc(50% - 35.5rem + 15rem + 56px);
    margin-right: auto;
  }
}
.post-end img {
  flex: none;
  width: 64px;
  height: 64px;
}
.post-end p {
  margin: 0 0 4px;
}
.related {
  max-width: 71rem;
  margin: 56px auto 0;
}
.related h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 16px;
  color: var(--ink);
}

/* ---------- blog index and related cards ---------- */
.blog-intro {
  max-width: 48rem;
  margin: 0 auto;
  padding: 36px 0 12px;
  text-align: center;
}
.blog-intro h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--ink);
  margin: 0 0 12px;
}
.blog-intro p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}
.card-grid {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 18px;
  max-width: 71rem;
}
.post-card {
  margin: 0;
}
.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.post-card a:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(14, 26, 58, 0.09);
}
.post-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  background: var(--soft);
}
.post-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}
.post-card-body strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.3;
}
.post-card-desc {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}
.post-card-meta {
  margin-top: auto;
  padding-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}
.post .muted,
.post-end .muted {
  color: var(--muted);
  font-size: 0.93rem;
}
@media (max-width: 560px) {
  .post-content {
    font-size: 1.02rem;
  }
  .app-card {
    padding: 16px 16px 2px;
  }
  .post-end {
    flex-direction: column;
    align-items: flex-start;
  }
}
