﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ==========================================================================
   GLOBAL COMPONENT MATRIX & COLOR VARIABLES
   ========================================================================== */
:root {
    --primary: #10b981; /* Finance Green */
    --primary-dark: #059669;
    --bg: #ffffff;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #d1d5db;
    --card-inner: #f9fafb;
    --ad-bg: #e5e7eb;
}

body.dark-theme {
    --bg: #111827; /* Dark charcoal */
    --card: #1f2937; /* Off-black card structures */
    --text: #f9fafb; /* High contrast text */
    --muted: #9ca3af; /* Mid-tone gray details */
    --border: #374151; /* Subdued dark borders */
    --card-inner: #111827;
    --ad-bg: #374151;
}

/* Base Transitions & Formatting */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body, .card, select, input, .main-stat, .sub-row, button, .chart-bar {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body {
    background-color: var(--bg);
    color: var(--text);
    /*padding: 24px;*/
    line-height: 1.5;
}



/* DEFAULT THEME: Trust & Tech (Option A) */
:root, [data-theme="trust-tech"] {
    --bg-page: #FFFFFF;
    --bg-card: #F8FAFC;
    --tool-title: #0A2540; /* Deep Navy */
    --tool-subtitle: #4A5568; /* Slate Gray */
    --tool-how-to: #008080; /* Teal */
    --tool-formula: #2D3748; /* Charcoal */
    --tool-faq: #0A2540; /* Deep Navy */

    --blog-title: #0A2540; /* Deep Navy */
    --blog-content: #1A202C; /* Off-Black */

    --interactive-accent: #00D4B2; /* Bright Teal Action Buttons */
    --text-on-accent: #0A2540;
}

/* ALTERNATE THEME: Wealth & Growth (Option B) */
[data-theme="wealth-growth"] {
    --bg-page: #FAFAFA;
    --bg-card: #F4F7F5;
    --tool-title: #1B4332; /* Forest Green */
    --tool-subtitle: #52B788; /* Mint Green */
    --tool-how-to: #2D6A4F; /* Medium Leaf Green */
    --tool-formula: #404040; /* Dark Matte Gray */
    --tool-faq: #1B4332; /* Forest Green */

    --blog-title: #1B4332; /* Forest Green */
    --blog-content: #262626; /* Charcoal Black */

    --interactive-accent: #52B788; /* Mint Green Action Buttons */
    --text-on-accent: #FFFFFF;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 26px;
    letter-spacing: -0.5px;
    user-select: none;
}

.logo-seek {
    font-weight: 800;
    color: var(--tool-title);
    transition: color 0.3s ease;
}

.logo-bud {
    font-weight: 800;
    color: var(--interactive-accent);
    transition: color 0.3s ease;
}






/* DEFAULT THEME: Trust & Tech (Option A) */
:root, [data-theme="trust-tech"] {
    --bg-page: #FFFFFF;
    --bg-card: #F8FAFC;
    --tool-title: #0A2540; /* Deep Navy */
    --tool-subtitle: #4A5568; /* Slate Gray */
    --tool-how-to: #008080; /* Teal */
    --tool-formula: #2D3748; /* Charcoal */
    --tool-faq: #0A2540; /* Deep Navy */

    --blog-title: #0A2540; /* Deep Navy */
    --blog-content: #1A202C; /* Off-Black */

    --interactive-accent: #00D4B2; /* Bright Teal Action Buttons */
    --text-on-accent: #0A2540;
}

/* ALTERNATE THEME: Wealth & Growth (Option B) */
[data-theme="wealth-growth"] {
    --bg-page: #FAFAFA;
    --bg-card: #F4F7F5;
    --tool-title: #1B4332; /* Forest Green */
    --tool-subtitle: #52B788; /* Mint Green */
    --tool-how-to: #2D6A4F; /* Medium Leaf Green */
    --tool-formula: #404040; /* Dark Matte Gray */
    --tool-faq: #1B4332; /* Forest Green */

    --blog-title: #1B4332; /* Forest Green */
    --blog-content: #262626; /* Charcoal Black */

    --interactive-accent: #52B788; /* Mint Green Action Buttons */
    --text-on-accent: #FFFFFF;
}


.tool-title {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--tool-title);
    transition: color 0.3s ease;
}

.tool-subtitle {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--tool-subtitle);
    transition: color 0.3s ease;
}

.tool-howto-title {
    font-size: 20px;
    /*margin-top: 32px;*/
    margin-bottom: 12px;
    color: var(--tool-how-to);
    transition: color 0.3s ease;
    font-weight: 700;
}

.tool-howto-title::before {
    content: '💡 '
}

.tool-formula-title {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--tool-formula);
    transition: color 0.3s ease;
    font-weight: 700;
}

.tool-formula-title::before {
    content: '🧮 '
}

.tool-faq-title {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--tool-faq);
    transition: color 0.3s ease;
    font-weight: 700;
}

.tool-faq-title::before {
    content: '🙋 '
}