/* serpv.com /blog/ — colours and type match the WordPress theme (Astra + Elementor globals) */
:root {
  --bg: #ffffff; --bg-soft: #f9fafb; --text: #1f2937; --muted: #6b7280; --border: #e5e7eb;
  --brand: #2563eb; --brand-strong: #1e54c7; --radius: 12px; --maxw: 1200px;
  --font: "Noto Sans", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.75 var(--font); }
a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.logo img { display: block; height: 36px; width: auto; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a.on { color: var(--brand); }
@media (max-width: 720px) { .nav { gap: 14px; } .nav a { font-size: 14px; } }

.crumbs { font-size: 14px; color: var(--muted); margin: 28px 0 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.post, .post-list { max-width: 780px; margin: 0 auto; padding: 0 16px 72px; }
.post h1, .post-list h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.3; margin: 8px 0 20px; }
.post .cover { width: 100%; border-radius: var(--radius); margin: 8px 0 24px; border: 1px solid var(--border); }
.post-body h2 { font-size: 26px; line-height: 1.35; margin: 40px 0 12px; }
.post-body h3 { font-size: 20px; line-height: 1.4; margin: 28px 0 8px; }
.post-body img { border-radius: 10px; }
.post-body figure { margin: 24px 0; }
.post-body figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.post-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.post-body th { background: var(--bg-soft); }
.post-body blockquote { margin: 20px 0; padding: 12px 16px; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 0 10px 10px 0; }
.post-body code { background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; font-size: .92em; }

.post-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.post-item h2 { font-size: 21px; line-height: 1.4; margin: 0 0 6px; }
.post-item h2 a { color: var(--text); text-decoration: none; }
.post-item h2 a:hover { color: var(--brand); }
.post-item p { margin: 0 0 4px; color: var(--muted); }
.post-item time { font-size: 14px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; background: var(--bg-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 28px 0 0; color: var(--muted); font-size: 15px; }
.pager a { color: var(--brand); text-decoration: none; font-weight: 600; }
