:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --border: #dbe4ee;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0f766e;
  --org-body-bg-color: var(--bg);
  --org-body-bg-image: none;
  --org-body-bg-repeat: no-repeat;
  --org-body-bg-size: cover;
  --org-body-bg-position: center top;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background-color: var(--org-body-bg-color);
  background-image: var(--org-body-bg-image);
  background-repeat: var(--org-body-bg-repeat);
  background-size: var(--org-body-bg-size);
  background-position: var(--org-body-bg-position);
  background-attachment: fixed;
  color: var(--text);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Montserrat", sans-serif;
}

.public-header {
  background: #ffffff;
}

.public-shell {
  width: min(100%, 1920px);
  margin-inline: auto;
}

.brand-link {
  color: #0f172a;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-link:hover {
  color: var(--accent);
}

#publicHeaderNav .btn {
  white-space: nowrap;
}

.public-bubble-btn {
  width: 2rem;
  min-width: 2rem;
  padding: 0.25rem;
}

.public-card {
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(2, 8, 20, 0.04);
  padding: 0.85rem;
}

.muted {
  color: var(--muted);
}

.hero-shell {
  border-radius: 0.8rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.hero-logo {
  width: auto;
  max-height: 68px;
  display: block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem;
}

.event-list {
  display: grid;
  gap: 0.5rem;
}

.event-list-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.event-list-item:hover {
  border-color: #9ab0c6;
}

.event-collapsible {
  display: grid;
  gap: 0.5rem;
}

.event-collapsible-item summary {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  cursor: pointer;
}

.event-collapsible-body {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border);
}

.item-link {
  text-decoration: none;
  color: inherit;
}

.item-link:hover .public-card {
  border-color: #9ab0c6;
}

.pagination-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.content-html {
  line-height: 1.5;
}

.content-html p:last-child {
  margin-bottom: 0;
}

.public-debug-panel {
  border: 1px solid #cdd8e6;
  border-radius: 0.65rem;
  background: #f8fbff;
}

.public-debug-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  border-bottom: 1px solid #dbe4ee;
  padding: 0.45rem 0.55rem;
  font-size: 0.8rem;
}

.public-debug-body {
  max-height: 200px;
  overflow: auto;
  padding: 0.45rem 0.55rem;
  font-size: 0.74rem;
  line-height: 1.35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.public-debug-entry {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  border-bottom: 1px dotted #e2e8f0;
  padding: 0.14rem 0;
}

.public-debug-entry:last-child {
  border-bottom: 0;
}

.public-debug-ts {
  color: #64748b;
  min-width: 58px;
}

.public-debug-entry.level-error {
  color: #b91c1c;
}

.public-debug-entry.level-success {
  color: #0f766e;
}
