/*
 * Pages WordPress renders itself (blog, webinars, plain pages, 404).
 * The site's own stylesheet (dist/islands.css) is loaded first; this adds the
 * page shell and readable defaults for editor content, which the design's
 * CSS reset (Tailwind preflight) otherwise flattens.
 */
.a4do-wp #a4d-main { display: block; min-height: 60vh; }

/* Plain pages and posts: light hero below the fixed navigation, then the content. */
.a4do-hero { padding: calc(var(--nav-h) + 72px) 0 40px; background: radial-gradient(70% 120% at 85% 0%, rgba(145, 56, 132, 0.08), transparent 60%), var(--alt); border-bottom: 1px solid var(--line-soft); }
.a4do-hero .eyebrow { color: var(--purple); margin-bottom: 16px; }
.a4do-hero__title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; max-width: 900px; margin: 0; }
.a4do-hero__meta { margin-top: 16px; color: var(--muted); font-size: 15px; }
.a4do-body { padding: 56px 0 112px; }
.a4do-list { display: grid; gap: 24px; padding: 0; margin: 0; list-style: none; }
.a4do-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.a4do-list h2 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.a4do-list a:hover h2 { color: var(--purple); }
.a4do-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Editor content: headings, lists, links, quotes, code, tables, media. */
.a4do-prose, .a4d .a4d-prose { max-width: 760px; font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.a4do-prose > * + * { margin-top: 1.1em; }
.a4do-prose h2, .a4do-prose h3, .a4do-prose h4 { color: var(--ink); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; margin-top: 1.9em; scroll-margin-top: calc(var(--nav-h) + 24px); }
.a4do-prose h2 { font-size: clamp(24px, 2.6vw, 30px); }
.a4do-prose h3 { font-size: 21px; }
.a4do-prose h4 { font-size: 18px; }
.a4do-prose ul, .a4d .a4d-prose ul { list-style: disc; padding-left: 1.4em; }
.a4do-prose ol, .a4d .a4d-prose ol { list-style: decimal; padding-left: 1.4em; }
.a4do-prose li + li, .a4d .a4d-prose li + li { margin-top: 0.4em; }
.a4do-prose li::marker, .a4d .a4d-prose li::marker { color: var(--magenta); }
.a4do-prose a, .a4d .a4d-prose a { color: var(--purple); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.a4do-prose a:hover, .a4d .a4d-prose a:hover { color: var(--magenta); }
.a4do-prose strong, .a4d .a4d-prose strong { color: var(--ink); font-weight: 600; }
.a4do-prose em { font-style: italic; }
.a4do-prose blockquote, .a4d .a4d-prose blockquote { border-left: 3px solid var(--magenta); padding: 4px 0 4px 20px; color: var(--ink); font-style: italic; }
.a4do-prose code, .a4d .a4d-prose code { font-family: var(--font-mono-face), ui-monospace, monospace; font-size: 0.88em; background: var(--alt); border: 1px solid var(--line-soft); border-radius: 6px; padding: 0.1em 0.4em; }
.a4do-prose pre, .a4d .a4d-prose pre { background: var(--dark); color: #e9e4f5; border-radius: var(--radius); padding: 20px 24px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.a4do-prose pre code, .a4d .a4d-prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.a4do-prose table, .a4d .a4d-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.a4do-prose th, .a4do-prose td, .a4d .a4d-prose th, .a4d .a4d-prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.a4do-prose th, .a4d .a4d-prose th { color: var(--ink); font-weight: 600; }
.a4do-prose img, .a4do-prose video, .a4d .a4d-prose img { border-radius: var(--radius-sm); height: auto; }
.a4do-prose figure figcaption, .a4d .a4d-prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.a4do-prose hr, .a4d .a4d-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.a4do-prose .alignwide { max-width: 1040px; }
.a4do-prose .aligncenter { margin-inline: auto; }
.a4do-prose .wp-block-button__link { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--grad); color: #fff; text-decoration: none; font-weight: 600; }

/* Blog and webinar templates: start below the fixed navigation. */
.a4do-wp .a4d { padding-top: var(--nav-h); }
