:root {
  font-family: system-ui, sans-serif;
  color: #172e35;
  background: #f4f6f3;
  font-size: 17px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #fff;
  padding: 18px max(18px, calc((100% - 620px) / 2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #d4ded6;
}
.brand {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: #173d36;
}
.brand span {
  font-weight: 400;
  color: #52676b;
  font-size: 1rem;
  margin-left: 8px;
}
main,
#message {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 18px;
}
h1 {
  font-size: 1.85rem;
  line-height: 1.15;
  margin: 6px 0 18px;
}
h2 {
  font-size: 1.2rem;
}
p {
  line-height: 1.5;
}
.muted,
small {
  color: #52676b;
}
label {
  display: block;
  font-weight: 600;
  margin: 19px 0 7px;
}
input,
textarea,
select,
button,
.button {
  font: inherit;
  min-height: 48px;
  border: 1px solid #9dafa8;
  border-radius: 9px;
  padding: 12px;
  width: 100%;
  color: inherit;
  background: #fff;
}
textarea {
  min-height: 90px;
}
button,
.button {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: 650;
  margin-top: 10px;
}
button.primary,
.button.primary {
  background: #185b46;
  color: white;
  border-color: #185b46;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.back {
  background: transparent;
  border: 0;
  text-align: left;
  padding-left: 0;
  width: auto;
}
header button {
  width: auto;
  font-size: 0.85rem;
  margin: 0;
}
input[type="checkbox"],
input[type="radio"] {
  width: 24px;
  min-height: 24px;
  height: 24px;
  flex-shrink: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 500;
}
.card {
  background: #fff;
  border: 1px solid #d6dfd8;
  border-radius: 14px;
  padding: 18px;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.card p {
  margin: 6px 0;
}
/* A card that opens something reads like the other cards: left-aligned, the first line bold. */
button.card {
  display: block;
  width: 100%;
  text-align: left;
  font-weight: 400;
}
.selected {
  border: 2px solid #185b46;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.row > * {
  flex: 1 1 auto;
  /* Never narrower than the label, so large text wraps the row instead of clipping a button. */
  min-width: fit-content;
}
.tag {
  font-size: 0.8rem;
  color: #185b46;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.total {
  font-size: 1.65rem;
  font-weight: 800;
}
.facts {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.heard {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: baseline;
  margin: 12px 0 0;
  padding: 10px 14px;
  border-left: 4px solid #ae771c;
  background: #fff7e7;
}
.heard dt {
  font-size: 0.85rem;
  color: #4f5b55;
}
.heard dd {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.notice {
  padding: 14px;
  border-left: 4px solid #ae771c;
  background: #fff7e7;
  line-height: 1.5;
}
#message:empty {
  display: none;
}
#message {
  color: #8c251a;
  font-weight: 600;
  position: sticky;
  bottom: 0;
  background: #fff2ed;
  border-top: 2px solid #b35541;
}
a {
  color: #185b46;
}
*:focus-visible {
  outline: 3px solid #b47715;
  outline-offset: 3px;
}
/* A new screen moves focus to its heading for screen readers; it isn't a control, so it shows no ring. */
h1[tabindex="-1"]:focus {
  outline: none;
}
hr {
  border: 0;
  border-top: 1px solid #d6dfd8;
  margin: 22px 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
fieldset + fieldset {
  margin-top: 28px;
}
legend {
  font-size: 1.15rem;
  font-weight: 750;
  margin-top: 28px;
  padding: 0;
}
.amount {
  font-variant-numeric: tabular-nums;
}
.figure {
  font-size: 1.35rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.history {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.history li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #d6dfd8;
}
.history li button {
  width: auto;
  margin: 0;
}
.line {
  border-top: 1px solid #d6dfd8;
  margin-top: 14px;
}
/* Author button/row display rules must not override the native hidden state. */
[hidden] {
  display: none !important;
}
/* Launch: label-and-value lists, such as Business details. */
dl.details {
  margin: 14px 0;
}
dl.details dt {
  font-size: 0.85rem;
  color: #52676b;
  margin-top: 12px;
}
dl.details dt:first-child {
  margin-top: 0;
}
dl.details dd {
  margin: 2px 0 0;
  font-weight: 600;
}
/* Launch: a code to read off the screen and send. */
.code {
  font: 700 1.6rem/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.12em;
  text-align: center;
  background: #fff;
  border: 2px dashed #185b46;
  border-radius: 12px;
  padding: 16px;
}
