:root {
  color-scheme: light;
  --ink: #1b1f24;
  --muted: #5b6470;
  --line: #d9dee5;
  --paper: #ffffff;
  --accent: #0b5d4b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
main { max-width: 56rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
header h1 { margin: 0 0 .25rem; font-size: 1.6rem; }
header p { margin: 0 0 1.5rem; color: var(--muted); }
nav.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
nav.crumbs a { color: var(--accent); text-decoration: none; }
ul.nodes { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
ul.nodes li { border: 1px solid var(--line); border-radius: .5rem; padding: .75rem 1rem; }
ul.nodes a { color: var(--ink); text-decoration: none; font-weight: 600; }
ul.nodes small { display: block; color: var(--muted); }
.status { border-left: 3px solid var(--line); padding: .5rem 1rem; color: var(--muted); margin: 1.5rem 0; }
.error { color: #8a1c1c; }
footer { margin-top: 3rem; font-size: .85rem; color: var(--muted); }
section.figures { margin: 2rem 0; }
section.figures h3 { margin: 2rem 0 .25rem; font-size: 1.05rem; }
section.figures h4 { margin: 1.5rem 0 .25rem; font-size: .95rem; }
section.figures h3.key, section.figures h4 { text-transform: capitalize; }
p.basis { margin: .1rem 0; font-size: .85rem; color: var(--muted); }
.table-scroll { overflow-x: auto; margin: .75rem 0; border: 1px solid var(--line); border-radius: .5rem; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.table-scroll th, .table-scroll td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-scroll th { background: #f5f7f9; font-weight: 600; }
.table-scroll tr:last-child td { border-bottom: none; }
ul.notes { margin: .25rem 0 1rem; padding-left: 1.1rem; font-size: .85rem; color: var(--muted); }
p.provenance { margin: 2rem 0 0; font-size: .8rem; color: var(--muted); }
p.provenance .source { display: block; }

.account { font-size: .9rem; margin-top: .5rem; }
.account a, .private a { color: var(--accent); }
.signals { border: 1px solid var(--line); border-radius: .5rem; padding: .75rem 1rem; margin: 1rem 0; }
.signals h3, .private h3 { margin: 0 0 .5rem; font-size: 1rem; }
.signals ul { margin: 0; padding-left: 1.2rem; }
.muted { color: var(--muted); font-size: .9rem; }
.private { border: 1px dashed var(--line); border-radius: .5rem; padding: .75rem 1rem; margin: 1rem 0; }
.private h4 { margin: 1rem 0 .25rem; font-size: .95rem; }
.form { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); align-items: end; }
.form label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); gap: .2rem; }
.form input, .form select { font: inherit; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: .35rem; }
button { font: inherit; padding: .4rem .8rem; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: .35rem; cursor: pointer; }
.row { margin: .5rem 0; }

.observations { border: 1px solid var(--line); border-radius: .5rem; padding: .75rem 1rem; margin: 1.5rem 0; }
.observations h3 { margin: 0 0 .25rem; font-size: 1rem; }
.observations h4 { margin: 1.25rem 0 .25rem; font-size: .95rem; }
ul.reports { list-style: none; margin: .75rem 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr); }
li.observation { border: 1px solid var(--line); border-radius: .5rem; padding: .6rem .8rem; min-width: 0; }
/* A member's own words, a long link, and a narrow phone all have to fit. */
li.observation p { margin: .15rem 0; overflow-wrap: anywhere; }
p.reported { font-weight: 600; }
img.thumb { max-height: 8rem; border: 1px solid var(--line); border-radius: .35rem; margin: .35rem 0; }
.observations .row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.observations .row select { font: inherit; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: .35rem; max-width: 100%; }

/* What the registry states about this node. A definition list rather than a table,
   because the fields it holds differ from one building to the next and a table would
   need a column for every field any building might have. */
.facts { border: 1px solid var(--line); border-radius: .5rem; padding: .75rem 1rem; margin: 1.5rem 0; }
.facts h3 { margin: 0 0 .5rem; font-size: 1rem; }
.facts h4 { margin: 1.25rem 0 .25rem; font-size: .95rem; }
dl.facts-list { display: grid; gap: .5rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin: 0; }
.facts .fact { min-width: 0; }
.facts dt { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd.source { font-size: .7rem; }
.facts p.provenance { margin: 1rem 0 0; }
