:root {
  --accent-color: #7ea253;
}
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #f0f2f5;
  margin: 0;
  color: #333;
}
header {
  background-color: var(--accent-color);
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 40px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
main {
  margin: 0 auto;
  width: 90%;
  max-width: 1600px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
th {
  background-color: #f1f1f1;
  font-weight: 600;
}
.site-name {
  font-weight: 600;
  font-size: 1.1em;
}
.footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9em;
  color: #777;
  padding-bottom: 30px;
}
.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.logo {
  max-height: 60px;
  max-width: 200px;
}

/* Markdown/CSV button style (now below footer, scrolls with content) */
.corner-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 32px;
  margin-bottom: 10px;
}

.corner-btn {
  font-size: 12px;
  background: #fff;
  color: #333;
  border-radius: 7px;
  padding: 4px 12px;
  opacity: 0.85;
  text-decoration: none;
  border: 1px solid #7ea253;
  box-shadow: 0 2px 8px #0001;
  transition: opacity 0.2s, background 0.2s;
  margin: 0;
  cursor: pointer;
  display: inline-block;
  line-height: 1.6;
  font-family: inherit;
  text-align: center;
}
.corner-btn:hover {
  opacity: 1;
  background: #f0ffe5;
}

/* Modal styles */
#markdown-modal {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 38px;
  background: #fff;
  border: 1.5px solid #a1c285;
  border-radius: 10px;
  box-shadow: 0 6px 24px #0003;
  z-index: 10001;
  max-width: 440px;
  max-height: 70vh;
  padding: 22px 18px 18px 18px;
  overflow: auto;
}
#markdown-modal h3 {
  margin: 0 0 12px 0;
  color: #7ea253;
  font-size: 1.18em;
}
#markdown-modal pre {
  background: #fafdf8;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.97em;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #e0e9d8;
}
#close-markdown {
  position: absolute;
  top: 7px;
  right: 13px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #888;
  opacity: 0.8;
  transition: opacity 0.2s;
}
#close-markdown:hover {
  color: #d04;
  opacity: 1;
}

/* --- MOBILE --- */
@media (max-width: 600px) {
  main {
    width: 95%;
  }
  table {
    font-size: 0.9em;
  }
  #markdown-modal {
    max-width: 97vw;
    left: 1vw;
    right: 1vw;
    bottom: 58px;
    font-size: 0.96em;
    padding: 16px 8px 16px 10px;
  }
  .corner-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    margin-top: 18px;
  }
  .corner-btn {
    font-size: 15px;
    padding: 11px 18px;
    opacity: 1;
    margin: 0 2px;
    box-shadow: 0 2px 8px #0002;
    text-align: center;
  }
}
