/* The public site supplies the palette and its light/dark variants. */
.bs-section {
  padding-block: clamp(44px, 6vw, 86px);
  border-top: 1px solid var(--line);
}
.bs-section h2 {
  font-size: clamp(29px, 3.2vw, 44px);
  line-height: 1.3;
  letter-spacing: -.03em;
}
.bs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(12px, 2vw, 22px);
}
.bs-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: clamp(21px, 2.8vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-wrap: anywhere;
}
.bs-card:hover, .bs-card:focus-visible { border-color: var(--accent-strong); }
.bs-card > small { color: var(--accent-strong); font-size: 13px; }
.bs-card h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.4; }
.bs-card p { flex-grow: 1; color: var(--muted); font-size: 15px; line-height: 1.8; }
.bs-tags { display: flex; flex-wrap: wrap; gap: 5px 7px; }
.bs-tags > span {
  padding: 3px 8px;
  color: var(--tile-ink);
  background: var(--soft);
  border-radius: 4px;
  font-size: 12px;
}
.bs-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px 28px;
}
.bs-modules li {
  min-width: 0;
  padding: 20px 0 10px;
  border-top: 1px solid var(--line);
}
.bs-modules h3 { margin: 0 0 8px; font-size: 20px; }
.bs-modules p { color: var(--muted); line-height: 1.8; }
.bs-related { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; }
.bs-related a, .bs-scene-link {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 580;
  text-decoration: underline;
  text-decoration-color: var(--tile-line);
  text-underline-offset: 5px;
}
.bs-related a:hover, .bs-scene-link:hover { text-decoration-color: currentColor; }
.bs-scene {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  line-height: 1.6;
}
.bs-scene-head { margin-bottom: 14px; }
.bs-scene-head h3 { font-size: clamp(16px, 1.5vw, 20px); }
.bs-pay-sheet, .bs-bid-table, .bs-task-path {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.bs-sheet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  background: var(--soft);
  border-radius: 8px 8px 0 0;
  color: var(--tile-ink);
}
.bs-sheet-title strong { font-size: 15px; }
.bs-sheet-title span { font-size: 12px; }
.bs-fields { padding-inline: 15px; }
.bs-fields > div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 9px 0; }
.bs-fields > div + div { border-top: 1px solid var(--line); }
.bs-fields dt, .bs-fields dd { margin: 0; font-size: 13px; }
.bs-fields dt { color: var(--muted); }
.bs-ledger {
  margin-top: 12px;
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--accent-strong);
}
.bs-ledger strong { font-size: 14px; }
.bs-ledger p, .bs-task-path p { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.bs-task-path { padding: 2px 15px 2px 31px; }
.bs-task-path li { position: relative; padding: 9px 0; }
.bs-task-path li + li { border-top: 1px solid var(--line); }
.bs-task-path li::before {
  position: absolute;
  top: 18px;
  left: -17px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent-strong);
  border-radius: 50%;
  background: var(--soft);
  content: "";
}
.bs-task-path strong { font-size: 14px; }
.bs-bid-table {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
  text-align: left;
  overflow-wrap: anywhere;
}
.bs-bid-table th, .bs-bid-table td { padding: 7px 11px; font-size: 13px; font-weight: 450; }
.bs-bid-table th { font-weight: 560; }
.bs-bid-table thead { background: var(--soft); color: var(--tile-ink); }
.bs-bid-table thead th:first-child { width: 26%; border-top-left-radius: 8px; }
.bs-bid-table thead th:last-child { border-top-right-radius: 8px; }
.bs-bid-table tbody th, .bs-bid-table tbody td { border-top: 1px solid var(--line); }
.bs-scene-link { display: inline-block; margin-top: 12px; padding-block: 5px; }
.bs-records { margin-top: 16px; border-top: 1px solid var(--line); }
.bs-records summary {
  padding: 12px 0;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 580;
}
.bs-records .bs-fields { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
@media (max-width: 600px) {
  .bs-card { padding: 21px 19px; }
  .bs-scene-head { margin-bottom: 11px; }
  .bs-bid-table th, .bs-bid-table td { padding: 7px 5px; font-size: 12px; }
  .bs-fields > div { grid-template-columns: 4em 1fr; gap: 8px; }
  .bs-fields { padding-inline: 10px; }
}

/* Solution directory: the same entry names work on desktop and mobile. */
.sc-index,.sc-detail { padding-bottom: clamp(44px,7vw,96px); }
.sc-families { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:18px; }
.sc-family,.sc-entry { display:block; border:1px solid var(--line); background:var(--paper); border-radius:12px; }
.sc-family { padding:clamp(20px,2.6vw,38px); border-top:3px solid var(--accent-strong); }
.sc-family h2,.sc-family h3 { font-size:clamp(24px,2.8vw,34px); margin:13px 0; }
.sc-family p,.sc-entry p,.sc-scope p,.sc-scene li p { color:var(--muted); }
.sc-count,.sc-open,.sc-group-nav a[aria-current=page] { color:var(--accent-strong); font-weight:600; }
.sc-count { font-size:13px; }
.sc-open { display:inline-block; margin-top:24px; border-bottom:1px solid var(--line); }
.sc-family:hover,.sc-entry:hover,.sc-matches a:hover { border-color:var(--accent-strong); }
.sc-list,.sc-matches { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:12px; }
.sc-entry { padding:20px; }
.sc-entry h3 { font-size:20px; margin:0 0 9px; }
.sc-entry p { font-size:15px; line-height:1.7; }
.sc-block { padding:32px 0; }
.sc-block h2,.sc-detail h2 { margin-bottom:20px; font-size:clamp(24px,3.2vw,36px); }
.sc-block h2 small { font-size:15px; margin-left:8px; color:var(--muted); }
.sc-group-nav { display:flex; flex-wrap:wrap; gap:4px 14px; border-bottom:1px solid var(--line); }
.sc-group-nav a { padding:12px 8px; }
.sc-group-nav a[aria-current=page] { border-bottom:2px solid; }
.sc-search { margin:0 0 28px; max-width:100%; }
.sc-search label { display:block; margin-bottom:7px; font-weight:550; }
.sc-search-row { display:flex; gap:15px; align-items:center; }
.sc-search input { border:1px solid var(--line); background:var(--paper); border-radius:7px; color:var(--ink); width:min(100%,510px); min-width:0; padding:12px 16px; }
.sc-search button { color:var(--accent-strong); }
.sc-status:not(:empty) { margin:12px 0; color:var(--muted); }
.sc-matches a { display:flex; justify-content:space-between; gap:8px; align-items:baseline; padding:12px; border:1px solid var(--line); border-radius:6px; }
.sc-matches small { color:var(--muted); white-space:nowrap; }
.sc-scope { margin:26px 0; padding:24px; background:var(--soft); border-radius:10px; }
.sc-scope h2 { font-size:21px; margin-bottom:8px; }
.sc-back { margin-top:26px; }
.sc-scene h3 { font-size:20px; margin:2px 0 12px; }
.sc-scene li { display:grid; grid-template-columns:minmax(75px,0.34fr) 1fr; gap:8px; padding:9px 0; border-top:1px solid var(--line); font-size:13px; }
.sc-scene .text-link { margin-top:12px; }
@media(max-width:730px){.sc-families { grid-template-columns:1fr; gap:12px; }.sc-family {padding:17px 21px}.sc-family h2,.sc-family h3{margin:5px 0}.sc-open{margin-top:8px}.sc-list{grid-template-columns:1fr}}
