
html, body { background: #fff; color: #000; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.4; }
a { color: #00e; text-decoration: underline; }
a:visited { color: #551a8b; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 8px 16px 16px; min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; }
.wrap > .footer { margin-top: auto; }
.masthead { display: flex; align-items: baseline; gap: 14px; padding: 6px 0 4px; flex-wrap: wrap; }
.masthead .logo { font-size: 20px; font-weight: bold; color: #551a8b; text-decoration: none; letter-spacing: -0.5px; }
.masthead small { color: #666; }
.masthead .right { margin-left: auto; color: #666; font-size: 11px; }
.crumbs { color: #333; margin: 6px 0 14px; }
h1 { font-size: 16px; margin: 12px 0 8px; }
h2 { font-size: 13px; margin: 14px 0 4px; }
h3 { font-size: 13px; margin: 8px 0 4px; }
p { margin: 6px 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.rows li { padding: 3px 0; border-bottom: 1px dotted #ccc; }
ul.rows li:last-child { border-bottom: 0; }
.box { border: 1px solid #ccc; background: #f7f7f7; padding: 8px 10px; margin: 8px 0; }
.box.plain { background: #fff; }
.posting { border: 1px solid #ccc; background: #fff; padding: 10px 12px; margin: 8px 0; }
.postingbody { white-space: pre-wrap; font-family: "Times New Roman", Times, serif; font-size: 14px; }
.attrs span { display: inline-block; background: #eee; border: 1px solid #ddd; padding: 1px 6px; margin: 2px 4px 2px 0; font-size: 12px; }
.meta { color: #666; font-size: 11px; }
.hint { color: #555; font-size: 12px; }
.warn { color: #a00; }
.ok { color: #060; }
.dim { color: #888; }
input.bad { border-color: #a00; text-decoration: line-through; }
.best { background: #efe; border-color: #9c9; }
tr.best td { background: #efe; }
table { border-collapse: collapse; font-size: 13px; }
td, th { padding: 2px 8px 2px 0; vertical-align: top; text-align: left; }
th { font-weight: normal; color: #555; }
table.grid td, table.grid th { border-bottom: 1px dotted #ccc; padding: 3px 10px 3px 0; }
table.grid tr.selected td { background: #eef6ff; }
table.grid tr:target td, table.grid tr.hit td { background: #ffe; }
.grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
form.stack label, form.step label { display: block; margin: 6px 0; }
form.stack label > span, form.step label > span { display: inline-block; min-width: 140px; color: #333; }
input[type=text], input[type=email], input[type=number], select, textarea { font: inherit; border: 1px solid #999; padding: 2px 4px; background: #fff; }
textarea { width: 100%; box-sizing: border-box; font-family: "Times New Roman", Times, serif; font-size: 14px; }
button { font: inherit; padding: 2px 10px; cursor: pointer; }
button.link { border: 0; background: none; color: #00e; text-decoration: underline; padding: 0; }
button.link:focus-visible, a:focus-visible { outline: 2px solid #551a8b; outline-offset: 2px; }
button[disabled] { cursor: default; color: #888; }
form.inline { display: inline; }
form.filter { display: block; margin: 8px 0; }
form.filter select, form.filter input[type=text], form.filter input[type=number] { margin: 0 2px; }
form.step { display: block; margin: 4px 0; }
.actions { margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.cols { display: flex; gap: 24px; flex-wrap: wrap; }
.cols > div, .cols > form { flex: 1 1 320px; min-width: 0; }
.footer { margin-top: 40px; border-top: 1px solid #ccc; padding-top: 6px; color: #666; font-size: 11px; }
.footer span { float: right; }
.footer a { margin-right: 8px; }
hr { border: 0; border-top: 1px solid #ccc; margin: 12px 0; }
.note { padding: 6px 8px; margin: 8px 0; border: 1px solid; }
.note ul { margin: 4px 0 0; padding-left: 18px; }
.err { background: #fee; border-color: #c99; }
.notice { background: #ffe; border-color: #cc9; }
.done { background: #efe; border-color: #9c9; }
.narrow { max-width: 420px; }
.formula { margin-top: 14px; padding: 10px 14px 6px; border: 1px solid #ccc; background: #fafafa; }
.formula h3 { margin: 0 0 6px; }
.formula-row { padding: 8px 0 6px; border-top: 1px dotted #ccc; }
.formula-label { margin-bottom: 2px; }
.formula-label .meta { display: inline; margin-left: 8px; }
.formula-math { overflow-x: auto; }
.formula math { font-size: 18px; margin: 4px 0 6px; }
.formula h3 .meta { font-weight: normal; }
.formula math mfrac { padding: 0 2px; }
.formula math mo { padding: 0 2px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--pin, #333); vertical-align: middle; box-sizing: border-box; background: #fff; }
.dot.solid { background: var(--pin, #333); }
.dot.dashed { border-style: dashed; }
.legend { margin: 6px 0 10px; }
.legend span { margin-right: 12px; }
#map { height: 480px; border: 1px solid #ccc; background: #eef; }
#map .meta { padding: 8px; }
.leaflet-popup-content { font-size: 12px; line-height: 1.5; }
.posting.needs-you { border-color: #cc9; background: #fffdf0; }
.stepper { display: flex; gap: 6px; margin: 8px 0 12px; flex-wrap: wrap; }
.step-box { flex: 1 1 160px; border: 1px solid #ccc; padding: 6px 10px; text-decoration: none; color: #000; background: #f7f7f7; }
.step-box.done { border-color: #9c9; background: #efe; }
.step-box.current { border-color: #cc9; background: #ffe; border-width: 2px; }
.step-box.later { color: #888; }
.step-box b { display: block; }
.madlib { font-size: 15px; line-height: 2.1; }
.madlib input[type=text], .madlib input[type=number] { font-size: 15px; border: 0; border-bottom: 1px solid #333; background: #ffe; padding: 0 4px; max-width: 100%; }
.madlib p { line-height: 1.4; margin-top: 8px; }
.attrs.stats span { background: #f7f7f7; font-size: 13px; padding: 3px 8px; }
.attrs.stats b { font-size: 15px; }
.stack .prefilled { background: #ffe; }
pre.raw { white-space: pre-wrap; font-size: 12px; border: 1px solid #ccc; padding: 8px; background: #fafafa; }
.msg.in { background: #fff; }
@media (max-width: 640px) {
  .wrap { padding: 8px 12px 16px; }
  .footer span { float: none; display: block; margin-top: 4px; }
  .masthead .right { margin-left: 0; width: 100%; font-size: 12px; }
  .cols { display: block; }
  .cols > div, .cols > form { margin-bottom: 12px; }
  form.stack label > span, form.step label > span { display: block; min-width: 0; }
  input[type=text], input[type=email], input[type=number], select { max-width: 100%; box-sizing: border-box; }
  button { padding: 6px 12px; }
  button.link { padding: 4px 2px; }
  table.grid { font-size: 12px; }
  .formula math { font-size: 16px; }
  #map { height: 320px; }
  .phone-hide { display: none; }
  textarea { max-height: 40vh; }
}
