/* Page-Specific Styles (e.g., Entry Page) */

/* New container for the entire page content to manage overall flow */
.entry-page-container {
    padding: 20px; /* Consistent padding around the entire entry content */
    max-width: 1200px;
    margin: 0 auto; /* Center the content */
}

/* Entry Title (Full Width) */
.entry-title {
    color: black;
    margin-bottom: 20px; /* Space below the title */
    font-size: 2.4rem; /* Example size, adjust as needed */
    text-align: left; /* Align title to left */
    width: 100%; /* Ensure it takes full width */
}

/* Main Content Layout Container (Manages side-by-side elements on desktop) */
.main-content-layout {
    display: flex; /* Enable flexbox */
    flex-wrap: wrap; /* Allow wrapping for mobile */
    gap: 30px; /* Space between content and info box */
    align-items: flex-start; /* Align items to the top */
}

/* Main Content Area (Entry Page Specific) Styles */
.entry-content { /* Renamed from .main-content to .entry-content for clarity */
    flex: 1; /* Allows this to grow and take available space */
    min-width: 300px; /* Minimum width before wrapping */
    text-align: justify;
    overflow: hidden; /* Contains floats if any internal elements use them */
}

.entry-content li {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    list-style: disc;
}

textarea {
    height: 90vh;
    width: 80%;
}

.entry-content p {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.4;
}

.entry-content strong {
    font-weight: normal;
}

.entry-content h4 {
    margin-bottom: 16px;
    font-size: 1.6rem;
}

.entry-content h5 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.entry-content a {
    margin-bottom: 16px; /* May not apply correctly to all 'a' elements, but kept as specified */
    color: #01990e; /* Specific link color for main content */
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: normal;
    color: var(--primary-color);
}

/* --- Image and Bio Box Styles --- */
.image_bio_box {
    width: 220px; /* Fixed width for the sidebar info box on desktop */
    flex-shrink: 0; /* Prevent it from shrinking */
    margin-left: 0; /* Remove float-related margin */
    margin-bottom: 10px;
    display: flex; /* Enable flexbox for its internal elements */
    flex-direction: column; /* Stack image and bio box vertically */
    gap: 20px; /* Space between image and bio box */
}

.main-image {
    width: 200px; /* Specific width */
    height: 200px; /* Specific height */
    border-radius: 10px;
    margin: 0 auto; /* Center the image within its container */
    object-fit: cover;
    display: block;
    box-shadow: var(--box-shadow);
}

.bio_box {
    max-width:fit-content; /* Kept max-width, assuming it should not exceed this */
    margin-top: 0; /* Reset margin-top from previous float-based layout */
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #ccc; /* Optional: add border for distinction */
    height: auto; /* Allow height to adjust based on content */
}

.bio_content {
    min-width: 100%;
    word-wrap: break-word;
    margin-bottom: 15px;
    height: auto; /* Allow height to adjust based on content */
}

#birth-info {
    font-style: italic;
    color: var(--light-text);
}

.no-image {
    /*background: var(--light-bg);
    padding: 40px;
    text-align: center;
    border-radius: var(--border-radius);
    color: var(--light-text);*/
    display: none;
}

/* Metadata and Action Sections - ensure they clear floats if .main-content-layout were to use floats */
.entry-metadata, .entry-actions {
    clear: both; /* Ensure these appear below any floated content */
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* --- Entry Metadata Styles (rest unchanged) --- */
.entry-category, .entry-tags, .entry-references {
    margin-bottom: 25px;
}

.entry-tags ul, .entry-references ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.entry-tags li, .entry-references li {
    background: var(--light-bg);
    padding: 5px 12px;
    border-radius: var(--border-radius);
}

.entry-references li {
    background: transparent;
    padding: 0;
}

.entry-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.entry-actions .action-link {
    all: unset;
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px 6px;
    margin-right: 10px;
}

.entry-actions .action-link:hover {
    text-decoration: underline;
}

.link-separator {
    margin: 8px 15px;
    color: var(--primary-color);
}

/* --- Markdown Image Styles --- */
.mkdwn_image {
    max-width: 20%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 15px 15px 0;
    float: right; /* Kept float for markdown images within the text */
}

/* --- Table Styles --- */
.bio_content table {
    width: 200px;
    border-collapse: collapse;
    border-bottom: 2px solid #fcfbfb;
    margin: 20px 0;
    font-size: 1.6rem;
    text-align: left;
}

.bio_content table th,
.bio_content table td {
    padding: 10px;
    font-size: 1.35rem;
    border-bottom: 2px solid #c9c8c8;
    font-family: 'Roboto', sans-serif;
}

.entry-content th, .entry-content td {
    padding: 10px;
    font-size: 1.35rem;
    border-bottom: 2px solid #fcfbfb;
    font-family: 'Roboto', sans-serif;
}

.entry-content th {
    background-color: #bdbcbc;
}