/* E-ink optimized styles - Pure black and white, no animations */

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

html {
  font-size: 18px;
  line-height: 1.8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: #000;
  padding: 0;
  margin: 0;
  padding-top: 50px;
  padding-bottom: 70px;
}

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

/* Header - Fixed at top */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 2px solid #000;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.site-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  flex-shrink: 0;
}

.header-date {
  font-size: 14px;
  font-weight: 600;
  margin: 0 12px;
}

.header-progress {
  font-size: 14px;
  font-weight: 600;
}

/* Main content */
#main-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* News Item */
.news-item {
  margin-bottom: 20px;
}

.news-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
  margin-top: 20px;
}

.news-info {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.news-info a {
  color: #000;
  text-decoration: underline;
  margin-right: 4px;
}

.news-summary {
  font-size: 16px;
  line-height: 1.8;
}

.news-summary p {
  margin-bottom: 12px;
}

.news-summary ul,
.news-summary ol {
  margin-left: 24px;
  margin-bottom: 12px;
}

.news-summary li {
  margin-bottom: 8px;
}

.news-summary h1,
.news-summary h2,
.news-summary h3 {
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 8px;
}

.news-summary code {
  background: #f5f5f5;
  border: 1px solid #000;
  padding: 2px 6px;
  font-family: monospace;
}

.news-summary pre {
  background: #f5f5f5;
  border: 1px solid #000;
  padding: 12px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.news-summary pre code {
  background: none;
  border: none;
  padding: 0;
}

/* Navigation - Fixed at bottom */
.news-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid #000;
  display: flex;
  gap: 0;
  z-index: 100;
}

.nav-btn {
  flex: 1;
  display: block;
  padding: 16px 24px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #000;
  background: #fff;
  border: none;
  border-right: 1px solid #000;
  cursor: pointer;
  font-family: inherit;
}

.nav-btn:last-child {
  border-right: none;
}

.nav-btn:active {
  background: #000;
  color: #fff;
}

.nav-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Remove all transitions and animations */
* {
  transition: none !important;
  animation: none !important;
}
