/* BMC Interactive Viewer — shared assets
   Warm paper aesthetic + product-UI interactions
   Relative paths; works offline as static HTML */

:root {
  --bmc-bg: #f3efe6;
  --bmc-bg2: #ebe4d6;
  --bmc-ink: #141210;
  --bmc-muted: #6a645a;
  --bmc-line: #ddd4c4;
  --bmc-card: #fffcf7;
  --bmc-chip: #f0e9db;
  --bmc-shadow: 0 22px 50px rgba(40, 28, 10, 0.12);
  --bmc-shadow-sm: 0 8px 20px rgba(40, 28, 10, 0.08);
  --bmc-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --bmc-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --bmc-drawer-w: min(440px, 94vw);
  --bmc-radius: 14px;
  --bmc-focus: #111;
}

*, *::before, *::after { box-sizing: border-box; }

.bmc-page {
  overflow-x: clip;
  font-family: var(--bmc-sans);
  background:
    radial-gradient(1000px 500px at 0% 0%, #fff8ea 0%, transparent 55%),
    radial-gradient(800px 400px at 100% 0%, #e7dfd0 0%, transparent 50%),
    var(--bmc-bg);
  color: var(--bmc-ink);
  line-height: 1.5;
  min-height: 100vh;
  margin: 0;
}

.bmc-page a { color: inherit; }
/* Primary CTA links must keep white text (higher specificity than .bmc-page a) */
.bmc-page a.bmc-btn-primary,
.bmc-btn-primary { color: #fff; }
.bmc-page a.bmc-btn-primary:hover,
.bmc-btn-primary:hover { color: #fff; }

/* ——— Skip link (visually hidden until :focus) ——— */
.bmc-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  z-index: 100;
  background: var(--bmc-ink);
  color: #fff !important;
  font-weight: 650;
  font-size: 0.85rem;
  text-decoration: none;
}
.bmc-skip:focus,
.bmc-skip:focus-visible {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.65rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border-radius: 0 0 8px 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ——— Top nav ——— */
.bmc-top {
  position: sticky;
  top: var(--gb-strip-h, 0px); /* sits under the sticky "Made with Grok Bot" strip */
  z-index: 80; /* above expanded canvas (50) + overlays */
  backdrop-filter: blur(12px);
  background: rgba(243, 239, 230, 0.92);
  border-bottom: 1px solid var(--bmc-line);
  overflow: visible;
}
.bmc-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
  overflow: visible;
  position: relative;
}
.bmc-nav a {
  color: var(--bmc-muted);
  text-decoration: none;
  font-weight: 500;
}
.bmc-nav a:hover { color: var(--bmc-ink); }
.bmc-nav .sep { color: #c9c0b0; }
.bmc-nav-spacer { flex: 1; }
.bmc-nav-company {
  font-weight: 650;
  color: var(--bmc-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 18rem);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.bmc-nav-company-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Company logos (sticky + hero) — fixed boxes avoid CLS */
.bmc-logo {
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--bmc-line);
  box-sizing: border-box;
}
.bmc-logo--nav {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  padding: 4px;
}
.bmc-logo--hero {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  padding: 8px;
}

.bmc-logo--mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bmc-accent, #111);
  color: #fff;
  border: none;
  padding: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  object-fit: unset;
}
.bmc-logo--mono.bmc-logo--nav {
  font-size: 0.65rem;
}
.bmc-logo--mono.bmc-logo--hero {
  font-size: 0.95rem;
}

.bmc-title-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.45rem;
  min-height: 52px;
}
.bmc-title-row .bmc-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.bmc-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  margin-left: auto;
}

/* Downloads dropdown (single secondary control) */
.bmc-dd {
  position: relative;
}
.bmc-dd > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.bmc-dd > summary::-webkit-details-marker { display: none; }
.bmc-dd > summary::after {
  content: "▾";
  margin-left: 0.35rem;
  font-size: 0.7em;
  opacity: 0.7;
}
.bmc-dd[open] > summary::after { content: "▴"; }
.bmc-dd-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 11.5rem;
  padding: 0.35rem;
  background: var(--bmc-card);
  border: 1px solid var(--bmc-line);
  border-radius: 12px;
  box-shadow: var(--bmc-shadow);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.bmc-dd-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--bmc-ink) !important;
  text-decoration: none;
  font-weight: 550;
  font-size: 0.82rem;
  white-space: nowrap;
}
.bmc-dd-menu a:hover {
  background: var(--bmc-chip);
}
.bmc-dd-menu a:focus-visible {
  outline: 2px solid var(--bmc-focus);
  outline-offset: 1px;
}

/* ——— Buttons ——— */
.bmc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid var(--bmc-line);
  background: var(--bmc-card);
  color: var(--bmc-ink);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.bmc-btn:hover {
  transform: translateY(-1px);
  border-color: #cfc5b2;
  box-shadow: var(--bmc-shadow-sm);
}
.bmc-btn:focus-visible {
  outline: 3px solid var(--bmc-focus);
  outline-offset: 2px;
}
.bmc-btn-primary {
  background: var(--bmc-ink);
  color: #fff;
  border-color: var(--bmc-ink);
}
.bmc-btn-primary:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}
.bmc-btn-ghost {
  background: transparent;
}
.bmc-btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  min-height: 44px;
}

/* ——— Hero ——— */
/* Hero: single primary CTA only — downloads live in sticky ▾ */
.bmc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.bmc-actions--solo {
  margin-bottom: 1.75rem;
}


#bmc-viewer-root {
  scroll-margin-top: 4.5rem;
}

.bmc-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.bmc-kicker {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bmc-muted);
  margin: 0 0 0.65rem;
}
.bmc-title {
  font-family: var(--bmc-serif);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.45rem;
}
.bmc-meta {
  color: var(--bmc-muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}
.bmc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.bmc-chip {
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--bmc-chip);
  border: 1px solid var(--bmc-line);
}
.bmc-tagline-card {
  background: var(--bmc-card);
  border: 1px solid var(--bmc-line);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  max-width: 52rem;
  box-shadow: 0 8px 24px rgba(40, 28, 10, 0.05);
}
.bmc-tagline-card .headline {
  font-family: var(--bmc-serif);
  font-size: 1.15rem;
  font-style: italic;
  margin: 0 0 0.4rem;
}
.bmc-tagline-card .hint {
  margin: 0;
  color: var(--bmc-muted);
  font-size: 0.9rem;
}

/* ——— Metric strip ——— */
.bmc-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.bmc-metric {
  background: var(--bmc-card);
  border: 1px solid var(--bmc-line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: left;
}
.bmc-metric .val {
  font-family: var(--bmc-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.2rem;
}
.bmc-metric .lbl {
  font-size: 0.72rem;
  color: var(--bmc-muted);
  font-weight: 500;
}
.bmc-metric a {
  color: var(--bmc-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.68rem;
}
.bmc-metric a:hover { color: var(--bmc-ink); }

/* ——— Toolbar ——— */
.bmc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}
.bmc-toolbar .hint {
  font-size: 0.8rem;
  color: var(--bmc-muted);
  margin-left: 0.25rem;
}
.bmc-grid-hint {
  font-size: 0.82rem;
  color: var(--bmc-muted);
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 252, 247, 0.7);
  border: 1px dashed var(--bmc-line);
  border-radius: 10px;
}

/* ——— Revenue ladder (page-level) ——— */
.bmc-ladder-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--bmc-card);
  border: 1px solid var(--bmc-line);
  border-radius: 14px;
}
.bmc-ladder-strip .ladder-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bmc-muted);
  align-self: center;
  margin-right: 0.35rem;
  min-width: 4.5rem;
}
.bmc-ladder-step {
  flex: 1;
  min-width: 88px;
  background: #f7f1e6;
  border: 1px solid var(--bmc-line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  text-align: center;
  position: relative;
}
.bmc-ladder-step::after {
  content: "→";
  position: absolute;
  right: -0.55rem;
  top: 50%;
  transform: translateY(-50%);
  color: #c9c0b0;
  font-size: 0.85rem;
  z-index: 1;
}
.bmc-ladder-step:last-child::after { display: none; }
.bmc-ladder-step .name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bmc-muted);
}
.bmc-ladder-step .price {
  font-family: var(--bmc-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #15803d;
}
.bmc-ladder-step .note {
  font-size: 0.65rem;
  color: var(--bmc-muted);
  margin-top: 0.15rem;
  line-height: 1.3;
}

/* ——— Osterwalder grid ——— */
.bmc-canvas-wrap {
  position: relative;
  background: var(--bmc-card);
  border: 1px solid var(--bmc-line);
  border-radius: 18px;
  padding: 0.75rem;
  box-shadow: var(--bmc-shadow);
  transition: padding 0.25s ease;
}
.bmc-canvas-wrap.is-expanded {
  position: fixed;
  inset: 0.75rem;
  z-index: 50;
  max-width: none;
  overflow: auto;
  padding: 1rem;
  border-radius: 16px;
  background: var(--bmc-bg);
}
.bmc-canvas-wrap.is-expanded .bmc-grid {
  min-height: calc(100vh - 3rem);
}

.bmc-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: minmax(200px, 1fr) minmax(200px, 1fr) minmax(160px, auto);
  grid-template-areas:
    "kp kp ka ka vp vp vp cr cr cs"
    "kp kp kr kr vp vp vp ch ch cs"
    "cost cost cost cost cost rev rev rev rev rev";
  gap: 0.55rem;
  min-height: 620px;
}

.bmc-cell {
  --accent: #888;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 0.95rem 1rem;
  background: #fffcf7;
  border: 1.5px solid var(--bmc-line);
  border-radius: var(--bmc-radius);
  border-top: 3.5px solid var(--accent);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s;
  overflow: hidden;
  min-height: 0;
}
.bmc-cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--bmc-shadow);
  border-color: color-mix(in srgb, var(--accent) 45%, #cfc5b2);
  background: #fff;
}
.bmc-cell:hover .bmc-cell-cta {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bmc-cell:focus-visible {
  outline: 3px solid var(--bmc-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent), var(--bmc-shadow-sm);
}
.bmc-cell.is-active {
  box-shadow: 0 0 0 2px var(--accent), var(--bmc-shadow-sm);
  background: #fff;
}
.bmc-cell[data-area="kp"] { grid-area: kp; }
.bmc-cell[data-area="ka"] { grid-area: ka; }
.bmc-cell[data-area="kr"] { grid-area: kr; }
.bmc-cell[data-area="vp"] { grid-area: vp; }
.bmc-cell[data-area="cr"] { grid-area: cr; }
.bmc-cell[data-area="ch"] { grid-area: ch; }
.bmc-cell[data-area="cs"] { grid-area: cs; }
.bmc-cell[data-area="cost"] { grid-area: cost; }
.bmc-cell[data-area="rev"] { grid-area: rev; }

.bmc-cell-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bmc-cell-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, #fffcf7);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.bmc-cell-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bmc-cell-title {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bmc-ink);
  line-height: 1.2;
}
.bmc-cell-summary {
  font-size: 0.9375rem; /* ~15px — readable without zoom */
  line-height: 1.4;
  color: #3d3830;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin: 0;
}
.bmc-cell-visual {
  margin-top: auto;
  padding-top: 0.35rem;
}
.bmc-cell-cta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.95;
  margin-top: 0.2rem;
  letter-spacing: 0.01em;
}

/* Visual chips inside cells */
.bmc-v-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.bmc-v-tag {
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 10%, #f7f1e6);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--bmc-line));
  color: #3d3830;
  white-space: nowrap;
}
.bmc-v-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.bmc-v-metric {
  background: #f7f1e6;
  border: 1px solid var(--bmc-line);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  min-width: 3.5rem;
}
.bmc-v-metric .v {
  font-family: var(--bmc-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
}
.bmc-v-metric .l {
  font-size: 0.6rem;
  color: var(--bmc-muted);
  font-weight: 600;
}
.bmc-v-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.bmc-v-flow-step {
  background: #f7f1e6;
  border: 1px solid var(--bmc-line);
  border-radius: 8px;
  padding: 0.28rem 0.45rem;
  text-align: center;
}
.bmc-v-flow-step .l {
  font-size: 0.68rem;
  font-weight: 700;
  display: block;
}
.bmc-v-flow-step .s {
  font-size: 0.58rem;
  color: var(--bmc-muted);
}
.bmc-v-flow-arrow {
  color: #c9c0b0;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.bmc-v-ladder {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
.bmc-v-ladder-item {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: color-mix(in srgb, #15803d 12%, #f7f1e6);
  border: 1px solid color-mix(in srgb, #15803d 25%, var(--bmc-line));
  color: #166534;
}
.bmc-v-ladder-item span {
  font-weight: 500;
  color: var(--bmc-muted);
  margin-left: 0.2rem;
}

/* ——— Mobile accordion ——— */
.bmc-accordion {
  display: none;
  flex-direction: column;
  gap: 0.55rem;
}
.bmc-acc-item {
  --accent: #888;
  background: var(--bmc-card);
  border: 1.5px solid var(--bmc-line);
  border-radius: var(--bmc-radius);
  border-left: 4px solid var(--accent);
  overflow: hidden;
}
.bmc-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  min-height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.bmc-acc-trigger:focus-visible {
  outline: 3px solid var(--bmc-focus);
  outline-offset: -3px;
}
.bmc-acc-trigger .chev {
  margin-left: auto;
  transition: transform 0.2s;
  color: var(--bmc-muted);
}
.bmc-acc-item.is-open .chev { transform: rotate(180deg); }
.bmc-acc-body {
  display: none;
  padding: 0 1rem 1.1rem;
  border-top: 1px solid var(--bmc-line);
}
.bmc-acc-item.is-open .bmc-acc-body { display: block; padding-top: 0.85rem; }
.bmc-acc-summary {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  color: #3d3830;
}

/* ——— Drawer / overlay ——— */
.bmc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.35);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.bmc-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.bmc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--bmc-drawer-w);
  background: var(--bmc-card);
  border-left: 1px solid var(--bmc-line);
  box-shadow: -12px 0 40px rgba(40, 28, 10, 0.15);
  z-index: 70;
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  outline: none;
}
.bmc-drawer.is-open { transform: translateX(0); }
.bmc-drawer-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--bmc-line);
  border-top: 4px solid var(--accent, #888);
}
.bmc-drawer-header > div {
  min-width: 0;
  flex: 1;
}
.bmc-drawer-header .bmc-cell-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.bmc-drawer-header .bmc-cell-icon svg {
  width: 20px;
  height: 20px;
}
.bmc-drawer-title {
  font-family: var(--bmc-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bmc-drawer-sub {
  font-size: 0.78rem;
  color: var(--bmc-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
.bmc-drawer-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--bmc-line);
  background: #f7f1e6;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--bmc-ink);
  flex-shrink: 0;
}
.bmc-drawer-close:hover { background: #efe8da; }
.bmc-drawer-close:focus-visible {
  outline: 3px solid var(--bmc-focus);
  outline-offset: 2px;
}
.bmc-drawer-body {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.15rem 1.25rem 2rem;
  -webkit-overflow-scrolling: touch;
}
.bmc-drawer-section {
  margin-bottom: 1.35rem;
}
.bmc-drawer-section h3 {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bmc-muted);
  margin: 0 0 0.55rem;
}
.bmc-drawer-narrative {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3d3830;
  margin: 0;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--accent, #888) 8%, #f7f1e6);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #888) 18%, var(--bmc-line));
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bmc-drawer-bullets {
  margin: 0;
  padding: 0 0 0 1.15rem;
}
.bmc-drawer-bullets li {
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  line-height: 1.45;
  color: #3d3830;
}
.bmc-connect-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.bmc-connect-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem;
  background: #f7f1e6;
  border: 1px solid var(--bmc-line);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.bmc-connect-item:hover {
  border-color: #cfc5b2;
  background: #fff;
}
.bmc-connect-item:focus-visible {
  outline: 3px solid var(--bmc-focus);
  outline-offset: 2px;
}
.bmc-connect-item .to {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent, #111);
}
.bmc-connect-item .note {
  font-size: 0.82rem;
  color: var(--bmc-muted);
  line-height: 1.35;
}
.bmc-drawer-sources {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bmc-drawer-sources li {
  margin-bottom: 0.4rem;
}
.bmc-drawer-sources a {
  font-size: 0.85rem;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.bmc-drawer-sources a:hover { color: #1e3a8a; }
.bmc-drawer-visual-panel {
  padding: 0.75rem;
  background: #f7f1e6;
  border: 1px solid var(--bmc-line);
  border-radius: 12px;
}

/* Rich ladder in drawer */
.bmc-rich-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bmc-rich-ladder-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 1px solid var(--bmc-line);
  border-radius: 10px;
}
.bmc-rich-ladder-row .rn {
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 4.5rem;
}
.bmc-rich-ladder-row .rp {
  font-family: var(--bmc-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #15803d;
  min-width: 0;
}
.bmc-rich-ladder-row .ru {
  font-size: 0.72rem;
  color: var(--bmc-muted);
}
.bmc-rich-ladder-row .rnote {
  font-size: 0.75rem;
  color: var(--bmc-muted);
  margin-left: auto;
  text-align: right;
  max-width: 45%;
  line-height: 1.3;
}
@media (max-width: 480px) {
  .bmc-rich-ladder-row {
    flex-wrap: wrap;
  }
  .bmc-rich-ladder-row .rnote {
    max-width: 100%;
    margin-left: 0;
    text-align: left;
    flex-basis: 100%;
  }
}

/* ——— Poster fallback ——— */
.bmc-fallback {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--bmc-line);
}
.bmc-fallback h2 {
  font-family: var(--bmc-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.bmc-fallback p {
  color: var(--bmc-muted);
  font-size: 0.9rem;
  margin: 0 0 0.85rem;
  max-width: 40rem;
}
.bmc-poster-thumb {
  display: block;
  max-width: 420px;
  margin-top: 0.25rem;
  border: 1px solid var(--bmc-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--bmc-shadow-sm);
}
.bmc-poster-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.bmc-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid var(--bmc-line);
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--bmc-muted);
  max-width: 44rem;
}
.bmc-disclaimer p {
  margin: 0 0 0.65rem;
}
.bmc-disclaimer p:last-child {
  margin-bottom: 0;
}
.bmc-disclaimer a {
  color: var(--bmc-ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bmc-disclaimer a:hover { opacity: 0.85; }
.bmc-footer {
  border-top: 1px solid var(--bmc-line);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--bmc-muted);
}
.bmc-footer a {
  color: var(--bmc-ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bmc-footer a:hover { opacity: 0.85; }

/* Body lock when drawer/expand open */
body.bmc-lock { overflow: hidden; }

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .bmc-grid { display: none; }
  .bmc-accordion { display: flex; }
  .bmc-canvas-wrap { padding: 0.65rem; }
  .bmc-ladder-step::after { display: none; }
  .bmc-toolbar .hint { display: none; }

  /* Expand is a desktop affordance — accordion is primary on small screens */
  #bmc-expand { display: none !important; }
  .bmc-canvas-wrap.is-expanded {
    position: relative;
    inset: auto;
    z-index: auto;
    max-width: none;
    overflow: visible;
    padding: 0.65rem;
    border-radius: 18px;
    background: var(--bmc-card);
  }

  /* Bottom-sheet drawer (native phone feel) */
  :root { --bmc-drawer-w: 100vw; }
  .bmc-drawer {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: min(92vh, 100%);
    max-height: 92vh;
    border-left: none;
    border-top: 1px solid var(--bmc-line);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 48px rgba(40, 28, 10, 0.2);
    transform: translateY(105%);
  }
  .bmc-drawer.is-open { transform: translateY(0); }
  .bmc-drawer-header {
    padding: 1.15rem 1rem 0.75rem;
    position: relative;
  }
  .bmc-drawer-header::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 4px;
    border-radius: 999px;
    background: #d2c8b6;
  }
  .bmc-acc-open {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
  }
  .bmc-grid-hint {
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .bmc-main { padding: 1.25rem 1rem 3rem; }
  .bmc-nav {
    padding: 0.55rem 0.75rem;
    flex-wrap: nowrap;
    gap: 0.4rem;
    font-size: 0.8rem;
  }
  .bmc-metrics { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .bmc-ladder-strip { flex-direction: column; }
  .bmc-ladder-step { min-width: 0; }
  .bmc-drawer-header { padding: 0.75rem 1rem 0.65rem; }
  .bmc-drawer-body { padding: 0.85rem 1rem 2rem; }
  .bmc-drawer-title { font-size: 1.2rem; }
  .bmc-drawer-bullets li,
  .bmc-connect-item .note,
  .bmc-drawer-sources a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .bmc-nav .sep { display: none; }
  .bmc-nav-company { max-width: 38vw; font-size: 0.82rem; }
  .bmc-nav-actions { margin-left: auto; width: auto; }
  .bmc-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .bmc-tagline-card { padding: 1rem 1.1rem; }
  .bmc-actions--solo .bmc-btn-primary,
  .bmc-actions .bmc-btn-primary {
    min-height: 48px;
    padding: 0.75rem 1.15rem;
    width: 100%;
    justify-content: center;
  }
  .bmc-btn { min-height: 44px; }
  .bmc-poster-thumb { max-width: 100%; }
  .bmc-disclaimer {
    font-size: 0.9rem;
    line-height: 1.55;
    padding: 0.95rem 1rem;
    max-width: none;
  }
  .bmc-footer {
    font-size: 0.82rem;
    padding: 1.25rem 1rem;
  }

  /* Downloads menu: keep on-screen, scroll if needed */
  .bmc-dd { position: static; }
  .bmc-dd-menu {
    position: absolute;
    right: 0.5rem;
    left: auto;
    top: calc(100% - 0.15rem);
    min-width: 12.5rem;
    max-width: min(18rem, calc(100vw - 1rem));
    max-height: min(70vh, 22rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 90;
  }
  .bmc-dd-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
  }
}



@media (min-width: 961px) and (max-width: 1100px) {
  .bmc-cell-summary {
    font-size: 0.875rem;
    -webkit-line-clamp: 4;
  }
  .bmc-grid {
    min-height: 560px;
    grid-template-rows: minmax(180px, 1fr) minmax(180px, 1fr) minmax(140px, auto);
  }
}

/* Print: show grid, hide chrome interactions */
@media print {
  .bmc-top, .bmc-toolbar, .bmc-overlay, .bmc-drawer, .bmc-nav-actions, .bmc-skip, .bmc-actions { display: none !important; }
  .bmc-canvas-wrap { box-shadow: none; }
  .bmc-grid { display: grid !important; break-inside: avoid; }
  .bmc-accordion { display: none !important; }
  .bmc-cell { break-inside: avoid; box-shadow: none !important; transform: none !important; }
}

/* Fix (2026-10-16): narrow one-column blocks (Customer Segments, 1/10 of the grid) overflowed their cell at
   1024–1440px because nowrap tags and flex children kept their intrinsic width. Let them shrink and wrap. */
.bmc-cell > *, .bmc-cell-head, .bmc-cell-visual, .bmc-v-tags { min-width: 0; max-width: 100%; }
.bmc-cell-title { min-width: 0; overflow-wrap: anywhere; }
.bmc-v-tag { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
