/* Board pack pages. One chart accent (cobalt). Citrine is only the primary button. */

.bd {
  color: #3a3a3a;
  font-family: "proxima-nova", "Nunito Sans", system-ui, sans-serif;
  max-width: 72rem;
}
.bd h2, .bd h3 { color: #001d3d; margin: 0 0 0.4rem; }
.bd a { color: #0b4b88; }
.bd a:focus, .bd button:focus, .bd summary:focus { outline: 3px solid #0b4b88; outline-offset: 2px; }
.bd-hero {
  background: #001d3d;
  color: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.35rem;
  /* The hero stays navy in both themes, so the pill keeps the pale status colors. */
  --status-ontrack-text: #0B5E3F;
  --status-ontrack-fill: #E3F4EC;
  --status-watch-text: #7A4D00;
  --status-watch-fill: #FFF4D6;
  --status-offtrack-text: #A3191F;
  --status-offtrack-fill: #FDE7E7;
  --status-idle-text: #3A3A3A;
  --status-idle-fill: #EFEAE2;
}
.bd-hero p, .bd-hero h2 { color: #ffffff; margin: 0; }
.bd-kicker { letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.75rem; }
.bd-number { font-size: 4.5rem; font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; }
.bd-hero-action { display: flex; align-items: center; gap: 0.25rem; }
.bd-hero-action .number-help { flex: 0 0 auto; }
.bd-number .number-help,
.bd-number .ask-number,
.bd-hero-action .number-help { font-size: 1rem; line-height: 1; font-weight: 700; letter-spacing: normal; }
.bd a.bd-primary,
.bd a.bd-primary:hover,
.bd a.bd-primary:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  min-width: 0;
  margin-top: 0.6rem;
  padding: 0.55rem 1rem;
  background: #ffc61b;
  color: #001d3d;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  width: fit-content;
}
.bd-learn {
  background: #f5e6c5;
  color: #001d3d;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0.8rem 0;
}
.bd-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}
.bd-status-on_track { background: var(--status-ontrack-fill); color: var(--status-ontrack-text); }
.bd-status-watch { background: var(--status-watch-fill); color: var(--status-watch-text); }
.bd-status-off_track { background: var(--status-offtrack-fill); color: var(--status-offtrack-text); }
.bd-status-not_started { background: var(--status-idle-fill); color: var(--status-idle-text); }
.bd-nav, .bd-sizes { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.2rem 0 0.6rem; }
.bd-nav a, .bd-sizes a {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border: 1px solid #001d3d;
  border-radius: 999px;
  text-decoration: none;
  color: #001d3d;
  background: #fff;
}
.bd-nav a[aria-current="page"], .bd-sizes a[aria-current="true"] { background: #001d3d; color: #fff; }
.bd-card {
  background: #fff;
  border: 1px solid #f5e6c5;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-top: 0.8rem;
}
.bd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bd table { width: 100%; border-collapse: collapse; min-width: 36rem; }
.bd th, .bd td { text-align: left; padding: 0.45rem 0.4rem; border-bottom: 1px solid #f5e6c5; vertical-align: top; }
.bd th { color: #001d3d; font-weight: 700; }
.bd-how { font-size: 0.9rem; margin: 0.2rem 0 0.6rem; }
.bd-bar { display: grid; grid-template-columns: 9rem 1fr auto; gap: 0.4rem; align-items: center; margin: 0.35rem 0; }
.bd-track { background: var(--chart-track); border-radius: 6px; height: 0.7rem; }
.bd-fill { display: block; height: 100%; border-radius: 6px; background: var(--color-heading); }
.bd-fill.accent { background: var(--color-cobalt); }
.bd-fill.negative { background: var(--status-mark-bad); }
.bd-two { display: grid; gap: 0.8rem; }
.bd-note { font-size: 0.95rem; }
@media (min-width: 800px) {
  .bd-two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .bd-stage:has(.bd-side) {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.72fr);
    gap: 16px;
    align-items: start;
  }
  .bd-side { display: grid; gap: 12px; align-content: start; }
  .bd-side .bd-card { margin-top: 0; }
  .bd-stage a.bd-primary { width: auto; }
  body.pgos-app:has(.bd) .next-line a.btn-primary,
  body.pgos-app:has(.bd) .next-line a.btn-primary:hover,
  [data-theme="dark"] body.pgos-app:has(.bd) .next-line a.btn-primary,
  [data-theme="dark"] body.pgos-app:has(.bd) .next-line a.btn-primary:hover,
  html:not([data-theme="light"]) body.pgos-app:has(.bd) .next-line a.btn-primary,
  html:not([data-theme="light"]) body.pgos-app:has(.bd) .next-line a.btn-primary:hover {
    background: var(--color-card);
    color: var(--color-heading);
    border: 1px solid var(--color-line);
    box-shadow: none;
  }
}
@media (max-width: 800px) {
  .bd-number { font-size: 3.5rem; }
  .bd { overflow-x: clip; max-width: 100%; }
  .bd-bar { grid-template-columns: 1fr; min-height: 44px; }
  .bd-nav, .bd-sizes { display: grid; flex-wrap: wrap; overflow-x: visible; gap: 8px; }
  .bd-nav a, .bd-sizes a, .bd-card li a { min-height: 44px; width: 100%; min-width: 0; flex: 1 1 auto; display: flex; align-items: center; white-space: normal; box-sizing: border-box; }
  .bd-learn a { min-height: 44px; display: inline-flex; align-items: center; }
  .bd-card .viz-tap a { display: flex; width: 100%; min-width: 0; min-height: 44px; white-space: normal; align-items: center; box-sizing: border-box; }
  .bd a.bd-primary { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; min-height: 48px; min-width: 0; box-sizing: border-box; }
  .bd-table-wrap { overflow-x: visible; }
  .bd table { min-width: 0; }
  .bd table, .bd thead, .bd tbody, .bd tr, .bd td { display: block; width: 100%; min-width: 0; }
  .bd thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); display: block; }
  .bd tr { border: 1px solid #001d3d; border-left: 6px solid #ffc61b; margin: 0 0 0.75rem; padding: 0.6rem 0.75rem; background: #fff; }
  .bd th, .bd td { white-space: normal; border: 0; padding: 0.35rem 0; min-width: 0; overflow-wrap: anywhere; }
  .bd td[data-label]::before { content: attr(data-label); display: block; font-weight: 700; color: #001d3d; }
}
[data-theme="dark"] body.pgos-app .main-col a.bd-primary:not(.btn):not(.btn-primary):not(.btn-danger):not(.cash-primary):not(.pp-primary):not(.siop-primary):not(.siop-step[aria-current="page"]),
[data-theme="dark"] body.pgos-app .main-col a.bd-primary:hover:not(.btn):not(.btn-primary):not(.btn-danger):not(.cash-primary):not(.pp-primary):not(.siop-primary):not(.siop-step[aria-current="page"]) {
  background: #ffc61b;
  color: #001d3d;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body.pgos-app .main-col a.bd-primary:not(.btn):not(.btn-primary):not(.cash-primary):not(.pp-primary):not(.siop-primary):not(.siop-step[aria-current="page"]),
  html:not([data-theme="light"]) body.pgos-app .main-col a.bd-primary:hover:not(.btn):not(.btn-primary):not(.cash-primary):not(.pp-primary):not(.siop-primary):not(.siop-step[aria-current="page"]) {
    background: #ffc61b;
    color: #001d3d;
  }
}
