/* State Dept archive — Twitter/X–style layout */
:root {
  --bg: #ffffff;
  --fg: #0f1419;
  --muted: #657786;
  --link: #1d9bf0;
  --border: #e1e8ed;
  --hover-bg: #f5f8fa;
  --avatar-bg: #1d9bf0;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 0;
  line-height: 1.3125;
  font-size: 15px;
}
.site-wrap { max-width: 600px; margin: 0 auto; min-height: 100vh; }
header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1rem 0.75rem;
}
header h1 { font-size: 1.25rem; font-weight: 800; margin: 0; }
header h1 a { color: var(--fg); text-decoration: none; }
header h1 a:hover { text-decoration: underline; }

/* Breadcrumbs (month + tweet pages) */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 0.6rem;
  line-height: 1.4;
}
.breadcrumbs a {
  color: var(--link);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.bc-sep {
  margin: 0 0.25em;
  color: var(--muted);
  user-select: none;
}
.bc-current {
  color: var(--fg);
  font-weight: 500;
}

/* Lockdown Systems branding */
.site-byline {
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.site-byline-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lockdown-logo-link {
  display: inline-block;
  line-height: 0;
}
.lockdown-logo-link img {
  height: 64px;
  width: auto;
  max-width: min(100%, 420px);
  display: block;
}
.lockdown-logo-link:hover { opacity: 0.92; }
main { padding: 0; }
main h2 { font-size: 1rem; font-weight: 700; margin: 1.5rem 1rem 0.5rem; color: var(--fg); }

/* About section */
.about {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.about h2 { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 700; }
.about p { margin: 0 0 0.75rem; color: var(--fg); font-size: 15px; }
.about p:last-child { margin-bottom: 0; }
.about a { color: var(--link); }
.about a:hover { text-decoration: underline; }
.about strong { font-weight: 600; }

/* Index: month list as simple links */
.month-list { list-style: none; padding: 0.5rem 0; margin: 0; }
.month-list li { margin: 0; border-bottom: 1px solid var(--border); }
.month-list a {
  display: block;
  padding: 1rem 1rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
}
.month-list a:hover { background: var(--hover-bg); }
.month-list .month-meta { font-weight: 400; color: var(--muted); font-size: 13px; }

/* Tweet card: avatar left, body right (Twitter feed row) */
.tweet-card {
  display: flex;
  gap: 12px;
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.tweet-card:hover { background: var(--hover-bg); }
.tweet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--avatar-bg);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.tweet-body { flex: 1; min-width: 0; }
.tweet-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 2px;
}
.tweet-name { font-weight: 700; color: var(--fg); }
.tweet-handle { color: var(--muted); font-size: 13px; }
.tweet-dot { color: var(--muted); font-size: 13px; }
.tweet-meta { color: var(--muted); font-size: 13px; }
.tweet-text {
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.tweet-text.truncated { max-height: 4.5em; overflow: hidden; }
.tweet-card .tweet-link {
  color: var(--link);
  font-size: 14px;
  margin-top: 4px;
  display: inline-block;
}
.tweet-card .tweet-link:hover { text-decoration: underline; }

#load-more {
  margin: 0;
  padding: 1rem 1rem;
  width: 100%;
  background: var(--bg);
  color: var(--link);
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
#load-more:hover { background: var(--hover-bg); }
#done-msg { padding: 1rem; color: var(--muted); font-size: 14px; text-align: center; }

.month-load-error {
  padding: 1rem;
  color: var(--fg);
  line-height: 1.5;
  font-size: 14px;
}
.month-load-error code {
  font-size: 13px;
  background: var(--hover-bg);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

/* Single tweet page: same row layout */
#tweet-page .tweet-card { flex-direction: row; }
#tweet-page .tweet-card:hover { background: transparent; }
#tweet-page .tweet-content-wrap { flex: 1; min-width: 0; padding: 0; }
#tweet-page .tweet-header { margin-bottom: 4px; }
#tweet-page .tweet-meta { margin: 0 0 8px; }
#tweet-page .tweet-text { white-space: pre-wrap; word-break: break-word; margin-bottom: 12px; }
.tweet-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
}
.tweet-media img, .tweet-media video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--border);
  border: 1px solid var(--border);
}
