/* home.css — the home page (configs.html): Accounts level, breadcrumb + switcher, Views | Mosaics tabs
   and the tables (hometable.js). On a phone each table row stacks into a labelled block, so the page
   never scrolls sideways. */

.bc-home-bar { flex-wrap: wrap; row-gap: 8px; margin-bottom: 14px; }
.bc-home-bar h2 { margin: 0; }
.bc-home-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.bc-home-crumb .bc-link-btn { font-size: 1rem; padding: 4px 0; }
.bc-home-sep { color: var(--ink-3); font-size: 1.1rem; }
.bc-home-switch { font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--ink); padding: 4px 30px 4px 10px; max-width: 100%; }
.bc-home-conn { font-size: .8rem; color: #8A6D26; background: var(--wuwm-gold-soft); border: 1px solid #F0DFA8; border-radius: 999px; padding: 3px 10px; }
.bc-home-conn.bc-ht-on { color: #1e5a3c; background: #E8EEE9; border-color: #CFE0D4; }
.bc-home-conn a { color: inherit; font-weight: 600; }

.bc-home-tabs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bc-home-tablist { margin: 0; padding: 0; border-bottom: none; background: none; position: static; }
.bc-home-tablist .bc-tab { font-size: .95rem; }
.bc-home-count { display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 999px; background: #EEEAE0; color: var(--ink-2); font-size: .75rem; font-weight: 700; text-align: center; }

/* ---- the table ---- */
.bc-ht-wrap { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--shadow); overflow-x: auto; }
.bc-ht-wrap .bc-ht-empty { border: none; box-shadow: none; padding: 32px; }
.bc-ht { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bc-ht th, .bc-ht td { padding: 11px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--hairline); }
.bc-ht tbody tr:last-child td { border-bottom: none; }
.bc-ht tbody tr:hover td { background: #FCFBF8; }
.bc-ht th { position: relative; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; background: #FCFBF8; }
.bc-ht-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.bc-ht-sort:hover { color: var(--ink); }
.bc-ht-sort:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--wuwm-gold-rgb), .45); border-radius: 4px; }
.bc-ht th[aria-sort="ascending"], .bc-ht th[aria-sort="descending"] { color: var(--ink); }
.bc-ht-arrow { font-size: .6rem; }
.bc-ht-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bc-ht-none { color: var(--ink-3); }

.bc-ht-name { min-width: 160px; }
.bc-ht-namebox { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bc-ht-open { font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--ink); text-decoration: none; }
a.bc-ht-open:hover { text-decoration: underline; }
.bc-ht-role { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; }
.bc-ht-src { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bc-ht-kind { font-size: .66rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--hairline-strong); border-radius: 5px; padding: 0 5px; }
.bc-ht-link { background: none; border: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; cursor: pointer; text-align: left; }
.bc-ht-link:hover { text-decoration-color: var(--ink); }
.bc-ht-link:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--wuwm-gold-rgb), .45); border-radius: 4px; }
.bc-ht-link.bc-ht-open { font-family: var(--display); font-size: 1rem; font-weight: 600; text-decoration: none; }
.bc-ht-link.bc-ht-open:hover { text-decoration: underline; }
.bc-ht-conn { font-size: .8rem; color: #8A6D26; }
.bc-ht-conn.bc-ht-on { color: #1e5a3c; }
.bc-ht-actions { width: 1%; white-space: nowrap; }
.bc-ht-acts { display: inline-flex; align-items: center; gap: 6px; }
.bc-ht-acts a.bc-add-btn { text-decoration: none; display: inline-block; }

/* ---- phone: every row becomes a labelled block; nothing is wider than the screen ---- */
@media (max-width: 720px) {
  .bc-ht-wrap { background: none; border: none; box-shadow: none; overflow: visible; }
  .bc-ht, .bc-ht tbody, .bc-ht tr, .bc-ht td { display: block; width: 100%; }
  .bc-ht thead { display: none; }
  .bc-ht tr { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; margin-bottom: 10px; }
  .bc-ht tbody tr:hover td { background: none; }
  .bc-ht td, .bc-ht tbody tr:last-child td { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; border: none; min-width: 0; overflow-wrap: anywhere; }
  .bc-ht td::before { content: attr(data-label); flex: 0 0 92px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
  .bc-ht td.bc-ht-name::before, .bc-ht td.bc-ht-actions::before { content: none; }
  .bc-ht td.bc-ht-name { padding-bottom: 6px; }
  .bc-ht td.bc-ht-actions { width: auto; padding-top: 8px; }
  .bc-home-switch { font-size: 1.05rem; }
}
