/* Blog styles for aicontentops.online. Loaded after the site's own stylesheet and uses its tokens. */
.blog-hero-inner { max-width: 760px; margin: 0 auto; }
.blog-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 760px; text-wrap: balance; }
.blog-hero-sub, .blog-hero .post-meta { color: var(--muted); max-width: 620px; }
.blog-hero .post-meta { font-size: 0.92rem; margin-top: 0.6rem; }
.post-eyebrow { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--blue); margin-bottom: 0.5rem; }
.post-eyebrow a { text-decoration: none; }

.blog-wrap { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 6vw, 2rem) 4.5rem; }

.post-list { display: grid; gap: 2rem; }
.post-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.4rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.post-card:last-child { border-bottom: none; }
.post-card:not(:has(.post-card-img)) { grid-template-columns: 1fr; }
.post-card-img img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); display: block; }
.post-card h2 { font-family: 'DM Serif Display', serif; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.25; margin: 0; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--blue); }
.post-card .post-meta { font-size: 0.82rem; color: var(--muted); margin: 0.3rem 0 0; }
.post-excerpt { font-size: 0.95rem; margin: 0.5rem 0 0; }
@media (max-width: 700px) { .post-card { grid-template-columns: 1fr; gap: 0.9rem; } }
.pager { display: flex; justify-content: space-between; margin-top: 2.5rem; font-weight: 600; }

.post-featured { margin: 0 0 2rem; }
.post-featured img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.post-body { font-size: 1.07rem; line-height: 1.8; }
.post-body p { margin-bottom: 1.2rem; }
.post-body h2 { margin: 2.4rem 0 0.8rem; }
.post-body h3 { margin: 2rem 0 0.6rem; }
.post-body ul, .post-body ol { margin: 0 0 1.2rem 1.3rem; color: #3a4060; }
.post-body li + li { margin-top: 0.4rem; }
.post-body blockquote { border-left: 3px solid var(--blue); padding: 0.2rem 0 0.2rem 1.3rem; margin: 1.6rem 0; font-family: 'DM Serif Display', serif; font-size: 1.25rem; line-height: 1.5; color: var(--blue-dark); }
.post-body figure { margin: 1.8rem 0; }
.post-body figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.post-body figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.post-body aside.callout { background: var(--blue-light); border-left: 3px solid var(--blue); padding: 1rem 1.3rem; border-radius: var(--radius); margin: 1.6rem 0; }
.post-body pre, .post-body .prompt-block { background: var(--blue-dark); color: #fff; padding: 1rem 1.2rem; border-radius: var(--radius); overflow-x: auto; font-size: 0.9rem; margin: 1.6rem 0; }
.post-body :not(pre) > code { background: var(--blue-light); padding: 0.1em 0.35em; border-radius: 4px; }
.post-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 1.6rem 0; }
.post-body th, .post-body td { border-bottom: 1px solid var(--rule); padding: 0.55rem 0.7rem; text-align: left; }
.post-body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.post-body hr { border: none; height: 1px; background: var(--rule); margin: 2.4rem 0; }

.source-card, .paper-link { background: var(--blue-light); border-left: 3px solid var(--blue); padding: 1rem 1.3rem; border-radius: var(--radius); margin: 0 0 1.8rem; }
.paper-link { margin: 2.4rem 0 0; }
.source-card p, .paper-link p { margin: 0.2rem 0 0; }
.source-card a, .paper-link a { font-weight: 600; }

.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2.4rem; list-style: none; padding: 0; }
.post-tags a { background: var(--blue-light); color: var(--blue); font-size: 0.78rem; font-weight: 500; padding: 0.25rem 0.7rem; border-radius: 99px; text-decoration: none; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--rule); }
.post-nav a { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.post-nav a span { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.25rem; }
.post-nav .next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }
.back { margin-top: 2rem; font-weight: 600; }

.post-feedback { margin-top: 3rem; padding: 1.6rem; background: var(--cream); border: 1px solid var(--rule); border-radius: var(--radius); }
.post-feedback form { display: grid; gap: 0.8rem; }
.post-feedback label { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; }
.post-feedback input, .post-feedback textarea { font: inherit; padding: 0.6rem 0.8rem; border: 1px solid var(--rule); border-radius: 6px; }
.post-feedback button { justify-self: start; background: var(--blue); color: #fff; border: none; padding: 0.7rem 1.6rem; border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.post-feedback .hp { position: absolute; left: -9999px; }
.empty { color: var(--muted); }

.post-body th { font-weight: 600; border-bottom: 2px solid var(--rule); }
.post-body td p, .post-body th p { margin: 0; }
