/* ------------------------------------------------------------------
   BG.Public — brand-aligned stylesheet.
   Palette sourced from the live birchesgroup.com yootheme-child CSS.
   ------------------------------------------------------------------ */
:root {
    --bg-brand-green:       #77cc40;   /* primary accent */
    --bg-brand-green-dark:  #519a4c;   /* secondary accent / section fills */
    --bg-brand-green-deep:  #255a2a;   /* h3 + emphasis text */
    --bg-brand-green-mid:   #659947;

    --bg-ink:               #343e48;   /* primary text + h1 */
    --bg-ink-soft:          #5a6470;
    --bg-muted:             #969696;
    --bg-nav-bg:            #eef0ed;   /* navbar container from theme */
    --bg-page-bg:           #ffffff;
    --bg-divider:           #e6e8e4;

    --bg-link:              #1e87f0;
    --bg-link-hover:        #0f6ecd;

    --bg-radius:            6px;
    --bg-max-width:         1100px;
    --bg-text-width:        760px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--bg-ink);
    background: var(--bg-page-bg);
}

a { color: var(--bg-link); text-decoration: none; }
a:hover { color: var(--bg-link-hover); text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.01em; }
h1 { color: var(--bg-ink);             font-size: 2.25rem; line-height: 1.15; margin: 0 0 .75rem; }
h2 { color: var(--bg-brand-green);     font-size: 1.5rem;  line-height: 1.2;  margin: 2.5rem 0 1rem; }
h3 { color: var(--bg-brand-green-deep); font-size: 1.15rem; margin: 1.75rem 0 .5rem; }

.lede { font-size: 1.2rem; color: var(--bg-ink-soft); font-weight: 300; margin: 0 0 2rem; }
.meta { color: var(--bg-muted); font-size: .9rem; margin: .25rem 0 1rem; }
.hero-image { width: 100%; height: auto; border-radius: var(--bg-radius); margin: 1.5rem 0 2rem; }

.prose { font-size: 1rem; }
.prose > p { margin: 1rem 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--bg-radius); }
.prose blockquote {
    border-left: 3px solid var(--bg-brand-green);
    margin: 1.5rem 0;
    padding: .5rem 1.25rem;
    color: var(--bg-ink-soft);
    font-style: italic;
    background: #f8faf5;
    border-radius: 0 var(--bg-radius) var(--bg-radius) 0;
}
.prose code {
    background: #f2f4ef;
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .92em;
}

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--bg-divider); }
.post-list li:last-child { border-bottom: 0; }
.post-list h3 { margin: 0 0 .25rem; color: var(--bg-ink); }
.post-list h3 a { color: inherit; text-decoration: none; }
.post-list h3 a:hover { color: var(--bg-brand-green); text-decoration: none; }
.post-list .meta { margin: 0 0 .25rem; }
.post-list p { margin: .25rem 0 0; color: var(--bg-ink); }

.btn-primary {
    display: inline-block;
    background: var(--bg-ink);
    color: #fff;
    padding: .6rem 1.25rem;
    border-radius: var(--bg-radius);
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.btn-primary:hover { background: var(--bg-muted); color: #fff; text-decoration: none; }

.btn-accent {
    display: inline-block;
    background: var(--bg-brand-green);
    color: #fff;
    padding: .6rem 1.25rem;
    border-radius: var(--bg-radius);
    font-weight: 600;
    text-decoration: none;
}
.btn-accent:hover { background: var(--bg-brand-green-dark); color: #fff; text-decoration: none; }

.section-divider {
    height: 4px;
    width: 60px;
    background: var(--bg-brand-green);
    border-radius: 2px;
    margin: 1rem 0 1.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
    border-radius: var(--bg-radius);
}
.blazor-error-boundary::after { content: "An error has occurred."; }

/* ------------------------------------------------------------------
   Layout shell (inlined here instead of MainLayout.razor.css — the
   scoped-CSS bundle is not serving cleanly under .NET 10 preview's
   MapStaticAssets; inline is the pragmatic short-term fix.)
   ------------------------------------------------------------------ */
.site-header {
    background: var(--bg-nav-bg);
    border-bottom: 1px solid var(--bg-divider);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--bg-max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    gap: 2rem;
}
.site-header .brand { display: inline-flex; align-items: center; line-height: 0; }
.site-header .brand img { height: 42px; width: auto; display: block; }
.site-header .top-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-header .top-nav a {
    color: var(--bg-ink);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    transition: color .15s;
}
.site-header .top-nav a:hover { color: var(--bg-brand-green); text-decoration: none; }
.site-header .top-nav .nav-cta {
    background: var(--bg-brand-green);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: var(--bg-radius);
}
.site-header .top-nav .nav-cta:hover { background: var(--bg-brand-green-dark); color: #fff; }

main { min-height: 60vh; }
main .page-body {
    max-width: var(--bg-text-width);
    margin: 2.5rem auto 4rem;
    padding: 0 1.5rem;
}

.site-footer {
    border-top: 4px solid var(--bg-brand-green);
    background: #f6f7f4;
    color: var(--bg-ink-soft);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.site-footer .inner { max-width: var(--bg-max-width); margin: 0 auto; padding: 0 1.5rem; }
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.site-footer h4 { color: var(--bg-ink); font-size: 1rem; margin: 0 0 .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .35rem; }
.site-footer ul li a { color: var(--bg-ink-soft); font-size: .95rem; }
.site-footer ul li a:hover { color: var(--bg-brand-green); }
.site-footer .footer-tagline { color: var(--bg-ink-soft); font-size: .95rem; margin: 0; }
.site-footer .small { font-size: .9rem; color: var(--bg-muted); }
.site-footer .legal { border-top: 1px solid var(--bg-divider); padding-top: 1rem; color: var(--bg-muted); }

@media (max-width: 640px) {
    .site-header .top-nav { gap: 1rem; }
    .site-header .top-nav a { font-size: .85rem; }
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
