/* ==========================================================================
   post.css — blog articles (static/blog/*.html).
   Posts use one of two markups: .post-wrap/.post-body or .article-wrap/.article-body.
   ========================================================================== */

body.post { background: linear-gradient(180deg, #eaf1ff 0, #f6f3ff 220px, #fff 520px) no-repeat; }

.post-wrap { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 32px) var(--gutter) 96px; }
.post-header { padding: 40px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.post-tag { padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--blue-dark); background: var(--blue-soft); border-radius: 100px; }
.post-date { font-size: 13px; color: var(--text3); }
.post-read { font-size: 13px; color: var(--text3); }
.post-dot { width: 3px; height: 3px; background: var(--text3); border-radius: 50%; }
.post-title { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; margin-bottom: 16px; text-wrap: balance; }
.post-intro { font-size: 17px; color: var(--text2); line-height: 1.7; }
.post-body h2 { font-size: 24px; font-weight: 800; margin: 40px 0 14px; letter-spacing: -0.01em; }
.post-body h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.post-body p { font-size: 16px; color: var(--text2); line-height: 1.8; margin-bottom: 18px; }
.post-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 18px; }
.post-body li { font-size: 16px; color: var(--text2); line-height: 1.8; margin-bottom: 6px; }
.post-body strong { color: var(--ink); font-weight: 700; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.tool-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.tool-name-wrap h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.tool-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--border); color: var(--text2); background: var(--surface2); }
.badge-free { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge-paid { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.badge-freemium { background: var(--blue-soft); color: var(--blue-dark); border-color: transparent; }
.tool-card p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 10px; }
.tool-card p:last-child { margin-bottom: 0; }
.tool-pros { margin: 10px 0 0; padding-left: 20px; }
.tool-pros li { font-size: 14px; color: var(--text2); margin-bottom: 4px; line-height: 1.6; }
.tip-box { background: var(--blue-soft); border-left: 3px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 24px 0; }
.tip-box p, .post-body .tip-box p, .article-body .tip-box p { font-size: 14px; color: var(--ink); line-height: 1.6; margin: 0; }
.tip-box strong { color: var(--blue-dark); }
.cta-inline { background: var(--brand-gradient); border-radius: var(--radius-lg); padding: 28px 32px; text-align: center; margin: 40px 0; }
.cta-inline h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-inline p { font-size: 14px; color: rgba(255,255,255,.8); margin-bottom: 18px; }
.cta-inline a { background: #fff; color: var(--blue); padding: 12px 28px; border-radius: var(--radius); font-weight: 800; font-size: 14px; text-decoration: none; display: inline-block; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.post-nav a { font-size: 14px; color: var(--text2); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.post-nav a:hover { color: var(--blue); }
.summary-table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.summary-table th { padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text3); background: var(--surface2); border-bottom: 1px solid var(--border); }
.summary-table td { padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text2); }
.summary-table tr:last-child td { border-bottom: none; }
.summary-table td:first-child { font-weight: 500; color: var(--ink); }
.article-wrap { max-width: 760px; margin: 0 auto; padding: calc(var(--nav-h) + 32px) var(--gutter) 96px; }
.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.article-tag { padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--blue-dark); background: var(--blue-soft); border-radius: 100px; }
.article-date { font-size: 13px; color: var(--text3); }
.article-read { font-size: 13px; color: var(--text3); }
.article-dot { width: 3px; height: 3px; background: var(--text3); border-radius: 50%; }
h1.article-title { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; margin-bottom: 20px; text-wrap: balance; }
.article-intro { font-size: 17px; color: var(--text2); line-height: 1.7; margin-bottom: 40px; border-bottom: 1px solid var(--border); padding-bottom: 32px; }
.article-body h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 40px 0 14px; }
.article-body h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
.article-body p { color: var(--text2); margin-bottom: 16px; line-height: 1.7; }
.article-body ul, .article-body ol { color: var(--text2); padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body a { color: var(--blue); text-underline-offset: 3px; }
.step-box { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 24px; margin: 20px 0; display: flex; gap: 20px; align-items: flex-start; }
.step-circle { width: 40px; height: 40px; background: var(--blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.step-box h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.step-box p { font-size: 14px; color: var(--text2); line-height: 1.6; margin: 0; }
.cta-box { background: var(--brand-gradient); color: #fff; border-radius: var(--radius-lg); padding: 32px; text-align: center; margin: 40px 0; }
.cta-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.cta-box p { color: rgba(255,255,255,.8); font-size: 15px; margin-bottom: 20px; }
.cta-box a { background: #fff; color: var(--blue); padding: 12px 28px; border-radius: var(--radius); font-weight: 800; font-size: 15px; text-decoration: none; display: inline-block; }
.table-of-contents { background: var(--surface2); border: 0; border-radius: var(--radius-lg); padding: 24px; margin-bottom: 36px; }
.table-of-contents h4, .table-of-contents .toc-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text2-strong); margin-bottom: 12px; }
.table-of-contents ol { padding-left: 20px; }
.table-of-contents li { margin-bottom: 6px; font-size: 14px; }
.table-of-contents a { color: var(--text2-strong); text-decoration: none; }
.table-of-contents a:hover { color: var(--blue); }
.related-posts { border-top: 1px solid var(--border); padding-top: 40px; margin-top: 56px; }
.related-posts h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related-card { display: block; padding: 20px; color: inherit; text-decoration: none; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.related-card .tag { font-size: 11px; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 8px; }
.related-card h4 { font-size: 14px; font-weight: 700; line-height: 1.4; }
.tip-num-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.tip-num-box .tip-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tip-num-box .tip-number { width: 36px; height: 36px; background: var(--blue); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; font-family: var(--mono); flex-shrink: 0; }
.tip-num-box h3 { font-size: 18px; font-weight: 700; margin: 0; }
.tip-num-box p { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 12px; }
.tip-num-box p:last-child { margin-bottom: 0; }
.tip-num-box ul { margin-bottom: 0; }
.tip-num-box li { font-size: 15px; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.platform-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.platform-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.platform-card p { font-size: 13px; color: var(--text2); margin: 0; line-height: 1.5; }
.step-box .step-num { position: absolute; left: 20px; top: 22px; border-radius: 10px; width: 32px; height: 32px; background: var(--blue); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; font-family: var(--mono); }
.platform-compare { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 24px 0; }
.platform-card .status { font-size: 22px; margin-bottom: 6px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; cursor: pointer; font-size: 15px; font-weight: 500; gap: 16px; user-select: none; }
.faq-arrow { width: 20px; height: 20px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .2s; }
.faq-arrow svg { width: 12px; height: 12px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; font-size: 14px; color: var(--text2); padding-bottom: 16px; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }
table.compat { width: 100%; border-collapse: collapse; margin: 24px 0; }
table.compat th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text2-strong); padding: 10px 14px; background: var(--surface2); border-bottom: 1px solid var(--border); }
table.compat td { padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--text2); }
table.compat tr:last-child td { border-bottom: none; }
table.compat td:first-child { font-weight: 500; color: var(--ink); }
.post-body code { color: var(--text2-strong); font-size: .9em; padding: 1px 5px; background: var(--surface2); border-radius: 4px; overflow-wrap: anywhere; }
@media (max-width: 600px) { table.compat th, table.compat td { padding: 8px; font-size: 13px; } table.compat code { font-size: 12px; } }
.check { color: var(--green); font-weight: 700; }
.kbd { display: inline-block; background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-family: var(--mono); font-size: 13px; color: var(--ink); }
.compare-table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.compare-table th { padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 700; background: var(--blue); color: #fff; }
.compare-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.compare-table td { padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--surface2); }
.compare-table td:first-child { font-weight: 500; color: var(--ink); width: 30%; }
.win { color: var(--green); font-weight: 700; }
.lose { color: var(--text3); }
.tie { color: #92400e; font-weight: 500; }
.verdict-box { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 32px 0; }
.verdict-header { background: var(--blue); color: #fff; padding: 16px 20px; font-weight: 700; font-size: 16px; }
.verdict-body { padding: 20px; background: var(--surface); }
.verdict-body p { font-size: 15px; color: var(--text2); line-height: 1.7; margin: 0; }

/* Author box (templates/partials/post_author.html) */
.post-author {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; padding: 20px;
  background: var(--surface2); border-radius: var(--radius-lg);
}
.post-author img { flex-shrink: 0; border-radius: 10px; }
.post-author p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text2-strong); }
.post-author .post-author-name { margin-bottom: 4px; font-weight: 700; color: var(--ink); }
.post-author a { color: var(--blue); }

/* Numbered step variant: absolute .step-num badge instead of a flex .step-circle. */
.step-box:has(.step-num) { display: block; position: relative; padding-left: 72px; }

@media (max-width: 500px) {
  .platform-compare { grid-template-columns: 1fr; }
}
