/* ==========================================================================
   DEDICATED BLOG CONTENT STYLING (Immune to Tailwind Resets)
   ========================================================================== */

#blog-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
    font-family: 'Inter', sans-serif;
}

#blog-content *, #blog-content *::before, #blog-content *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* Headings */
#blog-content h1, #blog-content h2, #blog-content h3, #blog-content h4, #blog-content h5, #blog-content h6 {
    color: #111827;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-family: 'Inter', sans-serif;
}
#blog-content h1 { font-size: 2.25em; }
#blog-content h2 { font-size: 1.875em; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.3em; }
#blog-content h3 { font-size: 1.5em; }
#blog-content h4 { font-size: 1.25em; }
#blog-content h5 { font-size: 1.1em; }
#blog-content h6 { font-size: 1em; color: #6b7280; }

/* Paragraphs & Text Formatting */
#blog-content p {
    margin-bottom: 1.25em;
}
#blog-content strong, #blog-content b {
    font-weight: 700;
    color: #111827;
}
#blog-content em, #blog-content i {
    font-style: italic;
}
#blog-content u {
    text-decoration: underline;
}
#blog-content a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}
#blog-content a:hover {
    color: #1d4ed8;
}

/* Lists */
#blog-content ul, #blog-content ol {
    margin-bottom: 1.25em;
    padding-left: 2em;
}
#blog-content ul {
    list-style-type: disc;
}
#blog-content ol {
    list-style-type: decimal;
}
#blog-content li {
    margin-bottom: 0.5em;
}
#blog-content li > ul, #blog-content li > ol {
    margin-top: 0.5em;
    margin-bottom: 0;
}

/* Blockquotes */
#blog-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 5px solid #2563eb;
    background-color: #f9fafb;
    color: #4b5563;
    font-style: italic;
}
#blog-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Images & Media */
#blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2em auto;
    display: block;
}
#blog-content figure {
    margin: 2em 0;
}
#blog-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5em;
}

/* Tables */
#blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.95em;
}
#blog-content th, #blog-content td {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    text-align: left;
}
#blog-content th {
    background-color: #f3f4f6;
    font-weight: 700;
    color: #111827;
}

/* Code Blocks */
#blog-content code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    color: #dc2626;
}
#blog-content pre {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 1.5em;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2em 0;
}
#blog-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Horizontal Rule */
#blog-content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 3em 0;
}


/* ==========================================================================
   IMMUNITY ZONE: Restore Recommendation Injection Styles
   ========================================================================== */
#blog-content .rec-calculators-wrapper {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
    margin-top: 2.5rem !important;
    margin-bottom: 2rem !important;
    padding: 1.5rem !important;
    color: #111827 !important;
    font-size: 1rem !important;
}
#blog-content .rec-calc-header {
    border-bottom: 1px solid #f3f4f6 !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 1rem !important;
}
#blog-content .rec-calc-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
}
#blog-content .rec-calc-header-icon {
    color: #2563eb !important;
}
#blog-content .rec-calc-title {
    color: #111827 !important;
    font-weight: 700 !important;
    margin: 0 !important;
}
#blog-content .rec-calculators-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.875rem !important;
}
@media (max-width: 640px) {
    #blog-content .rec-calculators-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
#blog-content .rec-calc-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    padding: 1.25rem 0.75rem !important;
    background-color: #f9fafb !important;
    border: 1px solid #f3f4f6 !important;
    border-radius: 0.75rem !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#blog-content .rec-calc-card:hover {
    background-color: #ffffff !important;
    border-color: #bfdbfe !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-3px) !important;
    color: #2563eb !important;
}
#blog-content .rec-calc-icon-box {
    width: 2.75rem !important;
    height: 2.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #eff6ff !important;
    border-radius: 0.625rem !important;
    color: #2563eb !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#blog-content .rec-calc-card:hover .rec-calc-icon-box {
    background-color: #2563eb !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
}
#blog-content .rec-calc-icon {
    width: 1.375rem !important;
    height: 1.375rem !important;
}
#blog-content .rec-calc-name {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    transition: color 0.2s ease !important;
}
#blog-content .rec-calc-card:hover .rec-calc-name {
    color: #2563eb !important;
}