/* Application pages use the same palette and reader preference as the chat. */
:root {
  --theme-bg: 246 248 249;
  --theme-surface: 255 255 255;
  --theme-ink: 43 43 43;
  --theme-line: 226 228 230;
  --theme-accent: 226 168 75;
  --theme-accent-soft: 251 241 225;
  --theme-success: 41 107 69;
  --theme-warning: 150 71 10;
  --theme-danger: 175 36 36;
  --theme-on-danger: 255 255 255;
  --theme-accent-ink: 43 43 43;
  --theme-bubble: 226 168 75;
  --theme-bubble-ink: 43 43 43;
  --theme-sidebar: 251 241 225;
  --theme-sidebar-line: 226 228 230;
  --theme-quiet: 95 99 104;
  --theme-danger-ink: 175 36 36;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: rgb(var(--theme-bg));
  color: rgb(var(--theme-ink));
  font: 16px/1.6 "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  max-width: 44rem;
  margin: 2.5rem auto;
  padding: 2rem 2.25rem;
  background: rgb(var(--theme-surface));
  border: 1px solid rgb(var(--theme-line));
  border-radius: 0.75rem;
}

h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 1.5rem; }
h2 { font-size: 1.05rem; margin: 1.75rem 0 0.4rem; }
p, address { margin: 0 0 0.75rem; font-style: normal; }

/* Links in text colour with a green underline: the green of the chat is too
   light to read as text on white. */
a {
  color: rgb(var(--theme-ink));
  text-decoration: underline;
  text-decoration-color: rgb(var(--theme-accent));
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: rgb(var(--theme-accent)); }

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.language { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-bottom: 1rem; font-size: .9rem; }
.language select { color: inherit; background: rgb(var(--theme-surface)); border: 1px solid rgb(var(--theme-line)); border-radius: .3rem; padding: .4rem; }

.hint {
  border-left: 3px solid rgb(var(--theme-accent));
  padding: 0.5rem 0.9rem;
  color: rgb(var(--theme-quiet));
  font-size: 0.9rem;
}

@media (max-width: 40rem) {
  main { margin: 0; border-radius: 0; border-width: 0 0 1px; padding: 1.5rem 1.25rem; }
}
