/* powermaps.app — base styles for the content pages (legal, blog,
   announcements). The landing page carries its own inline design. The legal
   pages used to inherit these basics from the web app's app.css. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    background: #fff;
}

img { max-width: 100%; height: auto; }

a { color: #2563eb; }
a:hover { color: #1d4ed8; }

:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* ── Top bar extras (base look comes from legal.css .legal-topbar) ───────── */
.site-topbar .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
.site-topbar .actions a[aria-current="page"] { color: #1e293b; font-weight: 600; }

/* ── Content pages ──────────────────────────────────────────────────────── */
.site-page { background: #f7f9fc; min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 48px 20px 64px; }

.posts-hero { margin-bottom: 32px; }
.posts-hero h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; color: #0f172a; }
.posts-hero p { margin: 0; color: #64748b; font-size: 17px; }
.posts-empty { color: #64748b; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.post-card a {
    display: block; padding: 22px 24px; border-radius: 12px; background: #fff;
    border: 1px solid #e2e8f0; color: inherit; text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.post-card a:hover { border-color: #93c5fd; box-shadow: 0 4px 18px rgba(15, 23, 42, .06); }
.post-card img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
.post-card time { font-size: 13px; color: #64748b; }
.post-card h2 { font-size: 21px; line-height: 1.3; margin: 4px 0 6px; color: #0f172a; }
.post-card p { margin: 0 0 10px; color: #475569; }
.post-more { font-size: 14px; font-weight: 600; color: #2563eb; }

.post { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 36px 40px; }
.post-back { display: inline-block; font-size: 14px; text-decoration: none; margin-bottom: 18px; }
.post h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; color: #0f172a; }
.post-meta { margin: 0 0 24px; color: #64748b; font-size: 14px; }
.post-cover { display: block; width: 100%; border-radius: 10px; margin-bottom: 24px; }

.post-content { font-size: 17px; color: #334155; }
.post-content h2 { font-size: 24px; margin: 32px 0 10px; color: #0f172a; }
.post-content h3 { font-size: 19px; margin: 24px 0 8px; color: #0f172a; }
.post-content p, .post-content ul, .post-content ol { margin: 0 0 16px; }
.post-content li { margin-bottom: 6px; }
.post-content img { border-radius: 8px; margin: 8px 0; }
.post-content blockquote { margin: 0 0 16px; padding: 4px 18px; border-left: 3px solid #93c5fd; color: #475569; }
.post-content code { font-size: .9em; background: #f1f5f9; padding: 2px 5px; border-radius: 4px; }
.post-content pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; }
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content hr { border: 0; border-top: 1px solid #e2e8f0; margin: 28px 0; }

.post-cta { margin-top: 36px; padding: 20px 22px; border-radius: 10px; background: #eff6ff; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.post-cta p { margin: 0; color: #1e3a8a; font-weight: 500; }
.post-cta a { background: #2563eb; color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.post-cta a:hover { background: #1d4ed8; color: #fff; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid #e2e8f0; background: #fff; padding: 24px 20px; text-align: center; font-size: 14px; color: #64748b; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
.site-footer a { color: #475569; text-decoration: none; }
.site-footer a:hover { color: #2563eb; }
.site-footer p { margin: 0; }

@media (max-width: 640px) {
    .site-main { padding: 32px 16px 48px; }
    .post { padding: 24px 20px; }
    .post h1, .posts-hero h1 { font-size: 27px; }
    .site-topbar { flex-wrap: wrap; gap: 10px; }
    .site-topbar .actions a { margin-left: 0; margin-right: 14px; }
}
