/* ReBlaze share pages. The same tokens as admin.css (the app's Figma colours), dark by default. No framework, no CDN,
   no external fonts, no script: the pages' content security policy allows this file and nothing else. */
:root {
  /* surfaces */
  --background: #0d0d0d;
  --surface: #1a1a1a;
  --surface-raised: #333333;
  --border: #ffffff1a;
  --text: #f2f2f2;
  --text-muted: #a3a3a3;

  /* brand and status */
  --brand: #e7000b;
  --brand-hover: #c10007;
  --warning: #ffb900;
  --success: #41c950;
  --focus: #2b7fff;

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Noto Sans Georgian", "Noto Sans", sans-serif;
  --display-size: 32px;
  --display-line: 40px;

  color-scheme: dark;
}

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

html {
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* one column, phone first: most links are opened from a chat */
.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.logo {
  margin: 0 0 24px;
  color: var(--brand);
  font-size: 20px;
  line-height: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

h1 {
  margin: 0;
  font-size: var(--display-size);
  line-height: var(--display-line);
  font-weight: 700;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

.verified {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border: 1px solid var(--success);
  border-radius: 999px;
  color: var(--success);
  font-size: 12px;
  line-height: 18px;
}

.eyebrow > .verified:first-child {
  margin-left: 0;
}

/* cancelled or ended: said before anything else */
.status {
  margin: 0 0 16px;
  padding: 8px 12px;
  background: var(--surface-raised);
  border-left: 4px solid var(--warning);
  border-radius: 8px;
  font-weight: 600;
}

.facts {
  margin: 24px 0 0;
}

.facts > div {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.facts dt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

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

.about {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: block;
  padding: 12px 16px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  border-color: var(--text-muted);
}

.button.primary {
  background: var(--brand);
  border-color: var(--brand);
}

.button.primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.hint {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

/* privacy and terms: rendered Markdown (headings, paragraphs, bulleted lists) inside one card */
.legal h1 {
  font-size: 28px;
  line-height: 36px;
}

.legal h2 {
  margin: 32px 0 8px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.legal p {
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 24px;
  overflow-wrap: anywhere;
}

.legal li {
  margin-top: 8px;
}
