/* Layout: a river-valley town map up top, then one "place" at a time below it, chosen by hash (#hall, #commons ...). WV blue + old gold, quilt-block marks for each place. */
:root {
  --bg: #f1f4f1;
  --surface: #ffffff;
  --surface-2: #e8ede9;
  --ink: #1b2830;
  --muted: #56656e;
  --line: #d3dbd6;
  --blue: #1f4e79;
  --blue-ink: #ffffff;
  --gold: #8a6508;
  --gold-fill: #c99a1e;
  --gold-soft: #f4e6bd;
  --green: #2f5d46;
  --ridge-1: #9fb8a8;
  --ridge-2: #6f927e;
  --ridge-3: #456b57;
  --sky: #dfe9ef;
  --river: #7aa6c6;
  --ok: #2f6b3f;
  --warn: #8a5a00;
  --bad: #a33a2b;
  --q1: #1f4e79; --q2: #c99a1e; --q3: #2f5d46; --q4: #a33a2b; --q5: #f4e6bd;
  --display: "Bitter", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11181d; --surface: #19242b; --surface-2: #213039; --ink: #e5ece8; --muted: #9eadb5; --line: #2d3d46;
    --blue: #7fb2e0; --blue-ink: #0f1a22; --gold: #e2bb52; --gold-fill: #c99a1e; --gold-soft: #3a3120; --green: #76ad8f;
    --ridge-1: #2c4a3d; --ridge-2: #24402f; --ridge-3: #1a3125; --sky: #17232c; --river: #3f6a88;
    --ok: #7cc48d; --warn: #e2b04a; --bad: #ef8a7a;
    --q1: #4f86b8; --q2: #c99a1e; --q3: #4f8a6c; --q4: #c4594a; --q5: #3a3120;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11181d; --surface: #19242b; --surface-2: #213039; --ink: #e5ece8; --muted: #9eadb5; --line: #2d3d46;
  --blue: #7fb2e0; --blue-ink: #0f1a22; --gold: #e2bb52; --gold-fill: #c99a1e; --gold-soft: #3a3120; --green: #76ad8f;
  --ridge-1: #2c4a3d; --ridge-2: #24402f; --ridge-3: #1a3125; --sky: #17232c; --river: #3f6a88;
  --ok: #7cc48d; --warn: #e2b04a; --bad: #ef8a7a;
  --q1: #4f86b8; --q2: #c99a1e; --q3: #4f8a6c; --q4: #c4594a; --q5: #3a3120;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 800; }
h2 { font-size: 1.55rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-fill); outline-offset: 2px; }

/* header */
.top { padding-block: 18px 6px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.brand small { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.who { display: flex; gap: 10px; align-items: center; font-size: .95rem; color: var(--muted); }
.who img { width: 32px; height: 32px; border-radius: 50%; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--gold-soft); color: var(--gold); }
.pill.blue { background: var(--surface-2); color: var(--blue); }

/* map */
.map { margin-top: 10px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--sky); }
.map svg { display: block; width: 100%; height: auto; }
.map .bldg { cursor: pointer; }
.map .bldg:hover .lbl-bg, .map .bldg:focus .lbl-bg, .map .bldg.on .lbl-bg { fill: var(--gold-fill); }
.map .bldg:focus { outline: none; }
.map .lbl { font-family: var(--display); font-weight: 700; font-size: 17px; fill: var(--ink); }
.map .lbl-bg { fill: var(--surface); stroke: var(--line); }
.map .wall { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.map .roof { fill: var(--blue); }
.map .roof-g { fill: var(--gold-fill); }
.map .win { fill: var(--gold-soft); stroke: var(--ink); stroke-width: 1; }
.map .screen { fill: var(--gold-soft); stroke: var(--ink); stroke-width: 1; }
.map .car-body { fill: var(--q4); stroke: var(--ink); stroke-width: 1; }
.map .car-body.alt { fill: var(--blue); }
.map .wheel { fill: var(--ink); }
.map .road { fill: var(--surface-2); }
.map .river { fill: var(--river); }
.map .ridge1 { fill: var(--ridge-1); } .map .ridge2 { fill: var(--ridge-2); } .map .ridge3 { fill: var(--ridge-3); }
.map .rivername { font-family: var(--body); font-style: italic; font-size: 14px; fill: var(--surface); opacity: .9; letter-spacing: .2em; }
@media (max-width: 600px) { .map .lbl { font-size: 24px; } }

/* nav */
nav.places { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; scrollbar-width: thin; }
nav.places a { flex: none; display: flex; gap: 8px; align-items: center; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 7px 12px 7px 8px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
nav.places a[aria-current="page"] { background: var(--blue); color: var(--blue-ink); border-color: var(--blue); }
.quilt { flex: none; border-radius: 3px; overflow: hidden; }

/* views */
main { padding-block: 6px 40px; }
.view-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.view-head .quilt { margin-top: 4px; }
.view-head p { color: var(--muted); margin-top: 4px; max-width: 62ch; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 12px; min-width: 0; }
.panel.soft { background: var(--surface-2); border-color: transparent; }
.stack { display: grid; gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.empty { border: 1px dashed var(--line); border-radius: 12px; padding: 18px; color: var(--muted); background: var(--surface); }
.note { font-size: .92rem; padding: 10px 12px; border-radius: 8px; background: var(--gold-soft); color: var(--ink); }
.note.bad { background: var(--surface-2); color: var(--bad); }

/* home cards */
.places-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.place { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.place:hover { border-color: var(--blue); }
.place .qname { font-size: .78rem; color: var(--muted); font-style: italic; }
.place p { color: var(--muted); font-size: .95rem; }

/* items */
.item { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 4px; }
.item:first-child { border-top: 0; padding-top: 0; }
.item .meta { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shop { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; }
.awning { height: 18px; background: repeating-linear-gradient(90deg, var(--blue) 0 18px, var(--gold-fill) 18px 36px); }
.shop .in { padding: 14px; display: grid; gap: 6px; }
.shop .kind { font-size: .85rem; color: var(--gold); font-weight: 700; }

/* posts */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.post.reply { margin-left: 22px; border-left: 4px solid var(--gold-fill); }
.post .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.post .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.topic { font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--blue); }
.topic.offer { color: var(--ok); } .topic.thanks { color: var(--gold); } .topic.idea { color: var(--green); }
.hidden-post { opacity: .55; }

/* forms */
label { font-weight: 600; font-size: .95rem; display: grid; gap: 4px; }
input[type="text"], input[type="url"], input[type="number"], input[type="datetime-local"], select, textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
textarea { min-height: 96px; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { border: 1px solid var(--blue); background: var(--blue); color: var(--blue-ink); padding: 8px 16px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.small { padding: 4px 10px; font-size: .85rem; font-weight: 600; }
.btn.quiet { border-color: var(--line); background: transparent; color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-weight: 500; font-size: .9rem; cursor: pointer; background: var(--surface); }
.chip input { accent-color: var(--blue); }
.chip.static { cursor: default; }
.pledge { display: grid; gap: 8px; }
.pledge label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.pledge input { margin-top: 5px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.counter { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* learning */
.lessons { display: grid; gap: 12px; }
.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.lesson > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.lesson > summary::-webkit-details-marker { display: none; }
.lesson .num { font-family: var(--display); font-weight: 800; color: var(--gold); width: 1.6em; flex: none; font-variant-numeric: tabular-nums; }
.lesson .ttl { flex: 1; min-width: 0; }
.lesson .ttl small { display: block; color: var(--muted); font-size: .85rem; }
.lesson .done-mark { font-size: .8rem; font-weight: 700; color: var(--ok); }
.lesson .lbody { padding: 0 16px 16px; display: grid; gap: 12px; }
.lesson .lbody p { max-width: 65ch; }
.try { border-left: 4px solid var(--gold-fill); padding: 8px 12px; background: var(--gold-soft); border-radius: 0 8px 8px 0; }
.progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--green); width: 0; transition: width .3s; }
@media (prefers-reduced-motion: reduce) { .progress > i { transition: none; } }

/* neighbors */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 6px; align-content: start; }
.initial { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; background: var(--gold-soft); color: var(--gold); }

footer { border-top: 1px solid var(--line); padding-block: 18px 30px; color: var(--muted); font-size: .92rem; display: grid; gap: 6px; }
footer strong { color: var(--ink); }

/* added for the Azure site */
.alert { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .92rem; padding-block: 8px; }
.who a.btn { text-decoration: none; }
.desk-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .4em; border-radius: 999px; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 700; }
.loading { color: var(--muted); padding: 12px 0; }

/* Learning & Conference Room and Drive-In */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
details.panel > summary { cursor: pointer; }
details.panel:not([open]) { gap: 0; }
.marquee { height: 10px; border-radius: 999px; background: repeating-linear-gradient(90deg, var(--gold-fill) 0 10px, var(--surface-2) 10px 20px); }
.item a.btn { text-decoration: none; }
