/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
	font-family: "et-bembo";
	font-weight: normal;
	font-style: normal;
	src: url("./../fonts/et-bembo-roman-old-style-figures.eot");
	src: url("./../fonts/et-bembo-roman-old-style-figures.eot?#iefix") format("embedded-opentype"), url("./../fonts/et-bembo-roman-old-style-figures.woff") format("woff");
}

@font-face {
	font-family: "et-bembo";
	font-weight: normal;
	font-style: italic;
	src: url("./../fonts/et-bembo-display-italic-old-style-figures.eot");
	src: url("./../fonts/et-bembo-display-italic-old-style-figures.eot?#iefix") format("embedded-opentype"), url("./../fonts/et-bembo-display-italic-old-style-figures.woff") format("woff");
}

@font-face {
	font-family: "et-bembo";
	font-weight: bold;
	font-style: normal;
	src: url("./../fonts/et-bembo-bold-line-figures.eot");
	src: url("./../fonts/et-bembo-bold-line-figures.eot?#iefix") format("embedded-opentype"), url("./../fonts/et-bembo-bold-line-figures.woff") format("woff");
}

@font-face {
	font-family: "Source Sans Pro";
	font-weight: normal;
	font-style: normal;
	font-stretch: normal;
	src: url("./fonts/SourceSansPro-Regular.eot");
	src: url("./fonts/SourceSansPro-Regular.eot?#iefix") format("embedded-opentype"), url("./../fonts/SourceSansPro-Regular.ttf.woff2") format("woff2"), url("./../fonts/SourceSansPro-Regular.otf.woff") format("woff");
}

@font-face {
	font-family: "Source Sans Pro";
	font-weight: normal;
	font-style: italic;
	font-stretch: normal;
	src: url("./../fonts/SourceSansPro-It.eot");
	src: url("./../fonts/SourceSansPro-It.eot?#iefix") format("embedded-opentype"), url("./../fonts/SourceSansPro-It.ttf.woff2") format("woff2"), url("./../fonts/SourceSansPro-It.otf.woff") format("woff");
}

@font-face {
	font-family: "Source Sans Pro";
	font-weight: bold;
	font-style: normal;
	font-stretch: normal;
	src: url("./../fonts/SourceSansPro-Bold.eot");
	src: url("./../fonts/SourceSansPro-Bold.eot?#iefix") format("embedded-opentype"), url("./../fonts/SourceSansPro-Bold.ttf.woff2") format("woff2"), url("./../fonts/SourceSansPro-Bold.otf.woff") format("woff");
}

@font-face {
	font-family: "Source Sans Pro";
	font-weight: bold;
	font-style: italic;
	font-stretch: normal;
	src: url("./../fonts/SourceSansPro-BoldIt.eot");
	src: url("./../fonts/SourceSansPro-BoldIt.eot?#iefix") format("embedded-opentype"), url("./../fonts/SourceSansPro-BoldIt.ttf.woff2") format("woff2"), url("./../fonts/SourceSansPro-BoldIt.otf.woff") format("woff");
}
@font-face {
	font-family: "Merriweather";
	font-weight: normal;
	font-style: normal;
	src: url('./../fonts/Merriweather-Regular.ttf') format("truetype");
}

@font-face {
	font-family: "Merriweather";
	font-weight: normal;
	font-style: italic;
	src: url('./../fonts/Merriweather-RegularItalic.ttf') format("truetype");
}

@font-face {
	font-family: "Merriweather";
	font-weight: bold;
	font-style: normal;
	src: url('./../fonts/Merriweather-Bold.ttf') format("truetype");
}

@font-face {
	font-family: "Merriweather";
	font-weight: bold;
	font-style: italic;
	src: url('./../fonts/Merriweather-BoldItalic.ttf') format("truetype");
}

@font-face {
	font-family: "Padauk";
	font-weight: normal;
	src: url('./../fonts/Padauk-Regular.ttf') format("truetype");
	unicode-range: U+1000-U+109F;
	/* this declares that this is for burmese */
}

@font-face {
	font-family: "Padauk";
	font-weight: bold;
	src: url('./../fonts/Padauk-Bold.ttf') format("truetype");
}



body {
    font-family: "Merriweather", "et-bembo", Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0;
    padding: 0 20px;
}

p {
margin-bottom: 10px;

}

/* Header styles - matching reference site */

.header-logo-title {
  display: flex;
  align-items: left;
}

.site-logo {
  height: 44px; /* or whatever size suits */
  margin-right: 5em;
}

.site-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-title {
    margin: 0;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-left: 0.5em;
    color: #333;
}

.site-title a {
    text-decoration: none;
    color: #333;
    display: block;
}

.site-title a:hover {
    color: #0066cc;
}

.site-header h2 {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 24px;
    font-style: italic;
    color: #666;
    margin-top: 0.2rem;
    margin-left: 0.6em;
    font-weight: normal;
}

/* Layout structure */
.layout-container {
    display: flex;
    max-width: 1200px;
    margin: 0;
    min-height: calc(100vh - 140px);
}

/* Sidebar navigation */
.sidebar {
    width: 300px;
    background-color: #f8f9fa;
    border-right: 1px solid #ddd;
    padding: 20px;
    margin-left: 10px;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    flex-shrink: 0;
}

.chapter-nav h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    font-weight: bold;
}

.chapter-nav ul {
    list-style: none;
    margin: 0;
}

.chapter-nav li {
    margin-bottom: 8px;
    margin-left: 10px;
        font-size: 0.9rem;
            line-height: 1.4;


}

.chapter-nav a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
    line-height: 1.4;
}

.chapter-nav a:hover {
    color: #004499;
    text-decoration: underline;
}

.chapter-nav a:visited {
    color: #5a5a5a;
}

/* Main content area */
.main-content {
    flex: 1;
    padding: 20px 40px;
    background-color: #fff;
}

.content-wrapper {
    max-width: 800px;
}

/* Typography - academic style */
h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: normal;
    line-height: 1.3;
}

h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: normal;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #333;
    font-weight: normal;
}

h4 {
    font-size: 1.1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    color: #333;
    font-weight: bold;
}

p {
    margin-bottom: 3 rem;
    text-align: justify;
    hyphens: auto;
}

/* Reference styling for academic citations */
.reference {
    background-color: #ffe14d; /* soft yellow */
    padding: 0.1em 0.3em;
    border-radius: 0.2em;
    text-transform: uppercase;
}

/* images in chapters */

figure {
    margin: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
}
figure img {
    max-width: 80%;
}

/* Table of contents styling */
.content-wrapper ul {
    margin-left: 0;
    list-style: none;
    margin-bottom: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.8rem;
    padding-left: 0;
}

.content-wrapper li a {
    color: #0066cc;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.content-wrapper li a:hover {
    color: #004499;
    text-decoration: underline;
}

.content-wrapper li em {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.2rem;
    font-style: italic;
}

.TOCbyline {

        font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: underline;
}

a:hover {
    color: #004499;
}

a:visited {
    color: #5a5a5a;
}

/* Post styles for individual chapters */
.post {
    margin-bottom: 3rem;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: normal;
    line-height: 1.3;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-content {
    margin-bottom: 3rem;
}

/* Code styling */
code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    color: #e83e8c;
}

pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
}

pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid #0066cc;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Bibliography */
#bibliography {
    margin-top: 2rem;
    padding-left: 1.5rem;
    font-size: 13px;
    text-indent: -1.5rem;

}

/* Footnotes */
.footnotes {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
    font-size: 0.9rem;
}


.footnotes-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: bold;
}

.footnotes-list {
    margin-left: 0;
}

.footnotes-list li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
}

.footnote-ref {
    font-size: 0.8rem;
    vertical-align: super;
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
}

.footnote-backref {
    font-size: 0.8rem;
    text-decoration: none;
    color: #0066cc;
    margin-left: 0.5rem;
}

/* Highlight effect for footnote navigation */
.highlight {
    background-color: #fff3cd;
    transition: background-color 0.3s ease;
}

/* Reference styling for academic citations */
.reference {
    background-color: #f9f1c8; /* soft yellow */
    padding: 0.1em 0.3em;
    border-radius: 0.2em;
    font-size: 0.8rem;
}

/* Post navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.post-navigation h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.post-navigation ul {
    margin-left: 0;
    list-style: none;
}

.post-navigation li {
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Author information styling */
.content-wrapper hr + h3 {
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #333;
}

.content-wrapper p strong {
    color: #333;
}

/* Responsive design */
@media (max-width: 968px) {
    .layout-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #ddd;
        order: 2;
    }
    
    .main-content {
        order: 1;
        padding: 20px;
    }
    
    .site-title {
        font-size: 36px;
        font-family: source-Sans Pro, sans-serif;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .site-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .post-title {
        font-size: 1.6rem;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .site-header,
    .site-footer {
        display: none;
    }
    
    .main-content {
        padding: 0;
        max-width: none;
    }
    
    .layout-container {
        display: block;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    blockquote, pre, table {
        page-break-inside: avoid;
    }
}