/**
 * Trustywell - Public Health Portal Stylesheet (public.css)
 * -----------------------------------------------------------------------------
 * Specialized styling for public reader experience, typography accents,
 * healthcare trust cues, and cohesive Light / Dark Mode brand standardization.
 * Premium Forest Green Theme (Exact Specification)
 * -----------------------------------------------------------------------------
 */

/* =============================================================================
 * 1. CENTRALIZED DESIGN TOKENS (Single Source of Truth)
 * ============================================================================= */
:root {
    /* Brand Light Mode Palette (Preserved 100%) */
    --color-primary: #D2E8DD;
    --color-secondary: #A8D1C2;
    --color-accent: #07382B;
    --color-gold: #C9A24D;
    --color-bg-start: #EAF4EF;
    --color-bg-end: #D7EDE3;
    --color-bg: #EAF4EF;
    --color-header: #EAF4EF;
    --color-footer: #062A20;
    --color-footer-text: #A8D1C2;
    --color-text: #0C2D24;
    --color-text-secondary: #4A635A;
    --color-text-muted: #6B857C;
    --color-button: #063126;
    --color-button-text: #C9A24D;
    --color-card: #FFFFFF;
    --color-border: #CBE3D7;
    --color-border-subtle: #D8ECE2;
    --color-hero-btn: #C9A24D;
    --color-surface-secondary: #F3F9F6;
    --color-success: #00B574;
    --color-warning: #F09B13;
    --color-error: #E64A4A;
    --color-link: #07382B;
    --color-link-hover: #062A20;
}

html.dark {
    color-scheme: dark;
    /* Exact Forest Green Dark Mode Specification */
    /* Background & Surfaces */
    --tw-dark-bg: #0B1310;
    --tw-dark-card: #131F1A;
    --tw-dark-surface-2: #172620;
    --tw-dark-border: #1F332A;
    --tw-dark-glow: rgba(45, 85, 68, 0.3);

    /* Typography */
    --tw-dark-heading: #E2EFE9;
    --tw-dark-gold: #C9A24D;
    --tw-dark-body: #94A79E;
    --tw-dark-muted: #6B8276;
    --tw-dark-link: #C6E7D8;

    /* Buttons & Interactive */
    --tw-dark-btn-primary-bg: #EAF4EE;
    --tw-dark-btn-primary-text: #0B1310;
    --tw-dark-btn-secondary-bg: #103B2B;
    --tw-dark-btn-secondary-text: #C6E7D8;
    --tw-dark-btn-border: #2B5140;
    --tw-dark-btn-hover: #2E8B68;

    /* Badges & Labels */
    --tw-dark-badge-bg: #103B2B;
    --tw-dark-badge-text: #C6E7D8;

    /* Slider Controls */
    --tw-dark-slider-arrow-bg: #172620;
    --tw-dark-slider-arrow-icon: #A3B8AD;
    --tw-dark-slider-dot-active: #2E8B68;
    --tw-dark-slider-dot-inactive: #23382F;

    /* Standardized Brand Dark Mode Tokens */
    --color-primary: #131F1A;
    --color-secondary: #172620;
    --color-accent: #2E8B68;
    --color-gold: #C9A24D;
    --color-bg-start: #0B1310;
    --color-bg-end: #0B1310;
    --color-bg: #0B1310;
    --color-header: #0B1310;
    --color-footer: #0B1310;
    --color-footer-text: #94A79E;
    --color-text: #94A79E;
    --color-text-secondary: #94A79E;
    --color-text-muted: #6B8276;
    --color-button: #EAF4EE;
    --color-button-text: #0B1310;
    --color-card: #131F1A;
    --color-border: #1F332A;
    --color-border-subtle: #1F332A;
    --color-surface-secondary: #172620;
    --color-hero-btn: #C9A24D;
    --color-success: #00B574;
    --color-warning: #F09B13;
    --color-error: #E64A4A;
    --color-link: #C6E7D8;
    --color-link-hover: #2E8B68;
}

/* =============================================================================
 * 2. PUBLIC BRAND ACCENTS & CALLOUTS (Light Mode Preserved)
 * ============================================================================= */
/* Medical Disclaimer Banner Accent */
.medical-disclaimer-callout {
    border-left: 4px solid var(--color-warning);
    background-color: #fffbeb;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    color: #78350F;
}

html.dark .medical-disclaimer-callout {
    background-color: #172620;
    border-left-color: #C9A24D;
    color: #E2EFE9;
    border: 1px solid #1F332A;
    border-left-width: 4px;
}

/* Article Reading Progress Indicator */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, #00B574, #2E8B68, #C9A24D);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Category Pill Badges */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #D2E8DD;
    color: #07382B;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.category-badge:hover {
    background-color: #A8D1C2;
    color: #062A20;
}

html.dark .category-badge {
    background-color: #103B2B;
    color: #C6E7D8;
    border: 1px solid #2B5140;
}

html.dark .category-badge:hover {
    background-color: #2E8B68;
    color: #FFFFFF;
    border-color: #2E8B68;
}

/* Tag Pills */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #EAF4EF;
    color: #0C2D24;
    transition: all 0.15s ease;
}

.tag-badge:hover {
    background-color: #D2E8DD;
    color: #07382B;
}

html.dark .tag-badge {
    background-color: #103B2B;
    color: #C6E7D8;
    border: 1px solid #2B5140;
}

html.dark .tag-badge:hover {
    background-color: #2E8B68;
    color: #FFFFFF;
    border-color: #2E8B68;
}

/* =============================================================================
 * 3. COMPLETE FOREST GREEN DARK MODE SYSTEM
 * ============================================================================= */
/* Global Page Background & Root */
html.dark {
    background-color: #0B1310 !important;
}

html.dark body {
    background-color: #0B1310 !important;
    background-image: none !important;
    color: #94A79E !important;
}

/* Header & Navigation in Forest Green Dark Mode */
html.dark header,
html.dark header.sticky,
html.dark header.bg-white,
html.dark header[class*="bg-"] {
    background-color: rgba(11, 19, 16, 0.95) !important;
    border-color: #1F332A !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5) !important;
}

html.dark header nav a {
    color: #94A79E !important;
}

html.dark header nav a:hover,
html.dark header nav a.active {
    color: #C6E7D8 !important;
}

/* Header Desktop Secondary Navigation Bar */
html.dark .bg-\[\#F1F9F4\],
html.dark [class*="dark:bg-\[\#0A261E\]"] {
    background-color: #131F1A !important;
    border-color: #1F332A !important;
}

/* Mobile Navigation Drawer & Search Bar */
html.dark #mobile-menu,
html.dark #mobile-search-bar {
    background-color: #131F1A !important;
    border-color: #1F332A !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6) !important;
}

html.dark #mobile-menu a {
    color: #E2EFE9 !important;
}

html.dark #mobile-menu a:hover {
    background-color: #172620 !important;
    color: #C6E7D8 !important;
}

/* Header Action Buttons, Icons & Theme Toggle */
html.dark header button,
html.dark header .theme-toggle-btn,
html.dark header a[title],
html.dark #mobile-menu-toggle {
    color: #C6E7D8 !important;
}

html.dark header button:hover,
html.dark header .theme-toggle-btn:hover,
html.dark header a[title]:hover,
html.dark #mobile-menu-toggle:hover {
    background-color: #172620 !important;
    color: #2E8B68 !important;
}

html.dark header .theme-icon-sun {
    color: #C9A24D !important;
}

/* Cart Counter Badge in Dark Mode */
html.dark header span[class*="bg-\[\#07382B\]"],
html.dark header span.rounded-full {
    background-color: #103B2B !important;
    color: #C6E7D8 !important;
    border-color: #2B5140 !important;
}

/* Top Announcement & Medical Notice Bar */
html.dark aside[aria-label*="Announcement"],
html.dark aside.bg-\[\#07382B\],
html.dark .announcement-bar {
    background-color: #0B1310 !important;
    border-bottom: 1px solid #1F332A !important;
    color: #94A79E !important;
}

html.dark aside.bg-\[\#07382B\] span,
html.dark aside.bg-\[\#07382B\] p {
    color: #94A79E !important;
}

html.dark aside.bg-\[\#07382B\] strong,
html.dark aside.bg-\[\#07382B\] .text-\[\#C9A24D\] {
    color: #C9A24D !important;
}

/* Cards & Containers in Forest Green Dark Mode */
html.dark .bg-white,
html.dark .card,
html.dark .trustywell-card,
html.dark article.bg-white,
html.dark .health-guide-card article,
html.dark .bg-\[\#EAF4EF\],
html.dark .bg-\[\#EAF4EE\],
html.dark .bg-\[\#E8F2EC\],
html.dark .bg-\[\#D2E8DD\],
html.dark .bg-\[\#D7EDE3\],
html.dark .bg-\[\#F4F9F6\],
html.dark .bg-\[\#F3F9F6\],
html.dark .bg-\[\#D8E6DE\],
html.dark [class*="bg-\[\#EAF4EF\]"],
html.dark [class*="bg-\[\#E8F2EC\]"],
html.dark [class*="dark:bg-\[\#112620\]"],
html.dark [class*="dark:bg-\[\#12231E\]"],
html.dark [class*="dark:bg-\[\#0E1D18\]"] {
    background-color: #131F1A !important;
    border-color: #1F332A !important;
    color: #94A79E !important;
}

/* Controlled Subtle Shadows and Separation */
html.dark .card,
html.dark .trustywell-card,
html.dark .bg-white.rounded-2xl,
html.dark .bg-white.rounded-3xl,
html.dark .wellness-card-elevate {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(45, 85, 68, 0.15) !important;
}

html.dark .wellness-card-elevate:hover {
    box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(46, 139, 104, 0.35) !important;
    border-color: rgba(45, 85, 68, 0.6) !important;
}

/* Secondary Surfaces (Thumbnails, Nested Panels, Secondary Cards) */
html.dark .bg-slate-50,
html.dark .bg-gray-50,
html.dark .bg-slate-100,
html.dark .bg-gray-100,
html.dark [class*="dark:bg-\[\#162E25\]"],
html.dark [class*="dark:bg-\[\#16332A\]"],
html.dark [class*="dark:bg-\[\#18362B\]"] {
    background-color: #172620 !important;
    border-color: #1F332A !important;
}

/* Hero Slider Section in Dark Mode */
html.dark #hero-slider {
    background-color: #131F1A !important;
    border: 1px solid #1F332A !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(45, 85, 68, 0.2) !important;
}

html.dark #hero-slider .bg-gradient-to-r {
    background: linear-gradient(to right, #131F1A 0%, rgba(19, 31, 26, 0.95) 50%, rgba(19, 31, 26, 0.2) 80%, transparent 100%) !important;
}

/* Primary Headings & Titles (Soft Mint #E2EFE9) */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
    color: #E2EFE9 !important;
}

html.dark h1 a,
html.dark h2 a,
html.dark h3 a,
html.dark h4 a,
html.dark h5 a,
html.dark h6 a {
    color: #E2EFE9 !important;
}

html.dark h1 a:hover,
html.dark h2 a:hover,
html.dark h3 a:hover,
html.dark h4 a:hover,
html.dark h5 a:hover,
html.dark h6 a:hover {
    color: #C6E7D8 !important;
}

/* Secondary Headings & Antique-Gold Accents (#C9A24D) */
html.dark .text-gold,
html.dark .text-\[\#C9A24D\],
html.dark [class*="text-\[\#C9A24D\]"],
html.dark span.bg-\[\#C9A24D\] {
    color: #C9A24D !important;
}

html.dark span.bg-\[\#C9A24D\],
html.dark .badge-gold {
    background-color: #C9A24D !important;
    color: #0B1310 !important;
    border: none !important;
}

/* Body Text & Descriptions (Muted Sage #94A79E) */
html.dark p,
html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-gray-900,
html.dark .text-gray-800,
html.dark .text-emerald-950,
html.dark .text-emerald-900,
html.dark .text-slate-700,
html.dark .text-slate-600,
html.dark .text-gray-700,
html.dark .text-gray-600,
html.dark .text-\[\#0C2D24\],
html.dark .text-\[\#375248\],
html.dark .text-\[\#4A635A\],
html.dark .text-\[\#4A7265\],
html.dark .text-\[\#005C3B\] {
    color: #94A79E !important;
}

html.dark strong,
html.dark b {
    color: #E2EFE9 !important;
}

/* Metadata, Dates, SKU, Read-time & Secondary Information (#6B8276) */
html.dark time,
html.dark .text-slate-500,
html.dark .text-slate-400,
html.dark .text-gray-500,
html.dark .text-gray-400,
html.dark .text-\[\#6B857C\],
html.dark .text-\[\#6B8276\],
html.dark .text-\[\#7A9187\] {
    color: #6B8276 !important;
}

/* Important Links (#C6E7D8 with Hover #2E8B68) */
html.dark a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-gold):not([class*="bg-\[\#07382B\]"]):not([class*="bg-\[\#063126\]"]):not([class*="bg-\[\#C9A24D\]"]):not(header nav a):not(header button) {
    color: #C6E7D8;
    transition: color 0.15s ease;
}

html.dark a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-gold):not([class*="bg-\[\#07382B\]"]):not([class*="bg-\[\#063126\]"]):not([class*="bg-\[\#C9A24D\]"]):not(header nav a):hover {
    color: #2E8B68 !important;
}

/* Subtle Borders (#1F332A) */
html.dark .border,
html.dark .border-b,
html.dark .border-t,
html.dark .border-r,
html.dark .border-l,
html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark .border-slate-300,
html.dark .border-gray-200,
html.dark .border-gray-300,
html.dark .border-\[\#CBE3D7\],
html.dark .border-\[\#E2EFE7\],
html.dark .border-\[\#EAF4EF\],
html.dark .border-\[\#D5E5DC\],
html.dark .border-\[\#294138\],
html.dark .border-\[\#1E362D\],
html.dark .border-\[\#0A3D2F\] {
    border-color: #1F332A !important;
}

html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-gray-100 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-gray-200 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-\[\#CBE3D7\] > :not([hidden]) ~ :not([hidden]),
html.dark .divide-\[\#EAF4EF\] > :not([hidden]) ~ :not([hidden]),
html.dark .divide-\[\#294138\] > :not([hidden]) ~ :not([hidden]),
html.dark .divide-\[\#1F332A\] > :not([hidden]) ~ :not([hidden]) {
    border-color: #1F332A !important;
}

/* =============================================================================
 * BUTTONS & INTERACTIVE ELEMENTS (Exact Forest Green Spec)
 * ============================================================================= */
/* Primary Light Button (Background: #EAF4EE, Text: #0B1310, Hover: #C6E7D8) */
html.dark .btn-primary,
html.dark a.bg-\[\#07382B\],
html.dark button.bg-\[\#07382B\],
html.dark a.bg-\[\#063126\],
html.dark button.bg-\[\#063126\],
html.dark input[type="submit"].bg-\[\#07382B\] {
    background-color: #EAF4EE !important;
    color: #0B1310 !important;
    border: 1px solid #EAF4EE !important;
    font-weight: 700;
}

html.dark .btn-primary:hover,
html.dark a.bg-\[\#07382B\]:hover,
html.dark button.bg-\[\#07382B\]:hover,
html.dark a.bg-\[\#063126\]:hover,
html.dark button.bg-\[\#063126\]:hover {
    background-color: #C6E7D8 !important;
    color: #0B1310 !important;
    border-color: #C6E7D8 !important;
}

html.dark .btn-primary svg,
html.dark a.bg-\[\#07382B\] svg,
html.dark button.bg-\[\#07382B\] svg,
html.dark a.bg-\[\#063126\] svg,
html.dark button.bg-\[\#063126\] svg {
    color: #0B1310 !important;
}

/* Secondary Button (Background: #103B2B, Text: #C6E7D8, Border: #2B5140, Hover: #2E8B68) */
html.dark .btn-secondary,
html.dark a.border-\[\#07382B\],
html.dark button.border-\[\#07382B\],
html.dark [class*="dark:border-\[\#8FD3B5\]"],
html.dark [class*="dark:text-\[\#8FD3B5\]"] {
    background-color: #103B2B;
    color: #C6E7D8;
    border: 1px solid #2B5140;
}

html.dark .btn-secondary:hover,
html.dark a.border-\[\#07382B\]:hover,
html.dark button.border-\[\#07382B\]:hover {
    background-color: #2E8B68 !important;
    color: #FFFFFF !important;
    border-color: #2E8B68 !important;
}

/* Gold Button Accent */
html.dark .btn-gold {
    background-color: #C9A24D !important;
    color: #0B1310 !important;
    border: 1px solid #C9A24D !important;
    font-weight: 700;
}

html.dark .btn-gold:hover {
    background-color: #D6B366 !important;
    color: #0B1310 !important;
}

/* Badges & Labels (Background: #103B2B, Text: #C6E7D8) */
html.dark .badge,
html.dark span.bg-\[\#07382B\],
html.dark span.bg-\[\#D2E8DD\],
html.dark [class*="dark:bg-\[\#062A20\]"],
html.dark [class*="dark:bg-\[\#18362B\]"] {
    background-color: #103B2B !important;
    color: #C6E7D8 !important;
    border: 1px solid #2B5140 !important;
}

/* Wishlist Toggle Button in Dark Mode */
html.dark .wishlist-toggle-btn {
    background-color: #172620 !important;
    border-color: #1F332A !important;
    color: #A3B8AD !important;
}

html.dark .wishlist-toggle-btn:hover {
    background-color: #1F332A !important;
    color: #E64A4A !important;
    border-color: #7F1D1D !important;
}

/* =============================================================================
 * SLIDER CONTROLS (Exact Forest Green Spec)
 * Arrow button bg: #172620, Arrow icon: #A3B8AD
 * Active pagination dot: #2E8B68, Inactive pagination dot: #23382F
 * ============================================================================= */
html.dark #slider-prev-btn,
html.dark #slider-next-btn,
html.dark #guides-prev-btn,
html.dark #guides-next-btn,
html.dark #featured-prev-btn,
html.dark #featured-next-btn,
html.dark .slider-arrow-btn {
    background-color: #172620 !important;
    border-color: #1F332A !important;
    color: #A3B8AD !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

html.dark #slider-prev-btn:hover,
html.dark #slider-next-btn:hover,
html.dark #guides-prev-btn:hover,
html.dark #guides-next-btn:hover,
html.dark #featured-prev-btn:hover,
html.dark #featured-next-btn:hover,
html.dark .slider-arrow-btn:hover {
    background-color: #1F332A !important;
    color: #E2EFE9 !important;
    border-color: #2E8B68 !important;
}

html.dark #slider-prev-btn svg,
html.dark #slider-next-btn svg,
html.dark #guides-prev-btn svg,
html.dark #guides-next-btn svg,
html.dark #featured-prev-btn svg,
html.dark #featured-next-btn svg {
    color: #A3B8AD !important;
}

html.dark #slider-prev-btn:hover svg,
html.dark #slider-next-btn:hover svg,
html.dark #guides-prev-btn:hover svg,
html.dark #guides-next-btn:hover svg,
html.dark #featured-prev-btn:hover svg,
html.dark #featured-next-btn:hover svg {
    color: #E2EFE9 !important;
}

/* Active Pagination Dot (#2E8B68) */
html.dark .slider-dot[aria-current="true"],
html.dark .guide-dot[aria-current="true"],
html.dark .featured-dot[aria-current="true"],
html.dark .slider-dot.active,
html.dark .slider-dot.w-5,
html.dark .guide-dot.w-5,
html.dark .featured-dot.w-5 {
    background-color: #2E8B68 !important;
}

/* Inactive Pagination Dot (#23382F) */
html.dark .slider-dot:not([aria-current="true"]):not(.w-5):not(.active),
html.dark .guide-dot:not([aria-current="true"]):not(.w-5):not(.active),
html.dark .featured-dot:not([aria-current="true"]):not(.w-5):not(.active) {
    background-color: #23382F !important;
}

/* =============================================================================
 * FORMS, INPUTS & CONTROLS (Exact Forest Green Spec)
 * Input bg: dark green (#172620), Input text: #E2EFE9, Placeholder: #6B8276
 * Input border: #1F332A, Focus glow: rgba(45, 85, 68, 0.3)
 * ============================================================================= */
html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
html.dark textarea,
html.dark select {
    background-color: #172620 !important;
    color: #E2EFE9 !important;
    border: 1px solid #1F332A !important;
}

html.dark select option {
    background-color: #172620 !important;
    color: #E2EFE9 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #6B8276 !important;
}

html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
    border-color: #2E8B68 !important;
    box-shadow: 0 0 0 2px rgba(45, 85, 68, 0.3) !important;
    outline: none !important;
}

html.dark input:disabled,
html.dark textarea:disabled,
html.dark select:disabled {
    background-color: #131F1A !important;
    color: #6B8276 !important;
    border-color: #1F332A !important;
    cursor: not-allowed;
}

html.dark label {
    color: #E2EFE9 !important;
}

/* Radio Cards in Checkout & Variants */
html.dark label:has(input[type="radio"]:checked) {
    background-color: #103B2B !important;
    border-color: #2E8B68 !important;
}

/* =============================================================================
 * PRODUCT CARDS & E-COMMERCE
 * ============================================================================= */
html.dark .product-card,
html.dark .order-summary-card {
    background-color: #131F1A !important;
    border: 1px solid #1F332A !important;
}

html.dark .product-price {
    color: #E2EFE9 !important;
}

html.dark .product-price-sale {
    color: #C9A24D !important;
}

/* =============================================================================
 * TABLES IN DARK MODE
 * ============================================================================= */
html.dark table {
    border-color: #1F332A !important;
}

html.dark table thead tr,
html.dark table thead th {
    background-color: #172620 !important;
    color: #E2EFE9 !important;
    border-color: #1F332A !important;
}

html.dark table tbody tr {
    background-color: #131F1A !important;
    border-color: #1F332A !important;
    color: #94A79E !important;
}

html.dark table tbody tr:hover {
    background-color: rgba(46, 139, 104, 0.12) !important;
}

html.dark table td {
    border-color: #1F332A !important;
    color: #94A79E !important;
}

/* =============================================================================
 * ALERTS, CALLOUTS & NOTIFICATIONS
 * ============================================================================= */
html.dark .flash-alert.bg-emerald-50,
html.dark .bg-emerald-50,
html.dark .bg-emerald-100 {
    background-color: #103B2B !important;
    color: #C6E7D8 !important;
    border-color: #2B5140 !important;
}

html.dark .flash-alert.bg-amber-50,
html.dark .bg-amber-50,
html.dark .bg-amber-100 {
    background-color: #2A200B !important;
    color: #FDE68A !important;
    border-color: #5C4412 !important;
}

html.dark .flash-alert.bg-rose-50,
html.dark .bg-rose-50,
html.dark .bg-rose-100,
html.dark .bg-red-50,
html.dark .bg-red-100 {
    background-color: #2E1214 !important;
    color: #FCA5A5 !important;
    border-color: #631E23 !important;
}

html.dark .flash-alert.bg-sky-50,
html.dark .bg-sky-50,
html.dark .bg-sky-100 {
    background-color: #10292B !important;
    color: #A5F3FC !important;
    border-color: #1C4B4E !important;
}

/* =============================================================================
 * PUBLIC FOOTER IN FOREST GREEN DARK MODE
 * ============================================================================= */
html.dark footer,
html.dark footer.bg-\[\#062A20\] {
    background-color: #0B1310 !important;
    border-top: 1px solid #1F332A !important;
    color: #94A79E !important;
}

html.dark footer h4 {
    color: #E2EFE9 !important;
}

html.dark footer a {
    color: #94A79E !important;
}

html.dark footer a:hover {
    color: #C6E7D8 !important;
}

html.dark footer input,
html.dark footer input.bg-\[\#062A20\] {
    background-color: #172620 !important;
    border: 1px solid #1F332A !important;
    color: #E2EFE9 !important;
}

html.dark footer input::placeholder {
    color: #6B8276 !important;
}

html.dark footer button[type="submit"] {
    background-color: #103B2B !important;
    color: #C6E7D8 !important;
}

html.dark footer button[type="submit"]:hover {
    background-color: #2E8B68 !important;
    color: #FFFFFF !important;
}

html.dark footer .border-t {
    border-color: #1F332A !important;
}

html.dark footer p {
    color: #94A79E !important;
}

/* =============================================================================
 * 4. ARTICLE PROSE & RICH-TEXT TYPOGRAPHY (Light Mode Preserved)
 * ============================================================================= */
.prose {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #0C2D24;
}

.prose h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #07382B;
}

.prose h2 {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 2.25rem;
    margin-bottom: 0.875rem;
    color: #07382B;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #EAF4EF;
}

.prose h3 {
    font-size: 1.3125rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 1.75rem;
    margin-bottom: 0.625rem;
    color: #07382B;
}

.prose h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.45;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #07382B;
}

.prose h5, .prose h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #07382B;
}

.prose p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.prose ul {
    list-style-type: disc !important;
    padding-left: 1.75rem !important;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.prose ol {
    list-style-type: decimal !important;
    padding-left: 1.75rem !important;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
}

.prose li {
    margin-bottom: 0.375rem;
    padding-left: 0.25rem;
}

.prose li > ul,
.prose li > ol {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.prose strong, .prose b {
    font-weight: 700;
    color: #07382B;
}

.prose em, .prose i {
    font-style: italic;
}

.prose u {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose s, .prose del, .prose strike {
    text-decoration: line-through;
    opacity: 0.8;
}

.prose sub, .prose sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
.prose sup { top: -0.5em; }
.prose sub { bottom: -0.25em; }

.prose mark {
    background-color: #FFF8EB;
    color: #784400;
    padding: 0.1em 0.35em;
    border-radius: 0.25rem;
}

.prose a {
    color: #07382B;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.prose a:hover {
    color: #C9A24D;
}

.prose blockquote {
    border-left: 4px solid #C9A24D;
    background-color: #F3F9F6;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #0C2D24;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.prose thead th {
    background-color: #EAF4EF;
    color: #07382B;
    font-weight: 700;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid #CBE3D7;
}

.prose tbody td {
    padding: 0.625rem 1rem;
    border: 1px solid #CBE3D7;
    vertical-align: top;
}

.prose tbody tr:nth-child(even) {
    background-color: #FBFDFB;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.prose figure {
    margin: 1.75rem 0;
}

.prose figcaption {
    font-size: 0.8125rem;
    text-align: center;
    color: #64748B;
    margin-top: 0.5rem;
}

.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background-color: #EAF4EF;
    color: #07382B;
    padding: 0.15rem 0.4rem;
    border-radius: 0.375rem;
    font-size: 0.875em;
    font-weight: 500;
}

.prose pre {
    background-color: #0B1714;
    color: #D2E8DD;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.prose hr {
    border: 0;
    border-top: 1px solid #CBE3D7;
    margin: 2rem 0;
}

/* Article Prose in Forest Green Dark Mode */
html.dark .prose {
    color: #94A79E !important;
}

html.dark .prose h1,
html.dark .prose h2,
html.dark .prose h3,
html.dark .prose h4,
html.dark .prose h5,
html.dark .prose h6 {
    color: #E2EFE9 !important;
}

html.dark .prose strong,
html.dark .prose b {
    color: #E2EFE9 !important;
}

html.dark .prose h2 {
    border-bottom-color: #1F332A !important;
}

html.dark .prose a {
    color: #C6E7D8 !important;
}

html.dark .prose a:hover {
    color: #2E8B68 !important;
}

html.dark .prose blockquote {
    background-color: #172620 !important;
    border-left-color: #C9A24D !important;
    color: #E2EFE9 !important;
}

html.dark .prose thead th {
    background-color: #172620 !important;
    border-color: #1F332A !important;
    color: #E2EFE9 !important;
}

html.dark .prose tbody td {
    border-color: #1F332A !important;
    color: #94A79E !important;
}

html.dark .prose tbody tr:nth-child(even) {
    background-color: #172620 !important;
}

html.dark .prose code {
    background-color: #172620 !important;
    color: #C6E7D8 !important;
    border: 1px solid #1F332A !important;
}

html.dark .prose pre {
    background-color: #07100D !important;
    color: #C6E7D8 !important;
    border: 1px solid #1F332A !important;
}

html.dark .prose hr {
    border-top-color: #1F332A !important;
}

html.dark .prose figcaption {
    color: #6B8276 !important;
}
