/* --- Global Resets & Defaults --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Verdana', 'Arial', sans-serif; /* Accessible sans-serif font stack */
    line-height: 1.7; /* Increased for readability */
    background-color: #f8f9fa; /* Very light grey background */
    color: #343a40; /* Dark grey text for good contrast */
    font-size: 16px; /* Base font size - can be adjusted by user's browser */
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: #2c3e50; /* A slightly desaturated dark blue for headings */
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 {
    font-size: 2.2em; /* Larger for main page titles */
    border-bottom: 3px solid #5dade2; /* A calming blue accent */
    padding-bottom: 0.5em;
    margin-top: 0; /* Remove default top margin for h1 in main content */
}

h2 {
    font-size: 1.8em;
    margin-top: 1.5em; /* Space above section titles */
    border-bottom: 1px solid #aed6f1; /* Lighter blue accent */
    padding-bottom: 0.3em;
}

h3 {
    font-size: 1.4em;
    color: #34495e; /* Slightly lighter dark blue */
    margin-top: 1.2em;
}

p {
    margin-bottom: 1em;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 20px; /* Standard indentation */
}

ul ul, ol ol {
    margin-bottom: 0.5em; /* Less space for nested lists */
}

li {
    margin-bottom: 0.5em;
}

a {
    color: #2980b9; /* A clear, accessible blue for links */
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: underline;
    color: #1f618d; /* Darker blue on hover/focus */
}

strong, b {
    font-weight: bold;
}

em, i {
    font-style: italic;
}

/* --- Layout & Structure --- */
header {
    background-color: #34495e; /* Dark blue-grey header */
    color: #ecf0f1; /* Light text for header */
    padding: 1em 0;
    text-align: center;
    border-bottom: 3px solid #2c3e50;
}

header nav a {
    color: #ecf0f1;
    margin: 0 10px;
    padding: 0.5em;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

header nav a:hover, header nav a:focus {
    background-color: #4a6572;
    text-decoration: none;
}

main.content-page {
    width: 90%;
    max-width: 800px; /* Optimal width for reading text */
    margin: 30px auto;
    padding: 25px 30px; /* More padding */
    background-color: #ffffff; /* Clean white for content area */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Softer shadow */
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 25px 0;
    font-size: 0.9em;
    color: #7f8c8d; /* Muted grey for footer */
    border-top: 1px solid #e0e0e0;
}

footer a {
    color: #7f8c8d;
}

hr {
    border: 0;
    height: 1px;
    background-color: #dfe6e9;
    margin: 2em 0;
}

/* --- Content Block Styling (Path Markers, Echoes, etc.) --- */
.path-markers, 
.echoes, 
.reflection-point, 
.toolkit,
.summary-points,
.highlight-box,
.disclaimer,
.important-note,
.quick-reflect {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding: 15px 20px;
    border-left: 5px solid; /* Main accent for these blocks */
    border-radius: 0 8px 8px 0; /* Rounded corners on one side */
    background-color: #f8f9fa; /* Slightly off-white background */
}

.path-markers { border-left-color: #5dade2; } /* Calming Blue */
.echoes { border-left-color: #82e0aa; } /* Gentle Green */
.reflection-point { border-left-color: #f7dc6f; } /* Soft Yellow */
.toolkit { border-left-color: #76d7c4; } /* Teal/Aqua */
.summary-points { border-left-color: #af7ac5; } /* Muted Purple */
.highlight-box { border-left-color: #f39c12; background-color: #fef5e7; } /* Warm Orange */

.echoes ul li, .echoes p { /* Italicize echoes content */
    font-style: italic;
    color: #525252; /* Slightly darker grey for echoes */
}

.disclaimer, .important-note {
    background-color: #fdebd0; /* Light orange/yellow for warnings */
    border-left-color: #e67e22; /* Stronger orange for warnings */
    font-weight: normal; /* Ensure it's not overly bold */
}
.disclaimer strong, .important-note strong {
    color: #d35400; /* Darker orange for strong text in disclaimers */
}

.quick-reflect { /* For short reflection prompts on landing pages */
    border-left-color: #f7dc6f;
    background-color: #fff Sodepo; /* Slightly different yellow background */
}


/* --- Fork in the Path Navigation --- */
nav.fork-in-path {
    margin-top: 2.5em;
    padding: 20px;
    background-color: #e9ecef; /* Very light grey, distinct from content */
    border: 1px solid #ced4da;
    border-radius: 8px;
}

nav.fork-in-path h2 {
    margin-top: 0;
    font-size: 1.5em;
    border-bottom: none;
    color: #495057; /* Darker grey for this heading */
}

nav.fork-in-path ul {
    list-style-type: none; /* Remove bullets */
    padding-left: 0;
}

nav.fork-in-path ul li {
    margin-bottom: 0.8em;
    line-height: 1.5;
}

nav.fork-in-path ul li a {
    color: #0056b3; /* Stronger blue for choice links */
    font-weight: bold; /* Make choices stand out */
    display: block; /* Make the whole area clickable */
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

nav.fork-in-path ul li a:hover, 
nav.fork-in-path ul li a:focus {
    background-color: #e0e0e0; /* Light hover effect */
    color: #003d80;
    text-decoration: none;
}

nav.fork-in-path ul li em { /* For the "(Turn to Page X...)" part */
    font-weight: normal;
    font-style: normal; /* Keep it standard or slightly italic if preferred */
    font-size: 0.9em;
    color: #545454;
    display: block; /* Puts it on a new line */
    margin-top: 3px;
}

/* For the very first "primary" choice button (e.g., on Intro page) */
nav.fork-in-path.primary-choice a {
    display: inline-block;
    padding: 12px 25px;
    background-color: #007bff; /* Primary button blue */
    color: white;
    border-radius: 5px;
    font-size: 1.15em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
nav.fork-in-path.primary-choice a:hover,
nav.fork-in-path.primary-choice a:focus {
    background-color: #0056b3;
    text-decoration: none;
}

.final-encouragement {
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    margin: 2em 0;
    color: #2c3e50;
}

nav.final-nav ul li a { /* Slightly different styling for final nav links if desired */
    font-weight: normal;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    body {
        font-size: 15px; /* Slightly smaller base for mobile */
    }
    main.content-page {
        width: 95%;
        padding: 20px 15px;
        margin: 15px auto;
    }

    h1 { font-size: 1.9em; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.3em; }

    header nav a {
        margin: 0 5px;
        padding: 0.3em;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    main.content-page {
        padding: 15px 10px;
    }
    nav.fork-in-path ul li a {
        padding: 6px 10px;
    }
    nav.fork-in-path.primary-choice a {
        padding: 10px 20px;
        font-size: 1.1em;
    }
}

/* --- Print Specific Styles (for print.css or @media print) --- */
@media print {
    body {
        background-color: #fff;
        font-size: 12pt; /* Standard print size */
        color: #000;
    }
    header, footer, nav.fork-in-path {
        display: none !important; /* Hide navigation elements for print */
    }
    main.content-page {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }
    a {
        color: #000;
        text-decoration: none; /* Remove underline for print unless essential */
    }
    /* Optional: Show URLs for links in print */
    /* a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-style: italic;
    } */
    .path-markers, .echoes, .reflection-point, .toolkit,
    .summary-points, .highlight-box, .disclaimer, .important-note {
        background-color: #f0f0f0; /* Light grey for print to save ink, or remove background */
        border-left-width: 3px;
        padding: 10px;
    }
}