/* SLGA Board Hub (lavenderfestival.com/members/board). Builds on portal.css. */
.bd-page { padding-top: 18px; }
.bd-shell { display: grid; grid-template-columns: 250px 1fr; gap: 22px; width: min(1500px, 100% - 2 * var(--gutter, 20px)); margin: 0 auto; align-items: start; }
@media (max-width: 900px) { .bd-shell { grid-template-columns: 1fr; } }

/* The drawer and dialogs live outside <main class="portal">, so give their fields the portal look. */
.bd-drawer input[type=text], .bd-drawer input[type=date], .bd-drawer select, .bd-drawer textarea:not(.title),
.bd-modal input[type=text], .bd-modal input[type=date], .bd-modal input[type=email], .bd-modal select, .bd-modal textarea {
  font: 400 1rem/1.4 var(--sans); padding: 10px 12px; border: 1px solid #D9D0C2; border-radius: 10px; background: #FFFDF9; color: var(--ink); width: 100%; box-sizing: border-box; min-height: 44px; }
.bd-drawer textarea:not(.title), .bd-modal textarea { min-height: 90px; resize: vertical; }
.bd-drawer textarea.title { width: 100%; box-sizing: border-box; font-family: var(--serif); }
.bd-drawer input:focus, .bd-drawer select:focus, .bd-drawer textarea:focus, .bd-modal input:focus, .bd-modal select:focus, .bd-modal textarea:focus { outline: 2px solid var(--lav-500, #9B7DB8); outline-offset: 1px; }
.bd-modal h2 { font: 600 1.5rem var(--serif); color: var(--plum); }

/* sidebar */
.bd-side { position: sticky; top: 12px; background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 16px; max-height: calc(100vh - 24px); overflow: auto; }
@media (max-width: 900px) {
  /* Phones: the sidebar becomes two scrollable rows of chips so the work is on the first screen. */
  .bd-side { position: static; max-height: none; padding: 10px 12px; }
  .bd-me { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 8px; margin-bottom: 8px; }
  .bd-me .pt-eyebrow { display: none; }
  .bd-me b { font-size: .98rem; }
  .bd-me > div { margin-top: 0 !important; margin-left: auto; font-size: .85rem; }
  .bd-side .bd-nav, .bd-side #bd-boards { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .bd-side .bd-nav button, .bd-side .bd-boardlink { width: auto; flex: none; white-space: nowrap; border: 1px solid var(--rule); border-radius: 999px; padding: 7px 12px; min-height: 38px; }
  .bd-side h4, #bd-show-archived { display: none; }
  #bd-boards { margin-top: 6px; }
  .bd-side #bd-new-board { display: inline-block; margin-top: 2px; }
  .bd-col { flex-basis: 82vw; }
}
.bd-me { border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 12px; font-size: .9rem; }
.bd-me b { display: block; font: 600 1.05rem var(--serif); color: var(--plum); }
.bd-nav button, .bd-boardlink { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 10px; font: 600 .93rem var(--sans); color: var(--ink); cursor: pointer; min-height: 40px; }
.bd-nav button:hover, .bd-boardlink:hover { background: var(--lav-wash); }
.bd-nav button[aria-current="true"], .bd-boardlink[aria-current="true"] { background: var(--plum); color: #fff; }
.bd-nav button .n { margin-left: auto; font-size: .78rem; background: var(--lav-wash); color: var(--plum); border-radius: 999px; padding: 1px 8px; }
.bd-nav button[aria-current="true"] .n { background: rgba(255,255,255,.2); color: #fff; }
.bd-side h4 { font: 700 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 16px 0 6px 10px; }
.bd-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.bd-side .pt-link { padding-left: 10px; }

/* main */
.bd-main { min-width: 0; }
.bd-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.bd-top input[type=search] { flex: 1 1 280px; min-height: 44px; border: 1px solid #D9D0C2; border-radius: 999px; padding: 10px 16px; font: 400 1rem var(--sans); background: #fff; }
.bd-h { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.bd-h h1 { font: 600 clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem) var(--serif); color: var(--plum); margin: 0; }
.bd-h .grow { flex: 1 1 300px; }
.bd-h p { margin: 4px 0 0; color: var(--ink-soft); }
.bd-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
.bd-filters .lab { font-size: .82rem; color: var(--ink-soft); margin-right: 4px; }

/* kanban */
.bd-cols { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; min-height: 60vh; }
.bd-col { flex: 0 0 290px; background: #EFE8DC; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; max-height: 78vh; }
.bd-col-h { display: flex; align-items: center; gap: 8px; padding: 4px 4px 8px; }
.bd-col-h input { font: 700 .95rem var(--sans); color: var(--plum); border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 4px 6px; flex: 1; min-height: 32px; }
.bd-col-h input:focus { background: #fff; border-color: #D9D0C2; }
.bd-col-h .cnt { font-size: .8rem; color: var(--ink-soft); }
.bd-cards { flex: 1; overflow-y: auto; min-height: 40px; display: flex; flex-direction: column; gap: 8px; padding: 2px; }
.bd-card { background: #fff; border: 1px solid #E2D9CB; border-radius: 12px; padding: 10px 12px; cursor: pointer; box-shadow: 0 1px 0 rgba(31,29,26,.04); }
.bd-card:hover { border-color: var(--lav-500); }
.bd-card.drop { outline: 2px dashed var(--lav); background: var(--lav-wash); }
.bd-card .t { font-weight: 600; line-height: 1.35; color: var(--ink); }
.bd-card .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.bd-card .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: .78rem; color: var(--ink-soft); }
.bd-card .meta .av { margin-left: auto; display: flex; }
.bd-ghost { opacity: .4; }
.bd-chosen { box-shadow: 0 10px 24px -10px rgba(43,34,56,.4); }
.bd-addcard { margin-top: 8px; }
.bd-addcard input { width: 100%; border: 1px dashed #CFC4B3; background: rgba(255,255,255,.6); border-radius: 10px; padding: 9px 10px; font: 400 .92rem var(--sans); min-height: 40px; box-sizing: border-box; }
.bd-addcol { flex: 0 0 240px; }
.bd-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--lav-wash); color: var(--plum); }
.bd-tag button { border: 0; background: none; color: inherit; cursor: pointer; font-size: .9rem; line-height: 1; padding: 0; }
.bd-due { font-weight: 700; padding: 1px 7px; border-radius: 6px; background: #EEE8DD; color: var(--ink-2); }
.bd-due.soon { background: #FBF0D2; color: #7D6522; }
.bd-due.late { background: #F7DED8; color: #8A2F1E; }
.bd-due.done { background: #E4EEDB; color: #33452A; }
.bd-av { width: 26px; height: 26px; border-radius: 50%; background: var(--plum); color: #fff; font: 700 .68rem/26px var(--sans); text-align: center; border: 2px solid #fff; margin-left: -6px; }
.bd-pri { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.bd-pri.high { background: #FBE3D4; color: #8A3B12; }
.bd-pri.urgent { background: #8A2F1E; color: #fff; }

/* drawer */
.bd-drawer-bg { position: fixed; inset: 0; background: rgba(31,29,26,.35); z-index: 60; }
.bd-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--paper); z-index: 61; overflow-y: auto; box-shadow: -18px 0 40px -20px rgba(0,0,0,.35); padding: 20px clamp(16px, 3vw, 28px) 60px; }
.bd-drawer textarea.title { font: 600 1.45rem/1.25 var(--serif); color: var(--plum); border: 1px solid transparent; background: transparent; padding: 6px 8px; min-height: 0; resize: none; }
.bd-drawer textarea.title:focus { background: #fff; border-color: #D9D0C2; }
.bd-dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 560px) { .bd-dgrid { grid-template-columns: 1fr; } }
.bd-sec { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.bd-sec h3 { font: 700 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.bd-check { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.bd-check input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--sage-700); }
.bd-check.done span { text-decoration: line-through; color: var(--ink-soft); }
.bd-check .x { margin-left: auto; border: 0; background: none; color: var(--ink-soft); cursor: pointer; font-size: 1.1rem; }
.bd-drop { border: 2px dashed #CFC4B3; border-radius: 12px; padding: 14px; text-align: center; color: var(--ink-soft); cursor: pointer; display: block; font-size: .9rem; }
.bd-drop.over { background: var(--lav-wash); border-color: var(--lav); }
.bd-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bd-files { list-style: none; margin: 10px 0 0; padding: 0; }
.bd-files li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid #EEE7DB; font-size: .92rem; }
.bd-files li:first-child { border-top: 0; }
.bd-files .sz { color: var(--ink-soft); font-size: .8rem; margin-left: auto; white-space: nowrap; }
.bd-comment { border-top: 1px solid #EEE7DB; padding: 10px 0; }
.bd-comment b { color: var(--plum); }
.bd-comment .when { color: var(--ink-soft); font-size: .8rem; margin-left: 6px; }
.bd-comment p { margin: 4px 0 0; white-space: pre-wrap; }
.bd-people { display: flex; flex-wrap: wrap; gap: 6px; }

/* my work / lists */
.bd-group { margin-bottom: 22px; }
.bd-group h2 { font: 600 1.2rem var(--serif); color: var(--plum); margin: 0 0 8px; }
.bd-rows { background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.bd-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 14px; border-top: 1px solid #EEE7DB; cursor: pointer; }
.bd-row:first-child { border-top: 0; }
.bd-row:hover { background: #FBF8F2; }
.bd-row .sub { font-size: .8rem; color: var(--ink-soft); }
.bd-empty { color: var(--ink-soft); padding: 14px; }

/* calendar */
.bd-cal-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.bd-cal-h h2 { font: 600 1.4rem var(--serif); color: var(--plum); margin: 0 10px 0 0; min-width: 200px; }
.bd-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.bd-cal .dow { background: #F3EDE2; font: 700 .74rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding: 8px; text-align: center; }
.bd-cal .day { background: #fff; min-height: 110px; padding: 6px; font-size: .8rem; }
.bd-cal .day.other { background: #FAF7F1; color: #B7AFA4; }
.bd-cal .day.today { box-shadow: inset 0 0 0 2px var(--gold); }
.bd-cal .day .d { font-weight: 700; margin-bottom: 4px; }
.bd-cal .ev { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 3px 6px; margin-bottom: 3px; font: 600 .74rem/1.3 var(--sans); cursor: pointer; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-cal .ev.key { background: var(--gold); color: #2A1F3A; }
@media (max-width: 700px) { .bd-cal .day { min-height: 70px; } .bd-cal .ev { font-size: .66rem; } }

/* budgets & docs tables */
.bd-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.bd-table th { text-align: left; font: 700 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 9px 8px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.bd-table td { padding: 6px 8px; border-bottom: 1px solid #EEE7DB; vertical-align: middle; }
.bd-table td input, .bd-table td select { min-height: 36px; padding: 6px 8px; font-size: .9rem; border-radius: 8px; }
.bd-table td.num, .bd-table th.num { text-align: right; }
.bd-table td.num input { text-align: right; }
.bd-table tfoot td { font-weight: 700; background: #FBF8F2; }
.bd-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; }
.bd-neg { color: #8A2F1E; }
.bd-pos { color: #33452A; }
.bd-bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bd-bcard { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 16px; cursor: pointer; }
.bd-bcard:hover { border-color: var(--lav-500); }
.bd-bcard h3 { margin: 0 0 4px; font: 600 1.15rem var(--serif); color: var(--plum); }
.bd-meter { height: 8px; background: #EEE7DB; border-radius: 8px; overflow: hidden; margin: 10px 0 6px; }
.bd-meter i { display: block; height: 100%; background: var(--sage-700); }
.bd-meter i.over { background: #8A2F1E; }
.bd-modal-bg { position: fixed; inset: 0; background: rgba(31,29,26,.35); z-index: 70; display: grid; place-items: center; padding: 16px; }
.bd-modal { background: var(--paper); border-radius: 18px; padding: 22px; width: min(520px, 100%); max-height: 90vh; overflow: auto; }
.bd-modal h2 { margin-top: 0; }
.bd-results h2 { font: 600 1.15rem var(--serif); color: var(--plum); margin: 18px 0 8px; }
mark { background: #FBF0D2; color: inherit; padding: 0 1px; border-radius: 3px; }
