/* ResolvingDebts.com - Master Stylesheet 2026
   Framework: Dashboard + Sidebar + Capped Content 
*/

:root {
    /* Professional Finance Palette */
    --primary-navy: #002d5b;    /* Deep trust blue */
    --accent-gold: #c5a059;     /* Regulatory gold */
    --sidebar-bg: #f8fafc;      /* Soft off-white for nav */
    --content-bg: #ffffff;      /* Pure white for reading */
    --text-slate: #334155;      /* Slate grey for readability */
    --summary-bg: #fffbf0;      /* Warm beige for highlights */
    
    /* Layout Variables */
    --sidebar-width: 260px;
    --max-text-width: 70ch;     /* The "Readability Sweet Spot" */
}

/* 1. Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    line-height: 1.8;
    background-color: #eef2f6;
    color: var(--text-slate);
    -webkit-font-smoothing: antialiased;
}

/* 2. Framework Layout */
.site-wrapper {
    display: flex;
    max-width: 1400px; /* Limits growth on ultra-wide monitors */
    margin: 0 auto;
    background: var(--content-bg);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid #e2e8f0;
    padding: 2.5rem 1.5rem;
    position: sticky; /* Stays fixed while you scroll content */
    top: 0;
    height: 100vh;
}

.sidebar h4 {
    color: var(--primary-navy);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav li {
    margin-bottom: 0.8rem;
}

.sidebar nav a {
    text-decoration: none;
    color: var(--text-slate);
    font-weight: 500;
    font-size: 1rem;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar nav a:hover {
    background: #e2e8f0;
    color: var(--primary-navy);
}

/* 3. Main Content Area */
.content {
    flex: 1;
    padding: 4rem 10% 4rem 10%; /* Responsive internal padding */
    display: flex;
    flex-direction: column;
}

article {
    max-width: var(--max-text-width); /* KEEPS TEXT FROM STRETCHING */
    margin: 0 auto; /* Centers the text block inside the content area */
}

/* 4. Typography & Elements */
h1 {
    font-size: 2.6rem;
    color: var(--primary-navy);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin: 2.5rem 0 1rem 0;
    font-weight: 700;
}

.summary {
    background-color: var(--summary-bg);
    border-left: 5px solid var(--accent-gold);
    padding: 1.5rem 2rem;
    font-size: 1.15rem;
    color: #4b3f35;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* Actionable Checklists */
.checklist {
    list-style: none;
    margin: 1.5rem 0;
}

.checklist li {
    padding: 12px 0 12px 40px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 10px;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Data Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

th {
    background: var(--primary-navy);
    color: white;
    text-align: left;
    padding: 14px;
    font-weight: 600;
}

td {
    padding: 14px;
    border-bottom: 1px solid #edf2f7;
}

tr:nth-child(even) { background-color: #fcfcfc; }

/* 5. Mobile Responsiveness */
@media (max-width: 1000px) {
    .site-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
    }

    .content {
        padding: 2rem 1.5rem;
    }
}
