:root {
  --paper: #f3e6cf;
  --paper-deep: #e5cda3;
  --ink: #2f2a22;
  --muted: #6f6251;
  --barn: #923d2f;
  --barn-dark: #6d2f28;
  --leaf: #526d46;
  --water: #4d7380;
  --gold: #bd8b38;
  --line: #cdb58d;
  --line-soft: rgba(205, 181, 141, 0.62);
  --white: #fff8eb;
  --shadow: rgba(47, 42, 34, 0.16);
  --mono: Arial, Helvetica, "Liberation Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  line-height: 1.5;
}

a {
  color: var(--barn);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  grid-column: 1;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.top-nav,
.eyebrow,
.listing-meta,
.pill,
dt {
  font-family: var(--mono);
}

.brand small {
  color: var(--muted);
  font-size: 0.77rem;
}

.masthead-title {
  grid-column: 2;
  min-width: 0;
}

.masthead-title strong,
.masthead-title span {
  display: block;
  overflow-wrap: anywhere;
}

.masthead-title strong {
  font-size: 1rem;
  line-height: 1.15;
}

.masthead-title span {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.25;
}

.top-nav {
  display: flex;
  grid-column: 3;
  align-items: center;
  gap: 0.85rem;
  justify-self: end;
  font-size: 0.92rem;
}

.top-nav a,
.top-nav button,
.top-nav summary,
.nav-bumper {
  white-space: nowrap;
}

.nav-bumper {
  color: var(--muted);
}

.top-nav form {
  margin: 0;
}

.top-nav button,
.top-nav summary {
  padding: 0;
  border: 0;
  color: var(--barn);
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu-panel {
  position: absolute;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 0.4rem;
  min-width: 10rem;
  margin-top: 0.55rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 0.35rem 1rem var(--shadow);
}

.nav-menu-panel a,
.nav-menu-panel button {
  display: block;
  width: 100%;
  color: var(--barn);
  text-align: left;
}

main {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
}

.system-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(72vh, 40rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.system-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(47, 42, 34, 0.88),
    rgba(47, 42, 34, 0.48) 56%,
    rgba(47, 42, 34, 0.12)
  );
}

.system-hero picture {
  display: contents;
}

.system-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.system-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  max-width: 36rem;
  padding: clamp(1.25rem, 5vw, 3rem);
  color: var(--white);
}

.system-hero-copy h1 {
  max-width: none;
  color: var(--white);
  font-size: clamp(2.6rem, 8vw, 5rem);
}

.system-hero-copy p {
  max-width: 32rem;
  margin: 0;
  color: rgba(255, 248, 235, 0.92);
  font-size: 1.12rem;
}

.system-hero-copy .button.primary {
  justify-self: start;
  border-color: var(--white);
  background: var(--white);
  color: var(--barn-dark);
}

.system-node-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
  padding: 1rem 0 0;
}

.system-node-band p {
  max-width: 44rem;
  color: var(--muted);
}

.system-node-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.system-node-list li {
  display: grid;
  gap: 0.12rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.system-node-list span {
  color: var(--muted);
}

.browse-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
}

.browse-title h1 {
  max-width: none;
  font-size: 1.75rem;
}

.browse-title p:not(.eyebrow) {
  max-width: 42rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.browse-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.front-page {
  border: 1px solid var(--line);
  background: var(--white);
}

.front-page {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.newspaper-heading {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--ink);
}

.newspaper-heading h2 {
  font-size: 1.35rem;
}

.board-toggle,
.board-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.board-category-filter {
  margin-top: 0.45rem;
}

.board-toggle a,
.board-category-filter a {
  color: var(--muted);
}

.board-toggle a.is-active,
.board-category-filter a.is-active {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.front-stream {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.front-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.4rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.front-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.front-rank {
  align-self: start;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.front-copy {
  display: grid;
  gap: 0.15rem;
}

.front-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.front-meta time,
.front-meta span,
.front-meta a {
  color: var(--muted);
  font-family: var(--mono);
}

.front-meta a {
  text-decoration-thickness: 0.08em;
}

.front-meta .front-relationship {
  color: var(--ink);
}

.front-copy h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.18;
}

.front-channel {
  color: var(--muted);
  font-weight: 700;
}

.front-separator,
.front-detail {
  color: var(--muted);
}

.front-shelf {
  display: inline-flex;
  margin-left: 0.25rem;
  color: var(--water);
  font-size: 0.82rem;
  font-weight: 800;
}

.share-detail {
  display: grid;
  gap: 1rem;
  max-width: 64rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.share-detail h1 {
  margin: 0.15rem 0 0.35rem;
}

.share-body {
  max-width: 60rem;
  margin: 0;
  font-size: 1.08rem;
}

.share-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0;
  padding: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.share-facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  align-items: baseline;
  min-width: 0;
}

.share-facts dt,
.share-facts dd {
  margin: 0;
}

.share-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.share-facts dt::after {
  content: ":";
}

.tag {
  display: inline-block;
  margin: 0 0.35rem 0.15rem 0;
  color: var(--muted);
}

.responses {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.2rem;
  padding-top: 0.2rem;
  border-top: 0;
}

.responses h2 {
  margin: 0;
  font-size: 1rem;
}

.response-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.response-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.response-list li:first-child {
  border-top: 0;
}

.response-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.response-meta time,
.response-meta span,
.response-meta a {
  color: var(--muted);
}

.response-list p {
  margin: 0.25rem 0 0;
}

.response-actions {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.response-actions a {
  color: var(--muted);
}

.response-children {
  display: grid;
  gap: 0;
  margin: 0.55rem 0 0 0.8rem;
  padding: 0 0 0 0.8rem;
  border-left: 1px solid var(--line-soft);
  list-style: none;
}

.response-children li:first-child {
  border-top: 0;
  padding-top: 0.1rem;
}

.response-replying-to {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.response-replying-to a {
  color: var(--muted);
}

.response-form {
  display: grid;
  gap: 0.6rem;
  max-width: 48rem;
}

.message-target {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.message-target div {
  display: grid;
  gap: 0.1rem;
}

.message-target dd {
  margin: 0;
}

.message-target span {
  display: block;
  color: var(--muted);
}

.home-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 34rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  box-shadow: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.home-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero picture {
  display: contents;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  padding: clamp(1.2rem, 4vw, 3rem);
  color: var(--white);
}

.home-hero-copy .eyebrow {
  color: #f1d28b;
}

.home-hero-copy p:not(.eyebrow) {
  max-width: 30rem;
  color: rgba(255, 248, 235, 0.92);
  font-size: 1.08rem;
}

.home-hero-copy .button.primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--barn-dark);
}

.home-hero-copy .button.secondary {
  border-color: rgba(255, 248, 235, 0.72);
  background: rgba(255, 248, 235, 0.12);
  color: var(--white);
}

.intro-band,
.profile-shell,
.card-page,
.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: stretch;
}

.form-shell.narrow {
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.85fr);
}

.intro-copy,
.profile-panel,
.stand-board,
.neighbor-card-preview,
.approval-note,
.empty-state,
.listing-card,
.listing-row,
.form-intro,
.form-panel,
.panel {
  border: 1px solid var(--line);
  background: var(--white);
}

.intro-copy,
.profile-panel,
.stand-board,
.neighbor-card-preview,
.approval-note,
.empty-state,
.form-intro,
.form-panel,
.panel {
  padding: clamp(1rem, 4vw, 2rem);
}

.intro-copy {
  background: var(--white);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: 2rem;
}

h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.1rem;
}

.intro-copy > p:last-child {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.quick-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.quick-ledger div {
  display: grid;
  align-content: center;
  min-height: 5.4rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.quick-ledger strong {
  color: var(--barn);
  font-size: 2rem;
  line-height: 1;
}

.quick-ledger span,
.section-heading p,
.person-line span,
.listing-card p,
.approval-note p,
.empty-state p,
.muted,
.field small {
  color: var(--muted);
}

.content-section {
  margin-top: 1.5rem;
}

.board-section {
  padding-top: 0.5rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-heading p {
  max-width: 28rem;
  margin: 0;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.circle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.directory-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  background: var(--white);
}

.directory-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.directory-table th,
.directory-table td {
  padding: 0.62rem 0.7rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.directory-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.directory-table tbody tr:last-child td {
  border-bottom: 0;
}

.directory-table td {
  color: var(--ink);
}

.directory-primary {
  color: var(--barn);
  font-weight: 800;
}

.directory-person {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.directory-substat {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.directory-chip {
  display: inline-flex;
  margin: 0 0.25rem 0.25rem 0;
  color: var(--barn);
  font-size: 0.86rem;
}

.directory-action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.directory-action .status-label {
  margin: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
}

.listing-card,
.listing-row {
  padding: 1rem;
  box-shadow: none;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--water);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-panel h1 {
  color: var(--barn);
}

.profile-avatar {
  display: inline-grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--barn);
  font-size: 1.4rem;
  font-weight: 900;
  object-fit: cover;
}

.profile-avatar.small-avatar {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.95rem;
}

.profile-avatar.large-avatar {
  width: 7rem;
  height: 7rem;
  margin: 0.6rem 0;
  font-size: 2rem;
}

.stand-tagline {
  color: var(--water);
  font-size: 1.25rem;
}

.stand-banner-mission {
  max-width: 56rem;
  margin: 0.65rem 0 0;
  color: var(--ink);
  font-size: 1.04rem;
}

.stand-page {
  display: grid;
  gap: 1rem;
  max-width: 76rem;
}

.stand-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem 1rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  background: var(--white);
}

.stand-cover-frame {
  grid-column: 1 / -1;
  position: relative;
  min-width: 0;
}

.stand-banner-copy {
  grid-column: 1;
  min-width: 0;
}

.stand-cover-image,
.stand-cover-placeholder {
  width: 100%;
  aspect-ratio: 5 / 1;
  min-height: 9rem;
  border: 1px solid var(--line-soft);
  background: var(--paper-deep);
}

.stand-cover-image {
  display: block;
  object-fit: cover;
}

.stand-banner > .stand-cover-image {
  grid-column: 1 / -1;
}

.stand-cover-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.stand-banner h1 {
  max-width: none;
  color: var(--barn);
}

.stand-banner p {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--muted);
}

.stand-banner p.stand-banner-mission {
  max-width: 56rem;
  margin-top: 0.65rem;
  color: var(--ink);
}

.stand-grid {
  display: grid;
  grid-template-columns: minmax(220px, 17rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.profile-edit-page {
  display: grid;
  gap: 1rem;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 20rem);
  gap: 1rem;
  align-items: start;
}

.stand-sidebar,
.stand-main {
  display: grid;
  gap: 1rem;
}

.stand-module,
.stand-section {
  border: 1px solid var(--line-soft);
  background: var(--white);
}

.stand-module {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
}

.stand-module h2,
.stand-section h2 {
  margin: -0.8rem -0.8rem 0;
  padding: 0.42rem 0.65rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(229, 205, 163, 0.42);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.15;
}

.stand-module-head {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: center;
  margin: -0.8rem -0.8rem 0;
  padding: 0.42rem 0.65rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(229, 205, 163, 0.42);
}

.stand-module-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.stand-module h3 {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.stand-module p {
  margin: 0;
  color: var(--muted);
}

.stand-link-list,
.stand-owner-actions,
.stand-mini-list {
  display: grid;
  gap: 0.45rem;
}

.stand-owner-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stand-owner-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line-soft);
  color: var(--barn);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.stand-mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stand-mini-list li {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line-soft);
}

.stand-mini-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.stand-status {
  color: var(--leaf);
  font-weight: 800;
}

.stand-tools {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  gap: 0.5rem;
  align-self: start;
  justify-self: end;
  justify-content: flex-end;
}

.inline-edit {
  position: relative;
}

.inline-edit summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.05rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.inline-edit summary::-webkit-details-marker {
  display: none;
}

.inline-edit summary span[aria-hidden="true"] {
  line-height: 1;
}

.icon-button,
.inline-edit summary.icon-button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  line-height: 1;
}

.icon-button > span[aria-hidden="true"]:not(.eye-icon) {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}

.small-icon-button,
.inline-edit summary.small-icon-button {
  width: 1.85rem;
  min-width: 1.85rem;
  height: 1.85rem;
  min-height: 1.85rem;
}

.button.icon-button {
  padding: 0;
}

.eye-icon {
  position: relative;
  display: block;
  width: 1.05rem;
  height: 0.66rem;
  border: 2px solid currentColor;
  border-radius: 50% / 60%;
}

.eye-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.inline-edit[open] summary {
  background: var(--paper-deep);
}

.inline-edit-form {
  display: grid;
  gap: 0.65rem;
  min-width: min(22rem, calc(100vw - 2rem));
  margin-top: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--line-soft);
  background: var(--white);
}

.stand-tools .inline-edit-form {
  position: absolute;
  right: 0;
  z-index: 8;
}

.cover-image-edit {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 6;
}

.cover-image-edit summary {
  min-height: 2.25rem;
  border-color: var(--white);
  background: var(--white);
  color: var(--barn-dark);
  box-shadow: 0 1px 4px var(--shadow);
}

.cover-image-edit[open] summary {
  background: var(--white);
}

.cover-image-edit .inline-edit-form {
  position: absolute;
  right: 0;
  z-index: 9;
}

.private-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.public-access-box {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem;
  border: 1px solid rgba(79, 109, 70, 0.52);
  background: rgba(82, 109, 70, 0.1);
}

.public-access-box strong,
.public-access-module strong {
  color: var(--leaf);
}

.public-access-box span {
  color: var(--muted);
}

.neighbor-card-module {
  justify-items: center;
  text-align: center;
}

.neighbor-card-module .qr-code.small {
  width: min(100%, 9.5rem);
  margin: 0;
}

.stand-section {
  display: grid;
  gap: 0.8rem;
  padding: 0.8rem;
}

.stand-section h2,
.stand-section h3,
.stand-section p {
  margin: 0;
}

.stand-section > p {
  max-width: 54rem;
  color: var(--muted);
}

.stand-statement-section {
  gap: 0.65rem;
}

.stand-section > .stand-statement {
  max-width: 58rem;
  color: var(--ink);
  font-size: 1.04rem;
}

.stand-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin: -0.8rem -0.8rem 0;
  padding: 0.42rem 0.65rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(229, 205, 163, 0.42);
}

.stand-section-head h2 {
  margin: 0;
  padding: 0;
  background: transparent;
}

.offerings-section {
  gap: 0.85rem;
}

.offerings-section h2 {
  font-size: 1.15rem;
}

.offering-shelf {
  display: grid;
  gap: 0.35rem;
}

.offering-shelf + .offering-shelf {
  padding-top: 0.55rem;
  border-top: 1px solid var(--line-soft);
}

.offering-shelf h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.offering-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offering-list > li {
  display: grid;
  gap: 0.12rem;
  padding: 0.42rem 0;
  border-top: 1px solid var(--line-soft);
}

.offering-list > li:first-child {
  border-top: 0;
}

.offering-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: baseline;
}

.offering-title {
  font-weight: 800;
}

.offering-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.stand-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stand-list > li {
  display: grid;
  gap: 0.18rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line-soft);
}

.stand-list > li:first-child {
  border-top: 0;
}

.stand-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stand-list p,
.stand-mini-list span {
  color: var(--muted);
}

.direct-message-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.direct-message-list li {
  display: grid;
  gap: 0.28rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line-soft);
}

.direct-message-list li:first-child {
  border-top: 0;
}

.direct-message-list h3,
.direct-message-list p {
  margin: 0;
}

.direct-message-meta,
.direct-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.direct-message-meta a,
.direct-message-actions a {
  color: var(--muted);
}

.direct-message-actions {
  margin-top: 0.25rem;
}

.direct-message-mini-list li {
  gap: 0.05rem;
}

.share-thumb {
  width: min(14rem, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--paper-deep);
}

.share-photo {
  display: block;
  width: min(100%, 42rem);
  max-height: 32rem;
  object-fit: contain;
  border: 1px solid var(--line-soft);
  background: var(--white);
}

.owner-key {
  margin-top: 0.2rem;
  font-size: 0.86rem;
}

.owner-key a {
  color: var(--muted);
}

.stand-tool-list {
  display: grid;
  gap: 0.4rem;
}

.stand-tool-list p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.stand-tool-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.person-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.card-links,
.listing-stack,
.mini-list {
  display: grid;
  gap: 0.8rem;
}

.mini-list > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.mini-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.stand-board h2 {
  margin-bottom: 1rem;
}

.listing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.45fr);
  gap: 1rem;
}

.pill {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  background: var(--leaf);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

dl {
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0 0 0.7rem;
}

.neighbor-card-preview {
  background: var(--white);
}

.neighbor-card-preview h1 {
  color: var(--barn);
}

.qr-code {
  display: block;
  width: min(100%, 16rem);
  height: auto;
  margin: 1.25rem 0;
  border: 2px solid var(--ink);
  background: var(--white);
}

.qr-code.small {
  width: min(100%, 11rem);
}

.code-line {
  font-family: var(--mono);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.messages {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.message {
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.message.success {
  border-color: rgba(79, 109, 74, 0.55);
}

.message.error {
  border-color: rgba(165, 66, 50, 0.7);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--barn-dark);
  color: var(--white);
  border-color: var(--barn-dark);
}

.button.secondary {
  background: var(--white);
}

.button.icon-button,
.inline-edit summary.icon-button {
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
}

.inline-edit summary.small-icon-button {
  width: 1.85rem;
  min-width: 1.85rem;
  height: 1.85rem;
  min-height: 1.85rem;
}

.small-button {
  min-height: 2.05rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.dashboard-head h1 {
  color: var(--barn);
}

.dashboard-head p {
  max-width: 42rem;
  color: var(--muted);
}

.panel h2 {
  margin-bottom: 0.8rem;
}

.feed-section .panel {
  padding-top: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-card {
  display: grid;
  gap: 0.1rem;
  padding: 0.9rem;
  border: 1px solid var(--line-soft);
  background: var(--white);
}

.stat-card strong {
  color: var(--barn);
  font-size: 1.85rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.stats-list {
  display: grid;
  gap: 0.45rem;
}

.stats-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line-soft);
}

.stats-list div:first-child {
  border-top: 0;
}

.stats-list dd {
  margin: 0;
  color: var(--barn);
  font-weight: 800;
}

.admin-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line-soft);
}

.admin-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-list span,
.admin-list time {
  color: var(--muted);
}

.admin-list time {
  font-size: 0.82rem;
}

.activity-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.activity-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.activity-list time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.activity-list p {
  margin: 0;
  color: var(--muted);
}

.note-list {
  display: grid;
  gap: 0.75rem;
}

.note-list article {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.note-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.note-list p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.circle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
}

.share-panel {
  background: var(--white);
}

.form-intro {
  background: var(--white);
}

.form-panel {
  display: grid;
  gap: 1rem;
}

.share-form-shell {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  align-items: start;
}

.share-form-shell .form-panel,
.share-form-shell .form-intro {
  padding: 0;
  border: 0;
  background: transparent;
}

.share-form-intro {
  color: var(--muted);
}

.share-form-intro h1 {
  color: var(--ink);
}

.share-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.share-category-nav a {
  color: var(--muted);
}

.share-category-nav a.is-active {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.compact-form {
  margin-top: 1rem;
}

.field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.field label,
.compact-form label {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.compact-form textarea {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.field a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.field textarea {
  min-height: 7rem;
}

.field input[type="file"] {
  min-height: auto;
  max-width: 100%;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
}

.field input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.field ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.errorlist,
.form-errors {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(165, 66, 50, 0.65);
  background: rgba(165, 66, 50, 0.08);
  color: var(--barn);
  list-style-position: inside;
}

.callout,
.status-label {
  display: grid;
  gap: 0.2rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.callout span,
.status-label {
  color: var(--muted);
}

.inline-actions {
  display: inline-flex;
  margin: 0.4rem 0.35rem 0 0;
}

@media (max-width: 820px) {
  .site-header,
  .section-heading {
    align-items: flex-start;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .brand,
  .masthead-title,
  .top-nav {
    grid-column: auto;
  }

  .section-heading {
    flex-direction: column;
  }

  .top-nav {
    justify-self: start;
    flex-wrap: wrap;
  }

  .nav-menu-panel {
    right: auto;
    left: 0;
  }

  .profile-shell,
  .card-page,
  .form-shell,
  .system-node-band,
  .browse-masthead,
  .browse-layout,
  .circle-layout,
  .profile-edit-grid,
  .listing-row {
    grid-template-columns: 1fr;
  }

  .browse-masthead .action-row {
    margin-top: 0;
  }

  .front-item {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .home-hero {
    min-height: 30rem;
  }

  .home-hero::after {
    background: none;
  }

  .home-hero-art {
    object-position: 30% center;
  }

  .quick-ledger {
    grid-template-columns: 1fr;
  }

  .listing-grid,
  .circle-grid {
    grid-template-columns: 1fr;
  }

  .directory-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .directory-table,
  .directory-table thead,
  .directory-table tbody,
  .directory-table tr,
  .directory-table th,
  .directory-table td {
    display: block;
  }

  .directory-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .directory-table tr {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--line-soft);
    background: var(--white);
  }

  .directory-table td {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0;
    border-bottom: 0;
  }

  .directory-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .stand-banner {
    grid-template-columns: 1fr;
  }

  .stand-banner-copy,
  .stand-tools {
    grid-column: 1;
  }

  .stand-tools {
    justify-self: start;
    justify-content: flex-start;
  }

  .stand-tools .inline-edit-form {
    position: static;
  }

  h1 {
    max-width: 11ch;
    font-size: 2.45rem;
  }

  .stand-banner h1 {
    max-width: none;
  }

  h2 {
    font-size: 1.55rem;
  }
}

@media (max-width: 640px) {
  .stand-grid {
    grid-template-columns: 1fr;
  }
}
