html {
    scroll-behavior: smooth;
}

h1:focus {
    outline: none;
}

/* =============================================
   Public hero — dark, Jevelin-inspired
============================================= */
.pub-hero {
    min-height: 100vh;
    background: #0f0f1a;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

/* Green glow blob — top left */
.pub-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,0.08) 0%, transparent 70%);
    top: -100px;
    left: -150px;
    pointer-events: none;
}

/* Dark navy blob — bottom right */
.pub-hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15,31,61,0.5) 0%, transparent 70%);
    bottom: -200px;
    right: 5%;
    pointer-events: none;
}

/* Split layout: text left / visual right */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
}

/* Right-side decorative ring */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-blob-ring {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 2px solid rgba(34,197,94,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-blob-ring::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px solid rgba(34,197,94,0.08);
}

.hero-blob-ring::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 70%);
}

.hero-icon-center {
    font-size: 7rem;
    line-height: 1;
    filter: drop-shadow(0 0 40px rgba(34,197,94,0.35));
    position: relative;
    z-index: 1;
}

/* Stats bar */
.pub-stats-bar {
    padding: 3rem 1rem;
    background: #0c0c18;
    border-top: 1px solid #1e2035;
    border-bottom: 1px solid #1e2035;
}


/* ---- public content pages ---- */
.pub-page {
    min-height: 100vh;
    background: #0f0f1a;
    padding: 4rem 0 5rem;
}

/* ---- rendered Markdown (MarkdownView) ---- */
.markdown-view { line-height: 1.75; color: #e2e8f0; word-wrap: break-word; }
.markdown-view h1, .markdown-view h2, .markdown-view h3,
.markdown-view h4, .markdown-view h5, .markdown-view h6 { color: #f1f5f9; font-weight: 700; line-height: 1.25; margin: 1.75em 0 .6em; }
.markdown-view h1 { font-size: 1.9rem; } .markdown-view h2 { font-size: 1.5rem; } .markdown-view h3 { font-size: 1.25rem; }
.markdown-view > :first-child { margin-top: 0; }
.markdown-view p, .markdown-view ul, .markdown-view ol, .markdown-view blockquote, .markdown-view pre, .markdown-view table { margin: 0 0 1.1em; }
.markdown-view ul, .markdown-view ol { padding-left: 1.5em; }
.markdown-view a { color: #22c55e; text-decoration: underline; text-underline-offset: 2px; }
.markdown-view img { max-width: 100%; height: auto; border-radius: 6px; }
.markdown-view blockquote { border-left: 3px solid #22c55e; padding: .25em 1em; color: #94a3b8; }
.markdown-view code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: rgba(255,255,255,.08); padding: .1em .35em; border-radius: 4px; }
.markdown-view pre { background: rgba(255,255,255,.06); padding: 1em; border-radius: 6px; overflow-x: auto; }
.markdown-view pre code { background: none; padding: 0; }
.markdown-view table { border-collapse: collapse; width: 100%; }
.markdown-view th, .markdown-view td { border: 1px solid rgba(255,255,255,.12); padding: .5em .75em; text-align: left; }
.markdown-view th { background: rgba(255,255,255,.06); }
.markdown-view hr { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 2em 0; }
