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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #011627;
  color: #d6deeb;
  line-height: 1.5;
  min-height: 100vh;
}

nav {
  background: #011627;
  border-bottom: 1px solid #262A39;
  padding: 0.6rem 1.2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

nav .breadcrumb a {
  color: #82AAFF;
  text-decoration: none;
}

nav .breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

nav .breadcrumb .sep {
  color: #4b6479;
}

nav .breadcrumb .current {
  color: #d6deeb;
  font-weight: 600;
}

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

h1 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #d6deeb;
}

.card {
  background: #0b2942;
  border: 1px solid #1d3b53;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
}

.card:hover {
  border-color: #82AAFF;
}

.card a {
  color: #82AAFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.card a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.card .meta {
  color: #637777;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* Chat log */
.chat-log {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.65;
}

.msg {
  padding: 2px 6px;
  border-radius: 3px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.msg:hover {
  background: rgba(127, 219, 202, 0.06);
}

.msg .ts {
  color: #4b6479;
}

.msg .nick {
  font-weight: 700;
}

.msg .text {
  color: #d6deeb;
  white-space: normal;
  word-wrap: break-word;
}

/* Links inside chat messages — brighter color for readability on dark bg */
.msg .text a {
  color: #7FDBCA;
  text-decoration: underline;
  text-decoration-color: rgba(127, 219, 202, 0.4);
  text-underline-offset: 2px;
}

.msg .text a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

/* Rendered tables inside chat messages */
.msg .text table {
  border-collapse: collapse;
  margin: 0.6rem 0;
  font-size: 0.82rem;
  width: 100%;
  display: block;
  overflow-x: auto;
}

.msg .text th,
.msg .text td {
  border: 1px solid #1d3b53;
  padding: 0.35rem 0.6rem;
  white-space: nowrap;
}

.msg .text th {
  background: #0b2942;
  color: #82AAFF;
  font-weight: 600;
  text-align: left;
}

.msg .text td {
  color: #d6deeb;
}

.msg .text thead {
  border-bottom: 2px solid #82AAFF;
}

/* Responsive */
@media (max-width: 600px) {
  main { padding: 1rem 0.6rem; }
  .chat-log { font-size: 0.8rem; }
  h1 { font-size: 1.15rem; }
}
