/* GrantMind | Base: reset, typography, form controls, buttons, links. */
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font:
    15px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.1;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.05rem;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
input,
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--ln);
  border-radius: 6px;
  background: var(--sf);
  margin: 3px 0 10px;
}
button {
  cursor: pointer;
  border: 1px solid var(--ln);
  background: var(--sf);
  padding: 7px 12px;
  border-radius: 6px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 1px;
}
.p {
  background: var(--pr);
  color: var(--pt);
  border-color: var(--pr);
}
.d {
  color: var(--bad);
}
.s {
  padding: 4px 8px;
  font-size: 13px;
}
a {
  color: var(--pr);
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
}
body {
  overflow-x: hidden;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
}
