/* Base */
* { box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  background-color: #0f172a;
  color: #e5e7eb;
  line-height: 1.6;
}

a {
  color: #facc15;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Header */
header {
  background-color: #020617;
  border-bottom: 3px solid #facc15;
  padding: 14px 0;
}

.header-inner {
  max-width: 75%;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}


.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 56px;
  width: auto;
  display: block;
}

/* Main container */
main {
  max-width: 75%;
  margin: 30px auto;
  padding: 20px;
  background-color: #020617;
}

/* Nav buttons */
.top-nav {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
}

.top-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #facc15;
  background: #111827;
  color: #facc15;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

.top-nav a.active {
  border-color: #facc15;
}

/* Cards */
.card {
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
}

.card-inner {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px;
}

h2, h3 { margin-top: 0; }
p { margin: 0 0 1em; }

.muted { color: #9ca3af; }
.small { font-size: 0.9rem; }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  word-break: break-word;
}

/* Server details */
.server-addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.server-addresses p,
.server-details {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  margin: 0;
  padding: 12px;
}

.server-details {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}

.server-details div {
  display: grid;
  gap: 2px;
}

.server-details dt {
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 700;
}

.server-details dd {
  margin: 0;
  font-weight: 700;
}

/* Status */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.status-item {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 12px;
}

.status-title { font-weight: 700; margin-bottom: 6px; }
.status-value { font-size: 1.1rem; font-weight: 700; }
.status-source { margin-top: 12px; }

.ok { color: #22c55e; }
.bad { color: #ef4444; }

/* Lists */
.feature-list { margin: 10px 0 0 18px; }
.feature-list li { margin: 6px 0; }

/* Buttons */
.button-row { margin: 0; }

.button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #facc15;
  background: #111827;
  color: #facc15;
  text-decoration: none;
  font-weight: 700;
  margin-right: 10px;
  margin-top: 6px;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

.button-outline {
  border-color: #1e293b;
  color: #e5e7eb;
  background: #0b1220;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  color: #9ca3af;
  border-top: 1px solid #1e293b;
  background: #020617;
}

/* Calendar */
.calendar-embed,
.calendar-embed * {
  max-width: none !important;
}

.calendar-embed {
  width: 100% !important;
  display: block !important;
  margin-top: 12px;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  background: #020617;
}

.calendar-embed iframe {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 80vh;
  min-height: 650px;
  border: 0;
  background: #020617;
}

/* Mobile */
@media (max-width: 700px) {
  main {
    margin: 18px auto;
    padding: 14px;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .top-nav {
    justify-content: center;
  }

  .site-logo { height: 64px; }

  .button {
    width: 100%;
    margin-right: 0;
  }

  .calendar-embed iframe {
    height: 70vh;
    min-height: 520px;
  }
}
