/* Doing Boeing — Archive
   Faithful recreation of the original Blogger theme
   ------------------------------------------------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #627c52;
  font: 13px/1.6 Georgia, "Times New Roman", serif;
  color: #333;
  padding: 0;
  text-align: center;
}

#outer-wrapper {
  width: 760px;
  margin: 0 auto;
  text-align: left;
}

/* ── Header ── */
#header-wrapper {
  background: #2b2b2b;
  border-bottom: 4px solid #1a1a1a;
}

#header {
  text-align: center;
  padding: 0;
  line-height: 0;
}

#header-img {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
}

.header-fallback {
  padding: 24px 20px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 3em;
  color: #d4c078;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  line-height: 1.2;
}

/* ── Main layout: content left, sidebar right ── */
#content-wrapper {
  background: #8fa876;
  padding: 8px;
}

#columns {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* ── Main content area ── */
#main-wrapper {
  flex: 1;
  min-width: 0;
}

#main {
  background: #fff;
  padding: 16px 20px;
  border: 1px solid #c8d8b0;
}

.archive-notice {
  background: #f5f2e0;
  border: 1px solid #d4c850;
  color: #7a6a00;
  font-size: 0.82em;
  padding: 7px 12px;
  margin-bottom: 16px;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

/* ── Sidebar ── */
#sidebar-wrapper {
  width: 210px;
  flex-shrink: 0;
}

#sidebar {
  background: #d9e8c8;
  border: 1px solid #b8ccaa;
  padding: 0;
}

.sidebar-section {
  padding: 10px 12px 12px;
  border-bottom: 1px solid #b8ccaa;
}
.sidebar-section:last-child { border-bottom: none; }

.sidebar-section h3 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82em;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px dotted #9ab888;
  padding-bottom: 5px;
  margin-bottom: 8px;
}

.sidebar-section p {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82em;
  color: #555;
  line-height: 1.5;
}

.sidebar-section a {
  color: #3d6b8e;
  text-decoration: none;
}
.sidebar-section a:hover { text-decoration: underline; }

/* ── Blog Archive tree ── */
#blog-archive { padding: 8px 10px 12px; border-bottom: 1px solid #b8ccaa; }

#blog-archive h3 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82em;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px dotted #9ab888;
  padding-bottom: 5px;
  margin-bottom: 8px;
}

.arch-year, .arch-month { margin-bottom: 2px; }

.arch-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82em;
  color: #3d6b8e;
  padding: 1px 0;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.arch-toggle:hover { text-decoration: underline; }
.arch-count { color: #888; }

.arch-children { padding-left: 14px; }

.arch-posts {
  list-style: none;
  padding-left: 14px;
  margin: 2px 0 4px;
}
.arch-posts li { margin-bottom: 2px; }
.arch-posts a {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.8em;
  color: #3d6b8e;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.arch-posts a:hover { text-decoration: underline; }

/* ── Footer ── */
#footer-wrapper {
  background: #2b2b2b;
  border-top: 4px solid #1a1a1a;
}

#footer {
  color: #888;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.75em;
  text-align: center;
  padding: 10px;
}

/* ══ POST LIST (index) ══ */

.year-group { margin-bottom: 28px; }

.year-group > h2 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 1.05em;
  font-weight: bold;
  color: #627c52;
  border-bottom: 1px solid #c8d8b0;
  padding-bottom: 4px;
  margin-bottom: 10px;
}

.post-list { list-style: none; }

.post-list-item {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.post-list-item:last-child { border-bottom: none; }

.post-list-item h2 {
  font-size: 1.05em;
  font-weight: bold;
  margin-bottom: 2px;
}

.post-list-item h2 a {
  color: #1a4a6e;
  text-decoration: none;
}
.post-list-item h2 a:hover { text-decoration: underline; }

.post-list-meta {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78em;
  color: #999;
}

/* ══ SINGLE POST ══ */

.post-date-header {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.75em;
  font-weight: bold;
  color: #627c52;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.post-title {
  font-size: 1.45em;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 6px;
}

.post-meta {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78em;
  color: #999;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.post-meta a { color: #3d6b8e; }

.tag { color: #3d6b8e; text-decoration: none; }
.tag:hover { text-decoration: underline; }

.post-content {
  line-height: 1.75;
  color: #222;
  margin-bottom: 20px;
}
.post-content p { margin-bottom: 12px; }
.post-content a { color: #1a4a6e; }
.post-content a:hover { text-decoration: none; }
.post-content blockquote {
  border-left: 3px solid #b0c898;
  padding: 6px 14px;
  margin: 14px 0;
  color: #555;
  background: #f8fbf5;
  font-style: italic;
}
.post-content ul, .post-content ol { margin: 10px 0 10px 24px; }
.post-content li { margin-bottom: 4px; }
.post-content img { max-width: 100%; height: auto; }
.post-content pre {
  background: #f4f4f4;
  border: 1px solid #ddd;
  padding: 10px;
  overflow-x: auto;
  font-size: 0.85em;
  margin: 10px 0;
}
.post-content code {
  font-size: 0.88em;
  background: #f4f4f4;
  padding: 1px 4px;
  border: 1px solid #e0e0e0;
}

.post-footer {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78em;
  color: #999;
  border-top: 1px solid #eee;
  padding-top: 8px;
  margin-bottom: 20px;
}
.post-footer a { color: #3d6b8e; }

/* ── Comments ── */
.comments {
  border-top: 2px solid #d0e0c0;
  padding-top: 16px;
  margin-bottom: 20px;
}
.comments > h2 {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.85em;
  font-weight: bold;
  color: #627c52;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.comment {
  border-bottom: 1px solid #e8f0e0;
  padding: 10px 0;
}
.comment:last-of-type { border-bottom: none; }
.comment-meta {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.78em;
  color: #888;
  margin-bottom: 5px;
  display: flex;
  gap: 8px;
}
.comment-meta strong { color: #444; }
.comment-body { font-size: 0.9em; line-height: 1.65; color: #333; }
.comment-body a { color: #1a4a6e; }

.comments-closed {
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: #aaa;
  font-size: 0.8em;
  margin-top: 12px;
  font-style: italic;
}

.post-nav {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.82em;
}
.post-nav a { color: #3d6b8e; }

/* ── Archive page ── */
.archive-list { list-style: none; }
.archive-list li {
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 12px;
  font-family: "Trebuchet MS", Arial, sans-serif;
}
.archive-date { color: #aaa; font-size: 0.8em; white-space: nowrap; min-width: 88px; }
.archive-list a { color: #1a4a6e; text-decoration: none; font-size: 0.88em; }
.archive-list a:hover { text-decoration: underline; }

/* ── Missing image placeholder ── */
.missing-image {
  display: inline-block;
  background: #f5f5f5;
  border: 1px dashed #ccc;
  color: #aaa;
  font-size: 0.78em;
  padding: 5px 10px;
  font-style: italic;
  margin: 4px 0;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

/* ── Responsive ── */
@media (max-width: 780px) {
  #outer-wrapper { width: 100%; }
  #columns { flex-direction: column; }
  #sidebar-wrapper { width: 100%; }
}
