/* Mekong Watch Cocolog Archive - Clean & Copyright-Free Responsive Stylesheet */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Yu Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #222;
  background-color: #f5f7f5;
}

a {
  color: #1b5e20;
  text-decoration: underline;
}

a:hover {
  color: #0d3b10;
}

img {
  max-width: 100%;
  height: auto;
}

#container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* Header Banner */
#banner {
  background-color: #ffffff;
  border-bottom: 3px solid #2e7d32;
  border-radius: 0 0 8px 8px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

#banner-header {
  margin: 0 0 12px 0;
  font-size: 1.75rem;
  line-height: 1.3;
}

#banner-header a {
  color: #1b5e20;
  text-decoration: none;
}

#banner-header a:hover {
  text-decoration: underline;
}

#banner-description {
  margin: 0;
  font-size: 0.92rem;
  font-weight: normal;
  color: #444;
  line-height: 1.6;
}

#banner-description table {
  border-collapse: collapse;
  width: 100%;
}

#banner-description td {
  vertical-align: middle;
  padding: 4px;
}

#banner-description img {
  max-height: 60px;
  width: auto;
  display: block;
}

/* Page Body Layout (2-Column Desktop, 1-Column Mobile) */
#pagebody-inner {
  display: flex;
  flex-direction: row-reverse;
  gap: 24px;
  align-items: flex-start;
}

#beta {
  flex: 1 1 0%;
  min-width: 0;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

#alpha {
  width: 280px;
  flex: 0 0 280px;
}

/* Sidebar Modules */
.module {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.module-header {
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  font-size: 1.05rem;
  color: #1b5e20;
  border-bottom: 2px solid #e0e8e0;
}

.module-list,
.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.module-list-item,
.archive-list-item {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e5ece5;
  font-size: 0.92rem;
  line-height: 1.5;
}

.module-list-item:last-child,
.archive-list-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Main Content Entries */
.content-nav {
  margin: 0 0 20px 0;
  padding: 10px 14px;
  background-color: #f0f4f0;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
}

.content-header,
.archive-header {
  margin: 0 0 20px 0;
  padding: 8px 14px;
  background-color: #e8f0e8;
  border-left: 5px solid #2e7d32;
  font-size: 1.3rem;
  color: #1b5e20;
}

.date-header {
  margin: 28px 0 8px 0;
  font-size: 0.95rem;
  color: #556b55;
  font-weight: bold;
}

.date-header:first-of-type {
  margin-top: 0;
}

.entry {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid #dfe6df;
}

.entry:last-of-type {
  border-bottom: none;
}

.entry-header {
  margin: 0 0 16px 0;
  font-size: 1.35rem;
  line-height: 1.4;
  color: #1b5e20;
}

.entry-header a {
  color: #1b5e20;
  text-decoration: none;
}

.entry-header a:hover {
  text-decoration: underline;
}

.entry-body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Helvetica Neue", Arial, Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  overflow-wrap: break-word;
}

.entry-body p {
  margin: 0 0 1em 0;
}

.entry-footer {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px dotted #d0dcd0;
  font-size: 0.85rem;
  color: #666;
}

.entry-footer-info {
  margin: 0;
}

.entry-recent-posts {
  margin-top: 28px;
  padding: 16px 20px;
  background-color: #f9fbf9;
  border: 1px solid #e0e8e0;
  border-radius: 6px;
}

.entry-recent-posts h2 {
  margin-top: 0;
}

.entry-recent-posts ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.entry-recent-posts li {
  margin-bottom: 6px;
}

.archive-category {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #dfe6df;
}

.archive-category p a {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 4px 10px;
  background-color: #eef3ee;
  border-radius: 4px;
  text-decoration: none;
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
  #pagebody-inner {
    flex-direction: column;
  }
  #beta {
    width: 100%;
    padding: 20px 16px;
  }
  #alpha {
    width: 100%;
    flex: none;
  }
  #banner-description td {
    display: block;
    text-align: left;
  }
}
