body {
  margin: 1rem;
  background-color: #000;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  padding: 0;
}

.ad-banner {
  width: 100%;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  background: #111;
  padding: 1rem 0;
  border-bottom: 1px solid #333;
}

.compact {
  margin: 0 0 0 0.5rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

.logo {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.2rem;
  color: #ccc;
}

/* Container with padding and centered layout */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

section {
  background-color: #111;
  padding: 0.5rem 1rem 1rem 1rem;
  margin-top: 2rem;
  border-radius: 8px;
  border: 1px solid #222;
  overflow-wrap: break-word;
}

section a {
  color: #0af;
  text-decoration: underline;
}

.section-divider {
  margin: 1.5rem 0 0.5rem 0;
  padding: 0 0 0.5rem 0;
  border-bottom: 2px solid #444;
  width: 100%;
}

.section-divider a {
  color: #0af;
}

.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.article {
  margin-bottom: 1rem;
}

.article-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #0af;
}

.article-date {
  font-size: 0.9rem;
  color: #999;
}

.article-summary {
  font-size: 1rem;
  color: #ddd;
}

.content {
  margin: 0;
  padding: 0 1rem;
}

/* CMC widget row */
.cmc-widget-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

/* Credit styling improvements */
.credit {
  font-size: 0.95rem;
  display: inline-block;
  margin-right: 1rem;
  color: #aaa;
  white-space: nowrap;
  vertical-align: middle;
}

.credit-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #aaa;
}

a {
  text-decoration: underline;
}

/* Each widget takes full width on mobile, 1/3 on desktop */
.cmc-widget {
  flex: 1 1 100%;
  min-width: 280px;
}

@media (min-width: 768px) {
  .cmc-widget {
    flex: 1 1 calc(33.33% - 1rem);
  }
}

/* News and compact grid containers */
#news-grid,
#compact-grid,
#token-grid {
  display: grid;
  gap: 2rem;
  width: 100%;
  box-sizing: border-box;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: 1.5rem;
}

#news-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  #news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

#compact-grid,
#token-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  #compact-grid,
  #token-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #compact-grid,
  #token-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

#news-grid section,
#compact-grid,
#token-grid section {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  margin: 0;
}

#widget-block {
  grid-column: 1 / -1;
  margin: 2rem 0;
}

hr {
  margin: 20px 0;
}

footer {
  text-align: center;
  padding: 10px;
}

footer a {
  color: inherit;
}

.weekly-news {
  padding-left: 2rem;
  padding-right: 1rem;
  margin-top: 1.5rem;
}

/* Twitter section layout */
.twitter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.twitter-timeline {
  flex: 1 1 100%;
  max-width: 220px;
}

@media (min-width: 600px) {
  .twitter-timeline {
    flex: 1 1 calc(33.33% - 20px);
  }
}

@media (min-width: 1024px) {
  .twitter-timeline {
    flex: 1 1 calc(16.66% - 20px);
  }
}

h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #fff;
  border-left: 4px solid #0af;
  padding-left: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #fff;
  border-left: 4px solid #0af;
  padding-left: 0.5rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  color: #fff;
  padding: 1rem;
  font-size: 0.95rem;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
}

.tweet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.twitter-container {
  flex: 1 1 22%;
  min-width: 300px;
}

.cookie-banner .cookie-message {
  flex: 1;
  margin-right: 1rem;
}

.cookie-banner button {
  background-color: #0af;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

.expandable-content {
  transition: max-height 0.3s ease;
  position: relative;
}

