/*
 * blog.css: styles the rendered Markdown body of Local Honey blog articles.
 * The article container (<div class="lh-article">) holds raw HTML produced by Markdig, so plain
 * elements (h2, p, ul, a, ...) are styled here rather than with Tailwind utilities. The chrome around
 * the body (hero, cards, CTA) is Tailwind in BlogIndex.razor / BlogArticle.razor.
 */

.lh-article {
    color: #374151;                 /* gray-700 */
    font-size: 1.0625rem;
    line-height: 1.8;
    word-wrap: break-word;
}

.lh-article > *:first-child { margin-top: 0; }

.lh-article h2 {
    color: #111827;                 /* gray-900 */
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 6rem;
}

.lh-article h3 {
    color: #1f2937;                 /* gray-800 */
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 6rem;
}

.lh-article h4 {
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.lh-article p { margin: 1.25rem 0; }

.lh-article a {
    color: #b45309;                 /* amber-700 */
    text-decoration: underline;
    text-underline-offset: 2px;
}
.lh-article a:hover { color: #92400e; }   /* amber-800 */

.lh-article strong { color: #111827; font-weight: 700; }
.lh-article em { font-style: italic; }

.lh-article ul,
.lh-article ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}
.lh-article ul { list-style: disc; }
.lh-article ol { list-style: decimal; }
.lh-article li { margin: 0.5rem 0; }
.lh-article li::marker { color: #d97706; }   /* amber-600 */

.lh-article blockquote {
    margin: 1.5rem 0;
    padding: 0.5rem 1.25rem;
    border-left: 4px solid #f59e0b;           /* amber-500 */
    background: #fffbeb;                       /* amber-50 */
    border-radius: 0 0.75rem 0.75rem 0;
    color: #4b5563;
    font-style: italic;
}
.lh-article blockquote p { margin: 0.5rem 0; }

.lh-article code {
    background: #f3f4f6;
    color: #1f2937;
    padding: 0.15em 0.4em;
    border-radius: 0.3rem;
    font-size: 0.9em;
}

.lh-article pre {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.lh-article pre code { background: none; padding: 0; font-size: 0.875rem; }

.lh-article img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

.lh-article hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0;
}

.lh-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    display: block;
    overflow-x: auto;
}
.lh-article th,
.lh-article td {
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.85rem;
    text-align: left;
}
.lh-article th { color: #111827; font-weight: 600; background: #fffbeb; }

/* Key-takeaways callout */
.lh-callout {
    border: 1px solid #fde68a;                 /* amber-200 */
    background: #fffbeb;                       /* amber-50 */
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}
.lh-callout-title {
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem;
}
.lh-callout ul { margin: 0; padding-left: 1.25rem; list-style: disc; color: #374151; }
.lh-callout li { margin: 0.4rem 0; line-height: 1.6; }
.lh-callout li::marker { color: #d97706; }

/* Table of contents */
.lh-toc {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}
.lh-toc-title {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
}
.lh-toc ol { margin: 0; padding-left: 1.25rem; list-style: decimal; }
.lh-toc li { margin: 0.35rem 0; }
.lh-toc li::marker { color: #9ca3af; }
.lh-toc a { color: #b45309; text-decoration: none; }
.lh-toc a:hover { color: #92400e; text-decoration: underline; }

/* FAQ accordion */
.lh-faq {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}
.lh-faq summary {
    color: #111827;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.lh-faq summary::-webkit-details-marker { display: none; }
.lh-faq summary::after {
    content: "+";
    color: #d97706;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}
.lh-faq[open] summary::after { content: "\2212"; }
.lh-faq p { margin: 0.85rem 0 0; color: #374151; line-height: 1.7; }
