/* Every portfolio card opens its own interactive sample report. */
.dash-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.dash-grid .dash { min-width: 0; padding: 0; }
.dash-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 20px;
  border-radius: inherit;
  color: var(--text, #2c3a33);
  text-decoration: none;
  transition: background-color .15s, box-shadow .15s;
}
.dash-card:hover, .dash-card[aria-current="true"] {
  background: #f3f7f2;
  color: var(--text, #2c3a33);
  box-shadow: inset 0 0 0 2px var(--brand, #1f4d3a);
}
.dash-card:focus-visible { outline: 3px solid var(--gold, #c99a2e); outline-offset: 3px; }
.dash-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.dash-card .dash-num { margin: 0; }
.dash-live { color: var(--brand, #1f4d3a); font-size: .65rem; font-weight: 750; }
.dash-card h3 { min-height: 2.4em; margin-bottom: 10px; line-height: 1.25; }
.dash .dash-description { margin: 0 0 18px; font-size: .8rem; line-height: 1.55; }
.dash-preview { margin-top: auto; padding: 12px 10px; border: 1px solid var(--line, #d9e0db); border-radius: 8px; background: var(--surface, #fff); }
.dash-preview-title { display: block; margin-bottom: 10px; color: var(--muted, #4b5b53); font-size: .64rem; font-weight: 750; }
.dash-mini-rows { display: grid; gap: 7px; }
.dash-mini-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(20px, 1fr) minmax(0, .7fr); align-items: center; gap: 6px; }
.dash-mini-label { min-width: 0; color: var(--muted, #4b5b53); font-size: .61rem; line-height: 1.35; overflow-wrap: anywhere; }
.dash-mini-track { display: block; height: 7px; overflow: hidden; border-radius: 2px; background: #e3eae2; }
.dash-mini-fill { display: block; height: 100%; border-radius: inherit; background: var(--brand, #1f4d3a); }
.dash-mini-row:nth-child(even) .dash-mini-fill { background: #7c9e7e; }
.dash-mini-value { min-width: 0; color: var(--ink, #142019); font-size: .59rem; font-variant-numeric: tabular-nums; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.dash-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; color: var(--brand, #1f4d3a); font-size: .76rem; font-weight: 800; }
.dash-card:hover .dash-action { text-decoration: underline; text-underline-offset: 3px; }

/* Interactive sample reports. Scoped to avoid changing the public site styles. */
.bi-demo {
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line, #d9e0db);
  border-radius: 18px;
  background: var(--surface, #fff);
  color: var(--text, #2c3a33);
  box-shadow: var(--shadow, 0 12px 32px -12px rgba(20, 32, 25, .14));
  font-family: var(--font, "Manrope", sans-serif);
  line-height: 1.5;
}

.bi-demo *, .bi-demo *::before, .bi-demo *::after { box-sizing: border-box; }
.bi-demo [hidden] { display: none !important; }
.bi-demo button, .bi-demo select { font-family: inherit; }
.bi-demo button { cursor: pointer; }
.bi-demo :is(button, select, summary, .bi-table-wrap):focus-visible {
  outline: 3px solid var(--gold, #c99a2e);
  outline-offset: 3px;
}
.bi-demo :is(button, select):disabled {
  cursor: not-allowed;
  opacity: .55;
}

.bi-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 10px;
}
.bi-heading > * { min-width: 0; }
.bi-kicker {
  display: block;
  margin: 0 0 6px;
  color: var(--brand, #1f4d3a);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.bi-demo .bi-heading h2 {
  margin: 0;
  color: var(--ink, #142019);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.bi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 5px 9px;
  border: 1px solid #c8d9ce;
  border-radius: 999px;
  background: var(--tint, #edf2ee);
  color: var(--brand-ink, #173b2c);
  font-size: .72rem;
  font-weight: 750;
}
.bi-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand, #1f4d3a);
}
.bi-subtitle {
  margin: 0 0 20px;
  color: var(--muted, #4b5b53);
  font-size: .88rem;
  max-width: 75ch;
}

.bi-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  align-items: end;
  gap: 12px;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line, #d9e0db);
  border-radius: 12px;
  background: #f7f8f5;
}
.bi-controls label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink, #142019);
  font-size: .76rem;
  font-weight: 750;
}
.bi-controls select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 28px 8px 10px;
  border: 1px solid #aebfb3;
  border-radius: 7px;
  background: #fff;
  color: var(--ink, #142019);
  font-size: .85rem;
  font-weight: 600;
}
.bi-reset, button.bi-selection {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #aebfb3;
  border-radius: 7px;
  background: var(--surface, #fff);
  color: var(--brand-ink, #173b2c);
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.3;
}
.bi-reset:hover:not(:disabled), button.bi-selection:hover:not(:disabled) {
  border-color: var(--brand, #1f4d3a);
  background: var(--brand-soft, #dfe9e2);
}

.bi-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.bi-kpis > div {
  min-width: 0;
  padding: 16px 14px;
  border: 1px solid var(--line, #d9e0db);
  border-top: 3px solid var(--brand, #1f4d3a);
  border-radius: 10px;
  background: var(--surface, #fff);
}
.bi-kpi-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted, #4b5b53);
  font-size: .76rem;
  font-weight: 700;
}
.bi-kpis strong {
  display: block;
  color: var(--ink, #142019);
  font-size: clamp(.95rem, 3.5cqi, 1.8rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.bi-kpi-note {
  display: block;
  margin-top: 5px;
  color: var(--muted, #4b5b53);
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.bi-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.bi-chart { min-width: 0; }
.bi-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 12px;
}
.bi-demo .bi-chart-heading h3 {
  margin: 0;
  color: var(--ink, #142019);
  font-size: 1rem;
  line-height: 1.4;
}
.bi-selection {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--brand-ink, #173b2c);
  font-size: .76rem;
  font-weight: 700;
}
button.bi-selection { min-height: 36px; padding: 6px 10px; font-size: .74rem; }
.bi-bars { list-style: none; display: grid; gap: 6px; padding: 0; margin: 0; }
.bi-bars > li { min-width: 0; margin: 0; padding: 0; }
.bi-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(84px, .85fr) minmax(48px, 2fr) minmax(64px, .65fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f7f8f5;
  color: var(--ink, #142019);
  text-align: left;
}
.bi-bar:hover:not(:disabled), .bi-bar:focus-visible {
  border-color: #a5b9ab;
  background: var(--tint, #edf2ee);
}
.bi-bar[aria-pressed="true"] {
  border-color: var(--brand, #1f4d3a);
  background: var(--brand-soft, #dfe9e2);
  box-shadow: inset 3px 0 0 var(--brand, #1f4d3a);
}
.bi-bar-label {
  min-width: 0;
  color: inherit;
  font-size: .8rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.bi-track {
  display: block;
  min-width: 0;
  height: 14px;
  overflow: hidden;
  border-radius: 4px;
  background: #e1e7e1;
}
.bi-fill {
  display: block;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand, #1f4d3a);
  transition: width .25s ease;
}
.bi-bar[aria-pressed="true"] .bi-fill { background: #9c7116; }
.bi-bar-value {
  color: var(--ink, #142019);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: right;
  overflow-wrap: anywhere;
}
.bi-tooltip {
  display: block;
  position: absolute;
  z-index: 3;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--ink, #142019);
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 32, 25, .15);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  visibility: hidden;
  pointer-events: none;
}
.bi-bars > li:hover .bi-tooltip,
.bi-bars > li:focus-within .bi-tooltip { visibility: visible; }
.bi-bars > li > .bi-tooltip { padding: 3px 10px 0; }
.bi-trend { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bi-trend .bi-bar { grid-template-columns: minmax(0, 1fr); min-height: 84px; gap: 7px; }
.bi-trend .bi-bar-label { grid-column: 1; grid-row: 1; }
.bi-trend .bi-track { grid-column: 1; grid-row: 2; height: 10px; }
.bi-trend .bi-bar-value { grid-column: 1; grid-row: 3; text-align: left; }
.bi-empty {
  margin: 12px 0;
  padding: 18px;
  border: 1px dashed #aebfb3;
  border-radius: 8px;
  color: var(--muted, #4b5b53);
  font-size: .86rem;
}
.bi-status {
  margin: 12px 0;
  color: var(--brand-ink, #173b2c);
  font-size: .8rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.bi-details {
  min-width: 0;
  margin-top: 18px;
  border-top: 1px solid var(--line, #d9e0db);
  border-bottom: 1px solid var(--line, #d9e0db);
}
.bi-details summary {
  padding: 12px 4px;
  color: var(--brand-ink, #173b2c);
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}
.bi-details summary::marker { color: var(--brand, #1f4d3a); }
.bi-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 14px;
  border: 1px solid var(--line, #d9e0db);
  border-radius: 7px;
  scrollbar-color: #92ab9a #edf2ee;
}
.bi-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text, #2c3a33);
  font-size: .75rem;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.bi-table-wrap caption {
  padding: 10px 12px;
  color: var(--muted, #4b5b53);
  font-size: .74rem;
  text-align: left;
}
.bi-table-wrap :is(th, td) { padding: 9px 12px; border-top: 1px solid var(--line, #d9e0db); white-space: nowrap; }
.bi-table-wrap th { background: var(--tint, #edf2ee); color: var(--ink, #142019); font-weight: 750; }
.bi-table-wrap tbody tr:nth-child(even) { background: #f8faf7; }
.bi-help, .bi-disclosure {
  margin: 12px 0 0;
  color: var(--muted, #4b5b53);
  font-size: .76rem;
  overflow-wrap: anywhere;
}
.bi-disclosure { padding-top: 12px; border-top: 1px solid var(--line, #d9e0db); }
.bi-help { margin-bottom: 14px; }

/* Container queries keep the hero version usable independently of the viewport. */
@container (min-width: 850px) {
  .bi-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
@container (max-width: 430px) {
  .bi-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 10px; }
  .bi-kpis { gap: 8px; }
  .bi-kpis > div { padding: 12px 9px; }
  .bi-kpi-label, .bi-kpi-note { font-size: .68rem; }
  .bi-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .bi-bar-label { grid-column: 1; grid-row: 1; }
  .bi-bar-value { grid-column: 2; grid-row: 1; }
  .bi-track { grid-column: 1 / -1; grid-row: 2; height: 12px; }
}
@container (max-width: 300px) {
  .bi-controls { grid-template-columns: minmax(0, 1fr); }
  .bi-kpis { grid-template-columns: minmax(0, 1fr); }
  .bi-kpis > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 10px; padding: 12px; }
  .bi-kpis strong { grid-column: 2; grid-row: 1; font-size: 1.1rem; }
  .bi-kpi-label { margin: 0; font-size: .72rem; }
  .bi-kpi-note { grid-column: 1 / -1; margin: 0; font-size: .7rem; }
  .bi-trend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .dash-card { transition: none !important; }
  .bi-demo *, .bi-demo *::before, .bi-demo *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .dash-preview, .dash-card[aria-current="true"] { border: 1px solid CanvasText; }
  .dash-mini-track { border: 1px solid CanvasText; }
  .dash-mini-fill { background: Highlight; forced-color-adjust: none; }
  .bi-bar, .bi-kpis > div, .bi-controls { border-color: CanvasText; }
  .bi-track { border: 1px solid CanvasText; }
  .bi-fill { background: Highlight; forced-color-adjust: none; }
  .bi-bar[aria-pressed="true"] { border: 2px solid Highlight; }
  .bi-bar[aria-pressed="true"] .bi-fill { background: Highlight; }
}
