/* The pages that read from the account backend or run a calculator: an app's page, the download list, the legal documents,
   the help guides and the two calculators. Same tokens, same type; nothing here moves. */
.art {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 32px;
  border-radius: var(--radius);
  background: var(--surface);
}
.page .art + p,
.page .art + .facts {
  margin-top: 32px;
}
.facts {
  margin-top: 32px;
  max-width: 760px;
}
.facts > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--raised);
}
.facts dt {
  font-size: 14px;
  color: var(--subtle);
}
.facts dd {
  margin-top: 4px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.facts .plain {
  margin-top: 0;
}
.facts .plain li {
  padding: 2px 0;
}
.dl {
  margin-top: 8px;
}
.dl h2 {
  margin-top: 32px;
}
.dl li {
  padding: 12px 0;
  border-bottom: 1px solid var(--raised);
}
.meta,
.sha {
  font-size: 14px;
  color: var(--muted);
}
.sha code {
  overflow-wrap: anywhere;
}
code {
  font: inherit;
  font-size: 0.92em;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: var(--radius);
}

/* the legal documents */
.doc {
  max-width: 760px;
  margin-top: 24px;
}
.doc h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  margin-top: 40px;
}
.doc h3,
.doc h4 {
  font-size: 20px;
  margin-top: 28px;
  line-height: 1.3;
}
.doc p,
.doc li {
  max-width: 40em;
  font-size: 17px;
  line-height: 1.6;
}
.doc p {
  margin-top: 14px;
}
.doclist {
  margin-top: 14px;
  padding-left: 24px;
  list-style: disc;
}
ol.doclist {
  list-style: decimal;
}
.doclist li {
  padding: 3px 0;
}
.page ol.doclist {
  max-width: 40em;
  font-size: 18px;
}
.table {
  max-width: 100%;
  margin-top: 18px;
  overflow-x: auto;
}
.table table {
  border-collapse: collapse;
  font-size: 15px;
}
.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--raised);
}
.table th {
  color: var(--muted);
}

/* the help guides */
.guide {
  max-width: 760px;
}
.guide h2 {
  margin-top: 56px;
}
.guide .steps {
  margin-top: 24px;
}
.guide .steps h3 {
  font-size: 18px;
  line-height: 1.4;
}
.guide .steps p {
  margin-top: 6px;
  font-size: 17px;
}

/* the calculators */
.calc {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  max-width: 520px;
}
.calc[hidden] {
  display: none;
}
/* Where scripts run, the form that is about to appear already holds its space (invisible, out of reach), so the result area and
   the rate chart do not jump down when the modules have loaded. Without scripts it stays gone, as before. */
@media (scripting: enabled) {
  .calc[hidden] {
    display: grid;
    visibility: hidden;
  }
}
.calc .calc-field {
  display: grid;
  gap: 6px;
}
.calc label {
  font-size: 16px;
  color: var(--muted);
}
.calc input {
  width: 100%;
}
.calc p {
  margin-top: 0;
}
.calc-result {
  max-width: 760px;
  margin-top: 32px;
}
.calc-result h2 {
  margin-top: 0;
}
.calc-rows {
  margin-top: 16px;
}
.calc-rows > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--raised);
}
.calc-rows dt {
  color: var(--muted);
}
.calc-rows dd {
  font-size: 18px;
}
.calc-error {
  color: var(--warning);
}
.calc-note {
  margin-top: 16px;
}
