/* DEP Discussion Archives - Mailing List Archive Aesthetic */

:root {
  --text-color: #000;
  --bg-color: #fff;
  --border-color: #999;
  --link-color: #00c;
  --visited-color: #551a8b;
  --header-bg: #f0f0f0;
  --quote-color: #555;
  --meta-color: #666;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-color);
  background: var(--bg-color);
  margin: 0;
  padding: 0;
}

a {
  color: var(--link-color);
}

a:visited {
  color: var(--visited-color);
}

code {
  font-family: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  font-weight: normal;
  background: #f4f4f4;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* Page header */
.page-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
}

.page-header h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: normal;
}

.page-header .breadcrumb {
  font-size: 0.875rem;
  color: var(--meta-color);
}

.page-header .breadcrumb a {
  color: var(--meta-color);
}

/* Thread metadata */
.thread-meta {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
}

.thread-meta table {
  border-collapse: collapse;
}

.thread-meta th {
  text-align: right;
  padding-right: 1rem;
  font-weight: normal;
  color: var(--meta-color);
  vertical-align: top;
}

.thread-meta td {
  vertical-align: top;
}

/* Main content */
.content {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.content.archive-index {
  max-width: 60rem;
}

.content .intro {
  color: var(--meta-color);
  margin-bottom: 2rem;
}

/* Message */
.message {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

.message:last-child {
  border-bottom: none;
}

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

.message-from {
  font-weight: bold;
  font-size: 1.1rem;
}

.message-from .permalink {
  font-weight: normal;
  font-size: 0.9rem;
  color: #999;
  text-decoration: none;
  margin-left: 0.25rem;
}

.message-from .permalink:hover {
  color: var(--link-color);
}

.message-meta {
  font-size: 0.85rem;
  color: var(--meta-color);
  margin-top: 0.25rem;
}

.message-body {
  margin: 0;
}

.message-body p {
  margin: 0 0 1rem 0;
}

.message-body p:last-child {
  margin-bottom: 0;
}

/* Quoted text */
.message-body blockquote {
  margin: 0 0 1rem 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid #ccc;
  color: var(--quote-color);
}

.message-body blockquote p {
  margin: 0;
}

/* Thread continuation marker */
.thread-continues {
  text-align: center;
  padding: 1.5rem;
  color: var(--meta-color);
  font-style: italic;
  border-top: 1px dashed #ccc;
  margin-top: 1rem;
}

/* Navigation */
.thread-nav {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--header-bg);
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.thread-nav a {
  text-decoration: none;
}

.thread-nav a:hover {
  text-decoration: underline;
}

/* Message index at top */
.message-index {
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.message-index h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  font-weight: bold;
}

.message-index ol {
  margin: 0;
  padding-left: 1.5rem;
}

.message-index li {
  margin-bottom: 0.25rem;
}

.message-index .indent-1 { margin-left: 1.5rem; }
.message-index .indent-2 { margin-left: 3rem; }
.message-index .indent-3 { margin-left: 4.5rem; }
.message-index .indent-4 { margin-left: 6rem; }

/* Story/digression styling */
.story {
  margin: 1rem 0;
  padding: 1rem;
  background: #fafafa;
  border-left: 3px solid #999;
}

.story p {
  margin: 0 0 0.75rem 0;
}

.story p:last-child {
  margin-bottom: 0;
}

/* Archive index styles */
.spec-section {
  margin-bottom: 2rem;
}

.spec-section h2 {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.25rem;
}

.thread-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.thread-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.thread-list li:last-child {
  border-bottom: none;
}

.thread-list .thread-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--meta-color);
  background: none;
  border: none;
  padding: 0;
}

/* Thread table */
.thread-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.thread-table th,
.thread-table td {
  text-align: left;
  padding: 0.5rem 1rem 0.5rem 0;
  border-bottom: 1px solid #ddd;
}

.thread-table th {
  font-weight: bold;
  color: var(--meta-color);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.thread-table tbody tr:hover {
  background: #fafafa;
}

/* Empty state */
.empty {
  color: var(--meta-color);
  font-style: italic;
}
