/* Frontier Table member pages. Tokens follow the design canvas. */
:root {
  color-scheme: light;
  --forest: #183f35;
  --deep: #0e2620;
  --moss: #2c5a4b;
  --linen: #f4efe4;
  --paper: #fbf8f1;
  --white: #ffffff;
  --brass: #ecc778;
  --brass-soft: #f6e6bd;
  --brass-text: #8a5e14;
  --ember: #c96a47;
  --ember-text: #9a4526;
  --ink: #17211d;
  --muted: #4a5650;
  --line: #ddd4c1;
  --line-strong: #a9a08c;
  --mint: #e3ebe2;
  --on-dark: #f4efe4;
  --on-dark-muted: #c9d3cc;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 24px;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--linen); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
.icon { flex-shrink: 0; vertical-align: -3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.fine { font-size: 13px; line-height: 1.5; color: var(--muted); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 20; background: var(--forest); color: var(--paper); padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 12px; color: var(--paper); }

/* ---------- type ---------- */
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.eyebrow--brass { color: var(--brass); }
.eyebrow--dim { color: var(--on-dark-muted); }
.display { font: 400 64px/1.0 var(--serif); letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.display--md { font-size: 52px; }
.display--xl { font-size: 88px; }
.h2 { font: 400 36px/1.1 var(--serif); letter-spacing: -0.01em; margin: 0; }
.h3 { font: 400 28px/1.15 var(--serif); letter-spacing: -0.01em; margin: 0 0 8px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0 0 16px; max-width: 62ch; }
.lead strong { color: var(--ink); }

/* ---------- buttons, tags, notices ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, box-shadow .15s ease; }
.btn--primary { background: var(--forest); color: var(--paper); }
.btn--primary:hover { background: var(--deep); color: var(--paper); }
.btn--secondary { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--secondary:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--ink); background: rgba(24, 63, 53, 0.06); }
.btn--brass { background: var(--brass); color: var(--deep); }
.btn--brass:hover { background: #f1d493; color: var(--deep); }
.btn--danger { background: var(--paper); color: var(--ember-text); box-shadow: inset 0 0 0 1.5px var(--ember); }
.btn--danger:hover { background: #fbe9e1; color: var(--ember-text); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.linklike { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 10px; border-radius: 999px; background: var(--mint); color: var(--forest); font: 500 11px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; margin: 0; }
.tag--brass { background: var(--brass); color: var(--deep); }
.tag--line { background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); text-transform: none; letter-spacing: 0; font: 500 13px/1.3 var(--sans); padding: 4px 12px; white-space: normal; }
.tag--forest { background: var(--forest); color: var(--paper); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }

.notice { margin: 0 0 20px; padding: 14px 18px; border-radius: 16px; background: var(--mint); color: var(--forest); font-size: 15px; box-shadow: inset 0 0 0 1px #cddbcf; }
.notice--ok { background: var(--mint); }
.notice--error { background: #fbe9e1; color: var(--ember-text); box-shadow: inset 0 0 0 1px #efc3b1; }

/* ---------- forms ---------- */
.label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.label--small { font-size: 13px; font-weight: 600; color: var(--muted); margin: 10px 0 6px; }
.input { display: block; width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font: 500 17px/1.3 var(--sans); color: var(--ink); outline: none; transition: box-shadow .15s ease; }
.input::placeholder { color: #8b918c; }
.input:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.input:focus, .input:focus-visible { box-shadow: inset 0 0 0 2px var(--forest), 0 0 0 4px var(--mint); outline: none; }
.input--area { padding: 14px 18px; min-height: 104px; resize: vertical; line-height: 1.5; }
.input--phone { font-size: 18px; letter-spacing: 0.02em; }
.input--code { max-width: 360px; height: 76px; font: 400 44px/1 var(--serif); letter-spacing: 0.35em; text-align: center; padding: 0 0 0 0.35em; }
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.hint .icon { margin-top: 2px; color: var(--moss); }
.counter { text-align: right; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; color: var(--muted); margin: 8px 0 0; }
.stack { display: grid; gap: 10px; }
.input-icon { position: relative; display: block; }
.input-icon .icon { position: absolute; left: 16px; top: 20px; color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 44px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---------- member header & footer ---------- */
.m-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; min-height: 76px; padding: 0 var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.m-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 400 24px/1 var(--serif); letter-spacing: -0.01em; margin-right: 20px; white-space: nowrap; }
.m-brand:hover { color: var(--ink); }
.m-brand--small { font-size: 20px; margin: 0; }
.m-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.m-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.m-nav a:hover { color: var(--ink); background: rgba(24, 63, 53, 0.06); }
.m-nav a[aria-current="page"] { background: var(--mint); color: var(--forest); font-weight: 600; }
.m-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 16px 4px 4px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; max-width: 240px; }
.m-chip:hover, .m-chip[aria-current="page"] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--forest); }
.m-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-main { max-width: 1440px; margin: 0 auto; padding: 40px var(--gutter) 96px; }
.m-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px var(--gutter); background: var(--paper); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.m-footer__promise { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); }
.m-footer__links { display: flex; align-items: center; gap: 24px; }
.m-footer__links a { color: var(--muted); text-decoration: none; }
.m-footer__links a:hover, .m-footer .linklike:hover { color: var(--ink); text-decoration: underline; }
.m-footer .linklike { color: var(--muted); text-decoration: none; }

/* ---------- avatars ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; font-family: var(--serif); line-height: 1; }
.avatar--xs { width: 28px; height: 28px; font-size: 13px; }
.avatar--sm { width: 36px; height: 36px; font-size: 16px; }
.avatar--md { width: 56px; height: 56px; font-size: 24px; }
.avatar--lg { width: 88px; height: 88px; font-size: 36px; }
.avatar--forest { background: var(--forest); color: var(--brass); box-shadow: inset 0 0 0 3px var(--forest), inset 0 0 0 4.5px #cddbcf; }
.avatar--brass { background: var(--brass); color: var(--deep); }
.avatar--ai { background: var(--brass); color: var(--deep); }
.avatar--ember { background: var(--ember); color: var(--paper); }
.avatar--sage { background: var(--mint); color: var(--moss); box-shadow: inset 0 0 0 1.5px #cddbcf; }
.avatar--seat { background: var(--mint); color: var(--moss); box-shadow: inset 0 0 0 1.5px #cddbcf; }

/* ---------- layout helpers ---------- */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 28px; }
.card--dark { background: var(--forest); color: var(--on-dark); box-shadow: inset 0 0 0 1px #2e5a4d; }
.card--dark p { color: var(--on-dark-muted); }
.card--dark a:not(.btn) { color: var(--brass); }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.two-col__main { display: grid; gap: 48px; min-width: 0; }
.two-col__side { display: grid; gap: 24px; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.page-head { margin: 8px 0 32px; max-width: 900px; }
.page-head--narrow { max-width: 640px; margin: 48px auto; }
.page-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.page-head__actions { display: flex; gap: 8px; flex-shrink: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.crumbs a { color: var(--muted); }
.band { border-radius: 32px; padding: 56px; margin-bottom: 32px; }
.band--dark { background: var(--deep); color: var(--on-dark); }
.band--dark .lead { color: var(--on-dark-muted); }
.empty { text-align: left; }
.empty p { color: var(--muted); }

/* ---------- sign-in pages ---------- */
.a { background: var(--linen); }
.a-grid { display: grid; grid-template-columns: minmax(360px, 620px) minmax(0, 1fr); min-height: 100vh; }
.a-art { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--deep); color: var(--on-dark); }
.a-art__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 66%; }
.a-art__brand { position: absolute; left: 40px; top: 36px; display: flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; font: 400 26px/1 var(--serif); }
.a-art__brand:hover { color: var(--white); }
.a-art__card { position: absolute; left: 40px; right: 40px; bottom: 40px; padding: 28px 30px; border-radius: 24px; background: rgba(14, 38, 32, 0.9); box-shadow: inset 0 0 0 1px #2e5a4d; }
.a-art__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.a-art__card li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.tick { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--brass); color: var(--deep); display: inline-flex; align-items: center; justify-content: center; }
.a-main { display: flex; flex-direction: column; padding: 44px clamp(24px, 8vw, 120px) 32px; min-width: 0; }
.a-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.a-mark { display: none; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.steps { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.steps__bars { display: flex; gap: 6px; }
.steps__bars i { width: 48px; height: 4px; border-radius: 2px; background: var(--line); }
.steps__bars i.on { background: var(--forest); }
.steps__label { white-space: nowrap; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.a-body { width: 100%; max-width: 520px; margin: 88px 0 48px; }
.a-title { font: 400 64px/1.0 var(--serif); letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance; }
.a-lead { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0 0 24px; }
.a-lead strong { color: var(--ink); }
.a-form { display: grid; gap: 0; margin: 0 0 24px; }
.a-form .btn { margin-top: 20px; }
.a-notes { display: grid; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.a-notes p { margin: 0; }
.a-notes a { font-weight: 600; }
.with-icon { display: flex; gap: 8px; align-items: flex-start; }
.with-icon .icon { margin-top: 2px; }
.a-footer { display: flex; align-items: center; gap: 8px; margin: auto 0 0; font-size: 13px; color: var(--muted); }
.pretend { margin: 0 0 24px; padding: 18px 20px; border-radius: 18px; background: var(--brass-soft); box-shadow: inset 0 0 0 1.5px var(--brass); }
.pretend p { margin: 0; }
.pretend .eyebrow { margin-bottom: 6px; }
.pretend__code { font: 400 32px/1 var(--serif); letter-spacing: 0.2em; }
.choices { display: grid; gap: 12px; margin: 8px 0 0; }
.choices form { margin: 0; }
.choice { display: flex; gap: 18px; align-items: flex-start; width: 100%; padding: 24px; border: 0; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: box-shadow .15s ease; }
.choice:hover, .choice--default { box-shadow: inset 0 0 0 2px var(--forest), 0 0 0 4px var(--mint); }
.choice--default:hover { box-shadow: inset 0 0 0 2.5px var(--forest), 0 0 0 4px var(--mint); }
.choice__icon { width: 72px; height: 72px; flex-shrink: 0; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; }
.choice__icon--mint { background: var(--mint); color: var(--moss); }
.choice__icon--brass { background: var(--brass); color: var(--forest); }
.choice__text { display: grid; gap: 8px; }
.choice__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.choice__title { font: 400 30px/1.05 var(--serif); }
.choice__desc { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- member home ---------- */
.home-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 16px 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.home-hero .lead { margin: 0; }
.stats { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.stats--wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 24px; }
.stat > a, .stat { display: flex; flex-direction: column; gap: 4px; min-width: 128px; padding: 16px 20px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; }
.stat > a { padding: 0; box-shadow: none; background: none; min-width: 0; }
.stat > a:hover strong { color: var(--forest); }
.stat strong { font: 400 40px/1 var(--serif); }
.stat span { font-size: 14px; color: var(--muted); }
.question { padding: 40px; border-radius: 28px; }
.question__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.question__text { font: 400 44px/1.08 var(--serif) !important; letter-spacing: -0.01em; color: var(--on-dark) !important; margin: 12px 0 16px; max-width: 26ch; text-wrap: balance; }
.question__foot { margin: 0 0 24px; }
.people { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.person { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; }
.person:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--forest); }
.person > span:last-child { display: grid; min-width: 0; }
.person strong { font: 400 22px/1.2 var(--serif); }
.person span span { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat__head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.seat__head .h3 { margin: 0; }
.seat__head .eyebrow { margin: 4px 0 0; }
.seat p { color: var(--muted); }
.seat .fine { text-align: center; margin-top: 10px; }
.dispatch { background: var(--mint); box-shadow: inset 0 0 0 1px #cddbcf; }

/* ---------- project cards ---------- */
.project-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.project-card__art { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--forest); }
.project-card__art img { width: 100%; height: 100%; object-fit: cover; }
.project-card__flag { position: absolute; left: 14px; top: 14px; }
.project-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.project-card__body .tags { margin: 0 0 12px; }
.project-card__title { font: 400 30px/1.1 var(--serif); margin: 0 0 8px; }
.project-card__title a { color: var(--ink); text-decoration: none; }
.project-card__title a:hover { text-decoration: underline; }
.project-card__text { font-size: 15px; color: var(--muted); margin: 0 0 16px; }
.credit { display: flex; align-items: center; gap: 10px; margin: auto 0 0; font-size: 14px; color: var(--muted); }
.cta-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; min-height: 280px; }
.cta-card .btn { margin-top: 12px; }

/* ---------- profile editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; align-items: start; }
.editor__main { display: grid; gap: 24px; min-width: 0; }
.editor__form { display: grid; gap: 16px; }
.whole { display: flex; align-items: center; gap: 20px; padding: 28px 32px; border-radius: 28px; }
.whole__icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; background: rgba(236, 199, 120, 0.16); color: var(--brass); display: inline-flex; align-items: center; justify-content: center; }
.whole__text { flex: 1; min-width: 0; }
.whole__text .h3 { color: var(--on-dark); }
.whole__text p { margin: 0; font-size: 15px; }
.field__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.field__label { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 700 16px/1.3 var(--sans); margin: 0; }
.field__head .hint { margin-top: 6px; }
.field--locked { display: flex; align-items: center; gap: 16px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); box-shadow: inset 0 0 0 1.5px var(--line); border: 1.5px dashed transparent; }
.field--locked > div { flex: 1; }
.field--locked .hint { margin: 4px 0 0; }
.field__lock { width: 44px; height: 44px; border-radius: 50%; background: var(--mint); color: var(--moss); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.switch { display: inline-flex; flex-shrink: 0; padding: 4px; border-radius: 999px; background: #efe8da; box-shadow: inset 0 0 0 1px var(--line); }
.switch label { position: relative; display: block; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.switch input:checked + span { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 33, 29, 0.12), 0 0 0 1px var(--line); }
.switch input:focus-visible + span { outline: 3px solid var(--forest); outline-offset: 2px; }
.switch--dark { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px #3c6a5c; }
.switch--dark span { color: var(--on-dark-muted); }
.switch--dark input:checked + span { background: var(--paper); color: var(--ink); }
.switch--dark input:focus-visible + span { outline-color: var(--brass); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { position: relative; display: block; border-radius: 50%; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch .avatar { box-shadow: none; transition: box-shadow .15s ease; }
.swatch input:checked + .avatar { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--forest); }
.swatch input:focus-visible + .avatar { outline: 3px solid var(--forest); outline-offset: 6px; }
.project-slot { padding: 14px 16px 16px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.project-slot legend { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-text); padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.check input:checked + span { background: var(--mint); color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }
.check input:checked + span::before { content: '✓'; margin-right: 8px; }
.check input:focus-visible + span { outline: 3px solid var(--forest); outline-offset: 2px; }
.editor__actions { display: flex; justify-content: flex-end; gap: 8px; }
.account p { color: var(--muted); }
.account__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account__actions form { margin: 0; }
.editor__side { position: sticky; top: 100px; }
.preview-wrap { display: grid; gap: 14px; }
.preview-wrap > .eyebrow { margin: 0; }
.preview { padding: 0; overflow: hidden; }
.preview__band, .profile-page__band { height: 96px; background: var(--forest) radial-gradient(circle at 80% 20%, rgba(236, 199, 120, 0.25), transparent 55%); }
.preview__body, .profile-page__body { padding: 0 28px 28px; }
.preview__top, .profile-page__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -44px; margin-bottom: 16px; }
.preview__top .avatar, .profile-page__top .avatar { box-shadow: 0 0 0 5px var(--paper); }
.preview__name { font: 400 36px/1.05 var(--serif); margin: 0 0 8px; overflow-wrap: anywhere; }
.preview__anon, .preview__bio { color: var(--muted); margin: 0 0 12px; white-space: pre-line; overflow-wrap: anywhere; }
.preview__links { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--forest); overflow-wrap: anywhere; }
.preview__group { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.preview__group .eyebrow { margin-bottom: 8px; }
.preview__group .tags { margin: 0; }
.preview__group p:not(.eyebrow) { margin: 0; }
.preview__projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.preview__projects li, .project-list li { display: grid; gap: 2px; }
.preview__projects strong, .project-list strong { font: 400 20px/1.2 var(--serif); }
.preview__projects span, .project-list span { font-size: 14px; color: var(--muted); }
.preview-status { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--mint); color: var(--forest); font-size: 14px; font-weight: 600; }
.hidden-list { padding: 18px 20px; background: transparent; }
.hidden-list .tags { margin: 0; }
.editor__side .fine { margin: 0; }

/* ---------- directory ---------- */
.dir-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); gap: 48px; align-items: center; }
.dir-hero .display { color: var(--on-dark); }
.seatmap { padding: 24px 28px; border-radius: 24px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px #2e5a4d; }
.seatmap__title { font: 400 32px/1 var(--serif); margin: 0 0 18px; }
.seatmap__title strong { font-weight: 400; }
.seatmap__dots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.seatmap i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #6f8d80; }
.seatmap i.on { background: var(--brass); box-shadow: none; }
.seatmap__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-size: 14px; color: var(--on-dark-muted); }
.seatmap__legend span { display: inline-flex; align-items: center; gap: 8px; }
.dir-tools { display: grid; gap: 16px; margin-bottom: 24px; }
.search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 720px; }
.search > .icon { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.input--search { padding-left: 50px; border-radius: 999px; }
.search .btn { position: absolute; right: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.filter:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--forest); }
.filter[aria-current="true"] { background: var(--forest); color: var(--paper); box-shadow: none; }
.results { margin: 0 0 16px; }
.member-card { display: flex; flex-direction: column; }
.member-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.member-card__top .tag { white-space: normal; text-align: right; }
.member-card__name { font: 400 28px/1.1 var(--serif); margin: 0 0 8px; overflow-wrap: anywhere; }
.member-card__name a { color: var(--ink); text-decoration: none; }
.member-card__name a:hover { text-decoration: underline; }
.member-card__bio { font-size: 15px; color: var(--muted); margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.member-card__more { margin: auto 0 0; padding-top: 18px; font-weight: 600; font-size: 15px; }
.member-card__more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.anon-card { display: flex; flex-direction: column; align-items: flex-start; }
.anon-card .h3 { color: var(--on-dark); font-size: 24px; }
.anon-card__icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(236, 199, 120, 0.16); color: var(--brass); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.anon-card .btn { margin-top: auto; }

/* ---------- member profile page ---------- */
.profile-page { padding: 0; overflow: hidden; max-width: 760px; margin-bottom: 16px; }
.profile-page .display { overflow-wrap: anywhere; }
.profile-page__bio { color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.profile-page__group { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.links a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 600; overflow-wrap: anywhere; }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

/* ---------- project page ---------- */
.project-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 40px; }
.project-hero__sub { font: italic 400 28px/1.2 var(--serif); color: var(--moss); margin: -4px 0 20px; }
.project-hero__text > p:not(.eyebrow):not(.lead):not(.actions):not(.project-hero__sub) { color: var(--muted); max-width: 60ch; }
.project-hero__art { border-radius: 28px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 3 / 2; background: var(--forest); }
.project-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; }
.facts div { padding: 16px 18px; border-radius: 18px; background: var(--linen); }
.facts dt { font: 500 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 6px; }
.facts dd { margin: 0; font: 400 22px/1.2 var(--serif); }
.two-col--narrow-side { grid-template-columns: minmax(0, 1fr) 380px; }
.about .credit { margin: 0 0 12px; color: var(--ink); }
.about .eyebrow { margin-top: 20px; }

/* ---------- admin ---------- */
.rows { list-style: none; margin: 8px 0 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rows form { margin: 0; }
code { font: 500 13px/1.4 var(--mono); background: var(--linen); padding: 2px 6px; border-radius: 6px; }

/* ---------- posts & author ---------- */
.author-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.author-line .author-name { font-weight: 600; }
.post-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.post-card__title { font: 400 32px/1.15 var(--serif); letter-spacing: -0.01em; margin: 0; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--forest); text-decoration: underline; }
.post-card__byline { margin: 4px 0; }
.post-card__excerpt { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.post-card__meta { margin-top: 8px; }
.posts-list { display: grid; gap: 24px; max-width: 900px; }
.posts-feed .post-card__title { font-size: 26px; }
.posts-feed .post-card__excerpt { font-size: 15px; }

.post-page { max-width: 820px; }
.post-page__head { margin-bottom: 32px; }
.post-page__byline { margin: 12px 0 16px; }
.notice--portia { background: var(--mint); color: var(--forest); }
.post-page__foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }

/* ---------- post body & prose ---------- */
.post-body { max-width: 68ch; font-size: 17px; line-height: 1.65; color: var(--ink); }
.post-body p { margin: 0 0 20px; }
.post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 32px 0 16px; color: var(--ink); }
.post-body h2 { font-size: 32px; line-height: 1.15; }
.post-body h3 { font-size: 26px; line-height: 1.2; }
.post-body h4 { font-size: 22px; line-height: 1.25; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 28px; }
.post-body li { margin-bottom: 8px; }
.post-body blockquote { margin: 24px 0; padding: 12px 0 12px 24px; border-left: 4px solid var(--brass); color: var(--muted); }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body code { font-family: var(--mono); font-size: 14px; background: var(--mint); color: var(--forest); padding: 2px 6px; border-radius: 6px; }
.post-body pre { background: var(--mint); border-radius: 16px; padding: 18px 22px; overflow-x: auto; margin: 24px 0; }
.post-body pre code { background: none; padding: 0; border-radius: 0; color: var(--forest); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.post-body a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--deep); }

/* ---------- post editor ---------- */
.post-editor__area { min-height: 360px; font-family: var(--mono); font-size: 15px; line-height: 1.5; }
.choice-row { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.choice-row input[type="radio"], .choice-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--forest); }
.preview-post { padding: 24px 0 0; }
.two-col--editor { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); }

/* ---------- community ---------- */
.community-start { margin: 8px 0 0; }
.community-filters { margin: 0 0 24px; }
.community-note { max-width: 62ch; margin: 24px 0 0; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 900px; }
.topic-card { display: grid; gap: 8px; padding: 24px 28px; }
.topic-card__tags { margin: 0; }
.topic-card__title { font: 400 30px/1.15 var(--serif); letter-spacing: -0.01em; margin: 0; overflow-wrap: anywhere; }
.topic-card__title a { color: var(--ink); text-decoration: none; }
.topic-card__title a:hover { color: var(--forest); text-decoration: underline; }
.topic-card__excerpt { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.topic-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.post-page__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.topic .display { overflow-wrap: anywhere; }
.topic__link { display: flex; align-items: baseline; gap: 8px; color: var(--moss); overflow-wrap: anywhere; }
.topic__link p { margin: 0; }
.thread { max-width: 820px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.replies { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.reply { padding: 18px 22px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.reply__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.reply__head .fine { margin: 0; }
.reply__body { font-size: 16px; overflow-wrap: anywhere; }
.reply__body p { margin: 0 0 12px; }
.reply__body > :last-child { margin-bottom: 0; }
.confirm { margin-top: 8px; font-size: 14px; }
.confirm summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--ember-text); cursor: pointer; font-weight: 600; }
.confirm form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border-radius: 14px; background: #fbe9e1; }
.confirm form p { margin: 0; color: var(--ember-text); }
.composer .h3 { margin: 0; }
.composer .actions { margin-top: 8px; }
.composer--topic { max-width: 820px; }
.composer--topic fieldset.card { padding: 28px; }
.composer--topic legend { float: left; width: 100%; padding: 0; }
.identity .choices { margin: 0; }
.identity legend { padding: 0; }
.community-rows li { justify-content: flex-start; }
.community-rows .fine { margin: 4px 0 0; }
.community-rows a { margin-left: 6px; }
.question__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .editor { grid-template-columns: minmax(0, 1fr) 380px; }
  .display--xl { font-size: 72px; }
}
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .m-header { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; row-gap: 4px; }
  .m-nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; }
  .m-nav::-webkit-scrollbar { display: none; }
  .m-chip { margin-left: auto; }
  .two-col, .two-col--narrow-side, .editor { grid-template-columns: minmax(0, 1fr); }
  .editor__side { position: static; order: -1; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero { flex-direction: column; align-items: flex-start; }
  .dir-hero, .project-hero { grid-template-columns: minmax(0, 1fr); }
  .a-grid { grid-template-columns: minmax(0, 1fr); }
  .a-art { position: static; height: auto; order: 2; background: var(--linen); color: var(--ink); padding: 0 24px 32px; }
  .a-art__img, .a-art__brand { display: none; }
  .a-art__card { position: static; max-width: 520px; margin: 0 auto; }
  .a-art__card, .a-art__card li { color: var(--on-dark); }
  .a-main { padding-bottom: 16px; }
  .a-mark { display: inline-flex; }
  .a-body { margin: 48px auto 32px; }
  .a-top { max-width: 520px; width: 100%; margin: 0 auto; }
  .a-footer { justify-content: center; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .m-brand span { display: none; }
  .m-brand { margin-right: 0; }
  .m-main { padding-top: 24px; padding-bottom: 64px; }
  .display, .a-title { font-size: 44px; }
  .display--md { font-size: 40px; }
  .display--xl { font-size: 56px; }
  .h2 { font-size: 30px; }
  .lead, .a-lead { font-size: 16px; }
  .card { padding: 22px; }
  .card.preview, .card.profile-page, .card.project-card { padding: 0; }
  .preview__body, .profile-page__body { padding: 0 22px 22px; }
  .dir-hero { gap: 28px; }
  .band { padding: 32px 22px; border-radius: 24px; }
  .question { padding: 26px 22px; }
  .question__text { font-size: 32px !important; }
  .grid--2, .grid--3, .grid--4, .people { grid-template-columns: minmax(0, 1fr); }
  .stats { flex-wrap: wrap; width: 100%; }
  .stats .stat { flex: 1 1 140px; min-width: 0; }
  .page-head--split { flex-direction: column; align-items: stretch; }
  .page-head__actions { display: none; }
  .whole { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .field__head { flex-direction: column; }
  .field--locked { flex-wrap: wrap; }
  .editor__actions { position: sticky; bottom: 0; margin: 0 -16px; padding: 12px 16px; background: rgba(244, 239, 228, 0.96); border-top: 1px solid var(--line); justify-content: stretch; }
  .editor__actions .btn { flex: 1; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .m-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .a-main { padding: 20px 16px 16px; }
  .a-art { padding: 0 16px 24px; }
  .a-art__card { padding: 22px; }
  .a-top { flex-wrap: wrap; row-gap: 8px; }
  .back-link { white-space: nowrap; }
  .steps { order: 3; flex-basis: 100%; margin-left: 0; }
  .steps__bars i { width: 28px; }
  .a-body { margin-top: 32px; }
  .input--code { max-width: none; font-size: 36px; }
  .choice { padding: 18px; gap: 14px; }
  .choice__icon { width: 52px; height: 52px; border-radius: 14px; }
  .choice__title { font-size: 26px; }
  .search .btn { position: static; }
  .search { flex-wrap: nowrap; }
  .community-start .btn, .composer .actions .btn { flex: 1; }
  .community-start { display: flex; }
  .topic-card { padding: 20px; }
  .topic-card__title { font-size: 26px; }
  .reply { padding: 16px; }
  .composer--topic fieldset.card { padding: 22px; }
  .community-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; }
  .community-filters .filter { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Share block (lib/views/share.js), on a public post's member page ---------- */
.share { padding: 24px 0 0; border-top: 1px solid var(--line); }
.share__title { font: 400 28px/1.15 var(--serif); letter-spacing: -0.01em; margin: 0 0 8px; }
.share__lead { font-size: 15px; color: var(--muted); margin: 0 0 16px; }
.share__links { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.share__link:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--forest); }
.share__label { display: block; font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); margin: 0 0 8px; }
.share__row { display: flex; flex-wrap: wrap; gap: 8px; }
.share__url { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font: 400 14px/1.3 var(--mono); color: var(--ink); }
.share__button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--forest); color: var(--paper); font: 600 14px/1.2 var(--sans); cursor: pointer; }
.share__button:hover { background: var(--deep); }
.share__status { min-height: 1.5em; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.public-link { margin: 0 0 16px; font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .share__url { font-size: 16px; }
}

/* Optional private profile photo; pattern avatars remain the fallback. */
.avatar--photo { overflow: hidden; }
.avatar--photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-preview { display: block; max-width: 128px; border-radius: 50%; object-fit: cover; margin-block: 12px; }
.name-tag { display: inline-block; vertical-align: middle; margin-inline-start: .4em; padding: .12em .4em; border: 1px solid currentColor; border-radius: 4px; font: 600 11px/1.2 "Hanken Grotesk", sans-serif; letter-spacing: .04em; }
