/* Dedicated BOOX / e-ink presentation. The original dashboard remains untouched. */
:root {
  --bg: #fff;
  --surface: #fff;
  --border: #111;
  --text: #111;
  --muted: #444;
  --amber: #111;
  --yellow: #111;
  --peach: #111;
  --green: #111;
  --blue: #000;
  --blue-visited: #333;
  --blue-hover: #000;
  --neon: #000;
}

html,
body {
  min-height: 100%;
  background: #fff !important;
  color: #111 !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.65;
  transition: none !important;
}

body::before,
#rain-canvas {
  display: none !important;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

header {
  align-items: baseline;
  border-bottom: 2px solid #111;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

#date,
#clock {
  color: #111 !important;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0;
  text-shadow: none !important;
}

#date {
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
}

#clock {
  font-size: 2rem;
  font-weight: 700;
}

.clock-seconds {
  color: #444 !important;
}

.layout {
  display: block !important;
}

.sidebar,
.feed-area {
  display: block;
  min-width: 0;
}

.sidebar .block,
.feed-grid .block,
#news-block {
  margin-bottom: 1.5rem;
}

.block {
  background: #fff !important;
  border: 1px solid #111 !important;
  border-radius: 0;
  box-shadow: none;
  padding: 1.25rem;
  transition: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.block-label {
  border-bottom: 1px solid #111;
  color: #111 !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  text-shadow: none !important;
  text-transform: none;
}

.block-label a,
.block-label a:visited {
  color: #111 !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.weather-temp {
  font-size: 3rem;
  font-weight: 700;
}

.unit,
.weather-meta,
.sunset-sub,
.city-time,
.loading {
  color: #444 !important;
}

.weather-row,
.sunset-countdown,
.city-row {
  color: #111 !important;
}

.weather-icon,
.city-emoji {
  filter: grayscale(1);
}

.sunset-alert {
  background: #fff !important;
  border: 1px solid #111 !important;
}

.feed-grid {
  display: block !important;
}

.benedict-item + .benedict-item {
  border-top-color: #777;
  margin-top: 1rem;
  padding-top: 1rem;
}

.benedict-item h3 {
  color: #111;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.benedict-source {
  color: #111;
  font-size: 0.78rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  white-space: nowrap;
}

.benedict-item p {
  color: #222;
  font-size: 1rem;
  line-height: 1.6;
}

#news-list,
#tldr-acotra-list,
#tldr-shreyas-list,
#tldr-critchlow-list,
#tldr-ango-list,
#tldr-mack-list,
#tldr-simon-list,
#tldr-other-list,
#tldr-tech-list,
#tldr-ai-list,
#tldr-devops-list,
#tldr-infosec-list,
#tldr-fintech-list,
#tldr-marketing-list,
#tldr-design-list,
#tldr-product-list,
#tldr-pens-list {
  gap: 1rem;
}

#news-list li,
#tldr-acotra-list li,
#tldr-shreyas-list li,
#tldr-critchlow-list li,
#tldr-ango-list li,
#tldr-mack-list li,
#tldr-simon-list li,
#tldr-other-list li,
#tldr-tech-list li,
#tldr-ai-list li,
#tldr-devops-list li,
#tldr-infosec-list li,
#tldr-fintech-list li,
#tldr-marketing-list li,
#tldr-design-list li,
#tldr-product-list li,
#tldr-pens-list li {
  font-size: 1rem;
  line-height: 1.65;
}

#news-list a,
#benedict-list a,
#tldr-acotra-list a,
#tldr-shreyas-list a,
#tldr-critchlow-list a,
#tldr-ango-list a,
#tldr-mack-list a,
#tldr-simon-list a,
#tldr-other-list a,
#tldr-tech-list a,
#tldr-ai-list a,
#tldr-devops-list a,
#tldr-infosec-list a,
#tldr-fintech-list a,
#tldr-marketing-list a,
#tldr-design-list a,
#tldr-product-list a,
#tldr-pens-list a,
#news-list a:visited,
#benedict-list a:visited,
#tldr-acotra-list a:visited,
#tldr-shreyas-list a:visited,
#tldr-critchlow-list a:visited,
#tldr-ango-list a:visited,
#tldr-mack-list a:visited,
#tldr-simon-list a:visited,
#tldr-other-list a:visited,
#tldr-tech-list a:visited,
#tldr-ai-list a:visited,
#tldr-devops-list a:visited,
#tldr-infosec-list a:visited,
#tldr-fintech-list a:visited,
#tldr-marketing-list a:visited,
#tldr-design-list a:visited,
#tldr-product-list a:visited,
#tldr-pens-list a:visited {
  color: #000 !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

@media (max-width: 600px) {
  html, body { font-size: 17px; }
  main { padding: 1rem 0.9rem 3rem; }
  header { display: block; margin-bottom: 1.25rem; }
  #clock { margin-top: 0.25rem; }
  .block { padding: 1rem; margin-bottom: 1rem; }
  .weather-row { flex-wrap: wrap; gap: 0.6rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
