/* Bylawly — design tokens
   Ink #18232f text · Mist #f2f4f6 canvas · Paper #fff surfaces · Rule #dde3e9 lines
   Brand (per association, default Harbor #14595b) · Brass #a8741c for "needs your action"
   One family: Public Sans (civic, very legible for owners of every age); tabular figures for money. */
:root {
  --ink: #18232f; --ink-2: #3c4a58; --ink-3: #66727f; --mist: #f2f4f6; --paper: #fff; --rule: #dde3e9; --rule-2: #c9d1d9;
  --brand: #14595b; --brass: #a8741c; --brass-bg: #fbf3e2;
  --green: #1d6f47; --green-bg: #e5f3eb; --blue: #23539b; --blue-bg: #e7eef9; --amber: #8f5c00; --amber-bg: #fdf1d8; --red: #a7281f; --red-bg: #fbe9e7; --muted-bg: #edf0f3;
  --r: 8px; --r-sm: 5px; --side: 252px;
  --shadow: 0 1px 2px rgba(24,35,47,.06), 0 4px 16px rgba(24,35,47,.06);
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, white);
  --brand-ink: color-mix(in srgb, var(--brand) 80%, black);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--mist); font-feature-settings: 'tnum' 0; }
a { color: var(--brand-ink); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.65rem; font-weight: 800; }
h2 { font-size: 1.12rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .9em; }
small, .muted { color: var(--ink-3); }
code, kbd { font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--muted-bg); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 1.4rem 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
.ic { flex: none; vertical-align: -3px; }
.num, .money, td.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.money.neg { color: var(--red); }
.inline { display: inline; }
.hide { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- app shell ---------- */
body.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--paper); border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.side-brand { display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 18px 20px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.side-brand img { max-width: 100%; max-height: 64px; object-fit: contain; }
.side-brand-name { font-weight: 800; font-size: 1.15rem; color: var(--brand-ink); text-align: center; letter-spacing: -.01em; }
.side-nav { padding: 10px 10px 18px; flex: 1; }
.side-section { margin: 18px 12px 6px; font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.side-link { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-weight: 500; }
.side-link:hover { background: var(--mist); color: var(--ink); }
.side-link.is-active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--brand); }
.side-link .count { margin-left: auto; }
.side-foot { padding: 12px 20px 16px; font-size: .78rem; color: var(--ink-3); border-top: 1px solid var(--rule); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; font-style: normal; }
.shell { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top-search { flex: 1; max-width: 460px; margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px; border: 1px solid var(--rule); border-radius: 19px; background: var(--mist); color: var(--ink-3); }
.top-search input { border: 0; background: transparent; flex: 1; font: inherit; color: var(--ink); outline: none; min-width: 0; }
.top-search:focus-within { border-color: var(--brand); background: #fff; box-shadow: var(--focus); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--mist); }
.bell .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 2px #fff; }
.only-mobile { display: none; }
.main { padding: 26px 32px 64px; max-width: 1180px; width: 100%; }
.main-wide { max-width: none; }
.crumbs { display: flex; gap: 8px; font-size: .86rem; color: var(--ink-3); margin-bottom: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-3); }

/* association switcher — the "crest" */
details[data-dropdown] { position: relative; }
details[data-dropdown] > summary { list-style: none; cursor: pointer; }
details[data-dropdown] > summary::-webkit-details-marker { display: none; }
.switcher > summary { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border-radius: 10px; min-width: 0; }
.switcher > summary:hover { background: var(--mist); }
.switcher-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.switcher-text strong { font-size: 1.02rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
.switcher-text small { font-size: .78rem; }
.crest-img { width: 34px; height: 34px; object-fit: contain; border-radius: 7px; background: #fff; border: 1px solid var(--rule); }
.crest-mono { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 7px; background: var(--c, var(--brand)); color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .02em; }
.menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 300px; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; }
.menu-right { left: auto; right: 0; min-width: 240px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--mist); color: var(--ink); }
.menu-item span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.menu-item small { font-size: .78rem; }
.menu-item.is-current { background: var(--brand-soft); }
.menu-item .crest-img, .menu-item .crest-mono { width: 28px; height: 28px; font-size: .7rem; }
.menu-foot { border-top: 1px solid var(--rule); border-radius: 0; margin-top: 4px; padding-top: 10px; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-filter { width: 100%; margin-bottom: 6px; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .8rem; flex: none; }
.me > summary { padding: 2px; border-radius: 50%; }

/* ---------- page parts ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { margin: 4px 0 0; color: var(--ink-3); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px 22px; margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card.flush { padding: 0; }
.card.flush .table-wrap { border: 0; }
.card.flush > .card-head { padding: 16px 20px 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.stack > * + * { margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; color: inherit; text-decoration: none; }
a.stat:hover { border-color: var(--brand); color: inherit; }
.stat-label { font-size: .84rem; color: var(--ink-3); font-weight: 500; }
.stat-value { font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-sub { font-size: .8rem; color: var(--ink-3); }
.tone-red { color: var(--red); } .tone-green { color: var(--green); } .tone-brass { color: var(--brass); } .tone-blue { color: var(--blue); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 10px 14px; color: var(--ink-3); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--brand-ink); border-bottom-color: var(--brand); }
.tab .count { background: var(--ink-3); }
.empty { text-align: center; padding: 48px 20px; background: var(--paper); border: 1px dashed var(--rule-2); border-radius: var(--r); }
.empty h2 { font-size: 1.15rem; }
.empty p { color: var(--ink-3); max-width: 46ch; margin: 0 auto 16px; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--r-sm); background: var(--green-bg); color: var(--green); margin-bottom: 18px; font-weight: 500; }
.flash-err { background: var(--red-bg); color: var(--red); }
.notice { padding: 12px 14px; border-radius: var(--r-sm); background: var(--brass-bg); color: #6b4a10; margin-bottom: 14px; border-left: 3px solid var(--brass); }
.notice-info { background: var(--blue-bg); color: var(--blue); border-left-color: var(--blue); }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 650; white-space: nowrap; line-height: 1.6; }
.pill::first-letter { text-transform: uppercase; }
.pill-muted { background: var(--muted-bg); color: var(--ink-2); }
.pill-blue { background: var(--blue-bg); color: var(--blue); }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-red { background: var(--red-bg); color: var(--red); }
.pill-brand { background: var(--brand-soft); color: var(--brand-ink); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: .8rem; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: #fafbfc; white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr[data-href] { cursor: pointer; }
.table tbody tr:hover td { background: #fafbfc; }
.table td a { font-weight: 600; text-decoration: none; }
.table td a:hover { text-decoration: underline; }
.table tfoot td { font-weight: 700; border-top: 2px solid var(--rule-2); background: #fafbfc; }
.table .sub { display: block; font-size: .82rem; color: var(--ink-3); font-weight: 400; }
.table.compact td, .table.compact th { padding: 7px 10px; }
.table-empty { padding: 14px 2px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.dl dt { color: var(--ink-3); font-size: .9rem; }
.dl dd { margin: 0; font-weight: 500; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--brand); background: var(--brand); color: #fff; font: 600 .92rem/1 inherit; text-decoration: none; cursor: pointer; white-space: nowrap; transition: filter .12s; }
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { color: var(--ink); background: var(--mist); filter: none; }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--brand-ink); padding: 0 8px; }
.btn-quiet:hover { background: var(--brand-soft); color: var(--brand-ink); filter: none; }
.btn-sm { height: 30px; padding: 0 11px; font-size: .84rem; }
.btn-block { width: 100%; }
.btn-brass { background: var(--brass); border-color: var(--brass); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

/* forms */
.form { display: block; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.field > label, .field > legend { font-weight: 600; font-size: .9rem; }
.opt { font-weight: 400; color: var(--ink-3); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=time], input[type=search], input[type=url], input:not([type]), select, textarea {
  width: 100%; height: 40px; padding: 0 11px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--rule-2); border-radius: var(--r-sm); }
select[multiple] { height: auto; min-height: 120px; padding: 6px; }
textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
input.file { height: auto; padding: 8px; border: 1px dashed var(--rule-2); border-radius: var(--r-sm); background: var(--mist); width: 100%; }
.help { font-size: .82rem; color: var(--ink-3); display: block; }
.affix { display: flex; }
.affix > span { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--rule-2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--mist); color: var(--ink-3); }
.affix > input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }
.check { display: flex; align-items: flex-start; gap: 9px; margin: 6px 0; cursor: pointer; font-weight: 500; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.check .help { font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { padding: 0; margin-bottom: 4px; }
.disclose { border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; margin-bottom: 12px; }
.disclose > summary { padding: 11px 14px; cursor: pointer; font-weight: 600; }
.disclose-body { padding: 4px 14px 14px; }

/* threads, attachments, timeline */
.thread { list-style: none; margin: 0; padding: 0; }
.thread li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.thread li:last-child { border-bottom: 0; }
.thread li.is-internal { background: linear-gradient(90deg, var(--brass-bg), transparent 70%); padding-left: 10px; margin-left: -10px; border-left: 3px solid var(--brass); }
.thread-meta { font-size: .86rem; color: var(--ink-3); margin-bottom: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.thread-meta strong { color: var(--ink); }
.attach { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.attach img { width: 108px; height: 108px; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); display: block; }
.attach-file a { display: inline-flex; gap: 6px; align-items: center; padding: 7px 11px; border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; background: #fff; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 16px 14px; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.timeline .t-meta { font-size: .82rem; color: var(--ink-3); }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 650; color: var(--ink); text-decoration: none; display: block; }
.list .meta { font-size: .84rem; color: var(--ink-3); }

/* action center */
.action-item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--rule); border-left: 4px solid var(--brass); border-radius: var(--r-sm); background: #fff; margin-bottom: 8px; color: inherit; text-decoration: none; }
.action-item:hover { border-color: var(--brass); color: inherit; }
.action-item .n { font-size: 1.35rem; font-weight: 800; min-width: 36px; text-align: center; color: var(--brass); font-variant-numeric: tabular-nums; }
.action-item .grow { flex: 1; }
.action-item.is-clear { border-left-color: var(--rule-2); }
.action-item.is-clear .n { color: var(--ink-3); }

/* welcome band on home */
.hello { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--r); background: var(--brand); color: #fff; margin-bottom: 18px; position: relative; overflow: hidden; }
.hello h1 { color: #fff; margin: 0 0 4px; }
.hello p { margin: 0; opacity: .88; }
.hello .crest-img, .hello .crest-mono { width: 62px; height: 62px; border-radius: 12px; font-size: 1.3rem; border: 0; background: #fff; }
.hello .crest-mono { background: rgba(255,255,255,.16); }
.hello::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(255,255,255,.07); }
.unit-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.unit-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: .84rem; font-weight: 600; text-decoration: none; }
.unit-chip:hover { background: rgba(255,255,255,.26); color: #fff; }

.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 18px 0; color: var(--ink-3); }
.kpi-bar { height: 8px; background: var(--muted-bg); border-radius: 4px; overflow: hidden; }
.kpi-bar > span { display: block; height: 100%; background: var(--brand); }
.split { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.right { text-align: right; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.big { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- auth & public ---------- */
body.auth { min-height: 100vh; display: grid; place-items: center; background: var(--mist); background-image: radial-gradient(circle at 15% 0%, var(--brand-soft), transparent 45%); }
.auth-wrap { width: 100%; max-width: 430px; padding: 32px 18px; }
.auth-wide { max-width: 640px; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand img { max-height: 72px; max-width: 260px; }
.auth-name { font-size: 1.6rem; font-weight: 800; color: var(--brand-ink); letter-spacing: -.02em; }
.auth .card { padding: 28px; box-shadow: var(--shadow); }
.auth h1 { font-size: 1.35rem; }
.auth-foot { text-align: center; font-size: .82rem; color: var(--ink-3); margin-top: 20px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .84rem; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--rule); }
body.public { background: #fff; }
.pub-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid var(--rule); }
.pub-brand { font-weight: 800; font-size: 1.25rem; color: var(--brand-ink); text-decoration: none; }
.pub-brand img { max-height: 44px; }
.pub-main { max-width: 1060px; margin: 0 auto; padding: 32px 22px 64px; }
.pub-foot { text-align: center; color: var(--ink-3); font-size: .84rem; padding: 26px; border-top: 1px solid var(--rule); }

/* landing */
.land-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 30px 0 56px; }
.land-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 18px; }
.land-hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 42ch; }
.bylaw { font-size: .95rem; color: var(--ink-2); border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; margin: 0 0 14px; }
.bylaw b { color: var(--ink); }
.land-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.land-features > div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--rule); }
.land-features h3 { margin-bottom: 6px; }
.land-features p { color: var(--ink-2); margin: 0; font-size: .94rem; }
.mock { border: 1px solid var(--rule); border-radius: 12px; background: var(--mist); padding: 14px; box-shadow: var(--shadow); }
.mock-bar { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 8px; padding: 10px 12px; border: 1px solid var(--rule); margin-bottom: 10px; }

/* video meeting & misc helpers modules may use */
.video-frame { width: 100%; aspect-ratio: 16/9; min-height: 420px; border: 0; border-radius: var(--r); background: #0d1620; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--rule); gap: 1px; }
.cal > div { background: #fff; min-height: 96px; padding: 6px 7px; font-size: .82rem; }
.cal .cal-head { min-height: 0; font-weight: 600; color: var(--ink-3); text-align: center; background: #fafbfc; }
.cal .is-other { background: #fafbfc; color: var(--ink-3); }
.cal .is-today .d { background: var(--brand); color: #fff; border-radius: 50%; display: inline-grid; place-items: center; width: 22px; height: 22px; }
.cal .ev { display: block; margin-top: 3px; padding: 2px 5px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.progress { display: flex; align-items: center; gap: 10px; }
.progress .kpi-bar { flex: 1; }
.print-only { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  body.app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
  body.side-open .side { transform: none; }
  body.side-open::after { content: ''; position: fixed; inset: 0; background: rgba(24,35,47,.35); z-index: 45; }
  .only-mobile { display: inline-grid; }
  .top { padding: 0 12px; gap: 6px; }
  .top-search { display: none; }
  .switcher { flex: 1; min-width: 0; }
  .switcher-text strong { max-width: 52vw; }
  .main { padding: 18px 16px 56px; }
  .grid-2, .grid-3, .grid-main { grid-template-columns: 1fr; }
  .land-hero, .land-features { grid-template-columns: 1fr; }
  .menu { position: fixed; left: 12px; right: 12px; top: 64px; min-width: 0; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
}
@media print {
  .side, .top, .page-actions, .btn, .tabs, .flash { display: none !important; }
  body.app { display: block; background: #fff; }
  .main { padding: 0; max-width: none; }
  .card, .table-wrap { border: 0; padding: 0; }
  .print-only { display: block; }
}

/* ---------- marketing site ---------- */
body.mkt { background: #fff; }
.mkt-in { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.mkt-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 14px 28px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.mkt-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.mkt-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 1rem; }
.mkt-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mkt-nav a { padding: 8px 12px; color: var(--ink-2); text-decoration: none; font-weight: 550; border-radius: 6px; }
.mkt-nav a:hover, .mkt-nav a.is-active { color: var(--brand-ink); background: var(--brand-soft); }
.mkt-nav .btn { color: #fff; margin-left: 6px; }
.mkt-nav .btn:hover { background: var(--brand); color: #fff; }
.mkt-nav-t, .mkt-burger { display: none; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 1rem; }
.btn-light { background: #fff; color: var(--brand-ink); border-color: #fff; }
.btn-light:hover { color: var(--brand-ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.small { font-size: .86rem; }
.mkt-hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--brand-soft), #fff 70%); }
.mkt-hero .mkt-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.mkt-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin-bottom: 20px; }
.mkt-hero .lead { font-size: 1.18rem; color: var(--ink-2); max-width: 44ch; margin-bottom: 26px; }
.mkt-shot { background: var(--mist); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; box-shadow: 0 18px 50px rgba(20,89,91,.14); }
.shot-top { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--rule); border-radius: 9px; padding: 10px 12px; }
.shot-top div { display: flex; flex-direction: column; line-height: 1.25; flex: 1; } .shot-top small { color: var(--ink-3); font-size: .78rem; }
.shot-switch { font-size: .8rem; color: var(--ink-3); }
.shot-band { margin: 10px 0; padding: 14px 16px; border-radius: 9px; background: var(--brand); color: #fff; display: flex; flex-direction: column; }
.shot-band span { opacity: .85; font-size: .86rem; }
.shot-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 11px 13px; margin-top: 7px; font-size: .92rem; }
.shot-row b { margin-left: auto; font-variant-numeric: tabular-nums; }
.mkt-strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.mkt-strip-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.mkt-strip-in > div { padding: 26px 24px 26px 0; display: flex; flex-direction: column; gap: 4px; }
.mkt-strip-in > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.mkt-strip-in span { color: var(--ink-2); }
.mkt-sec { padding: 64px 0; }
.mkt-alt { background: var(--mist); }
.mkt-h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; font-weight: 800; }
.mkt-sub { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; margin-bottom: 30px; }
.mkt-page-head { padding-bottom: 20px; }
.mkt-page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.035em; line-height: 1.05; max-width: 20ch; }
.mkt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.mkt-two p { color: var(--ink-2); font-size: 1.05rem; }
.mkt-receipt { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.mkt-receipt .split { padding: 6px 0; }
/* articles of the bylaws */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.art-grid .art { display: block; padding: 22px 0; border-top: 2px solid var(--ink); }
.art-num { font-weight: 700; font-size: .84rem; color: var(--brand); margin-bottom: 4px; font-variant: small-caps; letter-spacing: .04em; }
.art h2 { font-size: 1.3rem; margin-bottom: 4px; }
.art-lede { color: var(--ink-2); }
.art-list { margin: 0 0 10px; padding-left: 18px; color: var(--ink-2); }
.art-list li { margin: 3px 0; }
.mkt-sec .mkt-in > .art { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 36px 0; border-top: 2px solid var(--ink); scroll-margin-top: 80px; }
.mkt-sec .mkt-in > .art .art-num { font-size: 1.05rem; padding-top: 6px; }
.art-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; margin: 18px 0 0; }
.art-sections dt { font-weight: 700; margin-bottom: 3px; }
.art-sections dd { margin: 0; color: var(--ink-2); }
.art-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sect { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 4px; }
.art-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.art-toc a { color: var(--ink-2); text-decoration: none; font-weight: 550; }
.art-toc a:hover { color: var(--brand); }
.plans { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 20px; }
.plan { border: 1px solid var(--rule); border-radius: 12px; padding: 26px; background: #fff; display: flex; flex-direction: column; }
.plan p { color: var(--ink-2); }
.plan .btn { margin-top: auto; }
.plan-feature { border: 2px solid var(--brand); }
.plan-incl { background: var(--mist); border-color: var(--mist); }
.price { margin: 14px 0 6px; } .price b { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; display: block; line-height: 1.1; } .price span { color: var(--ink-3); }
.checks { list-style: none; padding: 0; margin: 0; } .checks li { padding: 5px 0; display: flex; gap: 8px; align-items: center; } .checks .ic { color: var(--green); }
.faq details { border-bottom: 1px solid var(--rule-2); padding: 16px 0; } .faq summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; } .faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }
.mkt-cta { background: var(--brand); color: #fff; text-align: center; padding: 64px 0; }
.mkt-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.03em; }
.mkt-cta p { opacity: .9; font-size: 1.08rem; }
.mkt-foot { border-top: 1px solid var(--rule); padding: 40px 0 24px; }
.mkt-foot-in { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.mkt-foot-in > div { display: flex; flex-direction: column; gap: 6px; }
.mkt-foot-in a { color: var(--ink-2); text-decoration: none; } .mkt-foot-in a:hover { color: var(--brand); }
.mkt-copy { text-align: center; color: var(--ink-3); font-size: .82rem; margin-top: 28px; }
/* association public site */
.cs-hero { position: relative; padding: 80px 0 64px; background: var(--brand); color: #fff; overflow: hidden; }
.cs-hero.has-photo { background-size: cover; background-position: center; }
.cs-hero.has-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,20,28,.78), rgba(10,20,28,.25)); }
.cs-hero .mkt-in { position: relative; }
.cs-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.035em; line-height: 1.04; max-width: 18ch; }
.cs-hero p { font-size: 1.15rem; max-width: 52ch; opacity: .92; }
.cs-logo { max-height: 72px; max-width: 260px; background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 18px; }
.cs-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }
.cs-card { border: 1px solid var(--rule); border-radius: 10px; padding: 20px 22px; margin-bottom: 18px; background: #fff; }
.cs-section h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.cs-section { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.cs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cs-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }
@media (max-width: 960px) {
  .mkt-top { padding: 12px 16px; flex-wrap: wrap; }
  .mkt-burger { display: inline-grid; margin-left: auto; cursor: pointer; }
  .mkt-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .mkt-nav-t:checked ~ .mkt-nav { display: flex; }
  .mkt-nav .btn { margin: 8px 0 0; }
  .mkt-hero .mkt-in, .mkt-two, .plans, .cs-grid { grid-template-columns: 1fr; gap: 28px; }
  .mkt-strip-in { grid-template-columns: 1fr; } .mkt-strip-in > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .mkt-in { padding: 0 16px; }
  .mkt-sec .mkt-in > .art { grid-template-columns: 1fr; gap: 4px; }
  .art-sections, .art-wide { grid-template-columns: 1fr; }
  .mkt-foot-in { grid-template-columns: 1fr 1fr; }
  .mkt-sec { padding: 44px 0; }
}
.top-search input, .top-search input:focus { height: 36px; border: 0; padding: 0; box-shadow: none; background: transparent; }
/* ROI calculator */
.roi { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.roi-inputs { display: grid; gap: 14px; }
.roi-inputs label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .92rem; }
.roi-inputs input { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.roi-out { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.roi-out > div { display: flex; flex-direction: column; gap: 2px; }
.roi-label { color: var(--ink-3); font-size: .9rem; }
.roi-out b { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--brand-ink); line-height: 1.1; }
@media (max-width: 960px) { .roi { grid-template-columns: 1fr; } }
.affix > input + span { border-left: 0; border-right: 1px solid var(--rule-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.affix > input:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.cs-single { max-width: 560px; margin-left: auto; margin-right: auto; }
.cs-single aside .cs-card { padding: 26px 28px; }
