@import url("https://use.typekit.net/fno4kao.css");

body.public-home-page {
  font-family: "calluna-sans", sans-serif;
}

body.public-home-page .site-footer .button {
  gap: 8px;
}

.public-overall-copy {
  min-width: 0;
}
.button.secondary {
  border-color: transparent;
}

h2 {
  border-bottom: 1px solid black;
  padding-bottom: 3px;
  font-size: 1.6rem;
}

.public-overall-card {
  border-bottom: 4px solid black;
  h2 {
    border-bottom: none;
  }
}
.public-overall-card.online {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.public-overall-card.pending {
  background: #fff7ed;
  border-color: #fdba74;
}

.public-overall-card.maintenance {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.public-overall-card.offline,
.public-overall-card.incident {
  background: #fef2f2;
  border-color: #fecaca;
}

.public-overall-card.unknown {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.public-overall-copy h2 {
  margin: 0 0 4px;
}

.public-overall-title {
  margin: 0;
  color: #374151;
  font-size: 1rem;
  font-weight: 600;
}

.public-overall-copy .muted {
  margin: 6px 0 0;
}

.public-servers-card > h2 {
  margin: 0;
}

.public-servers-card .status-refresh {
  margin: 2px 0 12px;
}

.public-services {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.public-services > h3 {
  margin: 0 0 8px;
}

.public-server-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 12px;
}

.public-server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.public-server-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #1f2937;
  font-weight: 600;
}

.public-server-row .status-pill {
  flex: none;
}

.public-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.82rem;
}

.public-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.public-legend .status {
  width: 16px;
  height: 16px;
}

.public-legend .dot {
  width: 10px;
  height: 10px;
}

.public-service-row {
  color: inherit;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.public-service-row:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.public-service-row:focus-visible {
  outline: none;
  background: #f9fafb;
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.public-service-error {
  margin: 6px 0 0;
  color: #9a3412;
  font-size: 0.82rem;
}

.public-events-card > h2 {
  margin: 0;
}

.public-event-list {
  margin-top: 8px;
}

.public-event {
  padding: 14px 0;
  border-top: 1px solid #e5e7eb;
}

.public-event:first-child {
  padding-top: 4px;
  border-top: 0;
}

.public-event:last-child {
  padding-bottom: 0;
}

.public-event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.public-event-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}
.public-event-head h3 a {
  color: inherit;
  text-decoration: none;
}
.public-event-head h3 a:hover,
.public-event-head h3 a:focus-visible {
  text-decoration: underline;
}

.public-event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.public-event-meta {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 0.86rem;
}

.public-event-description {
  margin-top: 8px;
  color: #374151;
}

.public-event-description p:first-child {
  margin-top: 0;
}

.public-event-description p:last-child {
  margin-bottom: 0;
}

html[data-theme="dark"] .public-overall-card.online {
  background: #064e3b;
  border-color: #047857;
}

html[data-theme="dark"] .public-overall-card.pending {
  background: #431407;
  border-color: #9a3412;
}

html[data-theme="dark"] .public-overall-card.maintenance {
  background: #3b0764;
  border-color: #7c3aed;
}

html[data-theme="dark"] .public-overall-card.offline,
html[data-theme="dark"] .public-overall-card.incident {
  background: #450a0a;
  border-color: #991b1b;
}

html[data-theme="dark"] .public-overall-card.unknown {
  background: #1f2937;
  border-color: #374151;
}

html[data-theme="dark"] .public-overall-title {
  color: #e5e7eb;
}

html[data-theme="dark"] .public-server-name {
  color: #e5e7eb;
}

html[data-theme="dark"] .public-server-row {
  border-color: #374151;
}

html[data-theme="dark"] .public-services {
  border-top-color: #374151;
}

html[data-theme="dark"] .public-legend {
  border-top-color: #374151;
  color: #9ca3af;
}

html[data-theme="dark"] .public-service-row:hover,
html[data-theme="dark"] .public-service-row:focus-visible {
  background: #1f2937;
  border-color: #4b5563;
}

html[data-theme="dark"] .public-service-row:focus-visible {
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.22);
}

html[data-theme="dark"] .public-service-error {
  color: #fed7aa;
}

html[data-theme="dark"] .public-event {
  border-top-color: #374151;
}

html[data-theme="dark"] .public-event-meta {
  color: #9ca3af;
}

html[data-theme="dark"] .public-event-description {
  color: #d1d5db;
}

@media (max-width: 1000px) {
  .public-server-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .public-server-list {
    grid-template-columns: 1fr;
  }

  .public-event-head {
    flex-direction: column;
  }

  .public-event-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 360px) {
  body.public-home-page .toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  body.public-home-page .toolbar-menu {
    width: 100%;
  }

  body.public-home-page .toolbar .actions {
    width: 100%;
  }

  body.public-home-page .toolbar .button {
    width: 100%;
  }
}
