/* Case-study additions to the Maven Technologies design system (style.css).
   Uses the same :root variables, so re-branding style.css re-brands these pages too. */

.cs-snapshot { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cs-snapshot strong { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.cs-snapshot span { color: var(--text-muted); font-size: .95rem; }

.cs-two { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cs-two .card:hover { border-color: var(--border); background: var(--surface); }
.cs-list { margin: 0; padding-left: 1.1em; color: var(--text-muted); }
.cs-list li { margin-bottom: .55em; }
.cs-list li::marker { color: var(--accent); }

/* Process strip */
.flow { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); counter-reset: fl; }
.flow .step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 16px 16px; position: relative; counter-increment: fl; }
.flow .step::before { content: counter(fl); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 .85rem var(--mono); margin-bottom: 10px; }
.flow .step h4 { margin: 0 0 .25em; font-size: 1rem; }
.flow .step p { margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.5; }

/* Rendered "screens": light UI in a window frame so they read as real product screens on the dark page */
.render-grid { display: grid; gap: 28px; }
.render-grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.render figcaption { color: var(--text-muted); font-size: .88rem; margin-top: 12px; }
.render figcaption b { color: var(--text); }
.mock { background: #fff; color: #1f2937; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 10px 34px rgba(0, 0, 0, .4); font-size: 13px; line-height: 1.45; text-align: left; }
.mock-bar { background: #e6eaf1; padding: 8px 12px; display: flex; align-items: center; gap: 6px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c2cad8; display: block; }
.mock-bar .url { flex: 1; margin-left: 10px; background: #fff; border-radius: 6px; padding: 2px 10px; color: #6b7280; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { padding: 16px 18px; }
.mock h5 { margin: 0 0 4px; font-size: 15px; color: #16324f; letter-spacing: 0; }
.mock .sub { color: #6b7280; font-size: 12px; margin-bottom: 12px; }
.mock table { width: 100%; border-collapse: collapse; }
.mock th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; border-bottom: 2px solid #e5e7eb; padding: 6px 8px; }
.mock td { padding: 8px; border-bottom: 1px solid #eef0f4; vertical-align: middle; }
.mock .mfield, .mock .pill { white-space: nowrap; }
.mock td.num, .mock th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.warn { background: #fef3c7; color: #92400e; }
.pill.bad { background: #fee2e2; color: #991b1b; }
.pill.info { background: #dbeafe; color: #1e40af; }
.pill.mute { background: #e5e7eb; color: #374151; }
.mbtn { display: inline-block; padding: 6px 14px; border-radius: 6px; font-weight: 600; font-size: 12px; background: #1b3a5c; color: #fff; }
.mbtn.alt { background: #fff; color: #1b3a5c; border: 1px solid #b6c2d4; }
.mbtn.go { background: #15803d; }
.mbtn.stop { background: #b91c1c; }
.mfield { border: 1px solid #c9d2e0; border-radius: 6px; padding: 6px 10px; background: #fff; color: #374151; min-height: 30px; }
.mfield.filled { background: #f8fafc; }
.mtoolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.mtoolbar .mfield { min-width: 120px; }
.cn { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #f5a524; color: #1a1203; font: 700 10.5px system-ui; margin-left: 4px; vertical-align: 1px; }
.legend-n { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.legend-n li { display: grid; grid-template-columns: 24px 1fr; gap: 6px; color: var(--text-muted); font-size: .9rem; }
.legend-n .cn { margin: 0; width: 20px; height: 20px; font-size: 11.5px; }

/* vendor-portal look (navy header) */
.vp-head { background: #1b3a5c; color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.vp-head b { font-size: 15px; }
.vp-head span { font-size: 11.5px; opacity: .8; }

/* handheld frames */
.phones { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.phone { width: 232px; background: #0b1324; border: 7px solid #1f2a44; border-radius: 28px; padding: 18px 14px 16px; color: #e8edf6; font-size: 12px; min-height: 400px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 34px rgba(0, 0, 0, .45); }
.phone h5 { margin: 0; font-size: 14px; color: #fff; }
.phone .hint { color: #9fb0cc; font-size: 11px; }
.phone .scanbox { border: 2px dashed #f5a524; border-radius: 10px; padding: 14px 10px; text-align: center; color: #f5a524; font-weight: 600; }
.phone .row { display: flex; justify-content: space-between; gap: 8px; background: #16223a; border: 1px solid #263654; border-radius: 8px; padding: 8px 10px; }
.phone .row small { color: #9fb0cc; display: block; font-size: 10.5px; }
.phone .row.done { border-color: #2fbf71; }
.phone .row.next { border-color: #f5a524; background: #1c2b48; }
.phone .big { font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.phone .ok { color: #4ade80; font-weight: 700; }
.phone .btn-lg { margin-top: auto; text-align: center; background: #f5a524; color: #1a1203; font-weight: 700; border-radius: 8px; padding: 10px; }
.phone .btn-lg.green { background: #22c55e; color: #052e13; }

/* floor board tiles */
.board { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile { border-radius: 8px; padding: 10px 12px; color: #fff; font-size: 12px; line-height: 1.4; }
.tile b { display: block; font-size: 13px; }
.tile .pc { float: right; font-weight: 700; background: rgba(0, 0, 0, .22); padding: 1px 8px; border-radius: 999px; }
.tile.g { background: #2ebd59; }
.tile.y { background: #f2c94c; color: #1a1a1a; }
.tile.y .pc { background: rgba(0, 0, 0, .12); }
.tile.r { background: #cc2626; }
.tile.gr { background: #888; }
.tile.bl { background: #2563eb; }
.wc-title { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6b7280; margin: 14px 0 8px; }
.wc-title:first-child { margin-top: 0; }
.board-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: #4b5563; margin-bottom: 12px; }
.board-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* small bar charts (svg / css) */
.hbar { display: grid; grid-template-columns: 110px 1fr 46px; align-items: center; gap: 10px; margin: 7px 0; font-size: 12px; }
.hbar .track { background: #e5e7eb; border-radius: 6px; height: 14px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 6px; background: #2563eb; }
.hbar .fill.hi { background: #16a34a; }
.hbar .fill.lo { background: #d97706; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.kpi { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
.kpi div { background: #f3f6fb; border: 1px solid #e1e7f0; border-radius: 8px; padding: 8px 10px; }
.kpi strong { display: block; font-size: 19px; color: #16324f; }
.kpi span { font-size: 11px; color: #6b7280; }

.cs-note { color: var(--text-muted); font-size: .85rem; }
.print-only { display: none; }
.trio { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.cs-index-card h3 a { color: var(--text); }
.cs-index-card .more { margin-top: 12px; display: inline-block; }

@media print {
  @page { size: Letter; margin: 0; }
  body { padding: 0 10mm; }
  html, body { background: #0b1220 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .skip-link, .site-footer, .cta-band, .btn-row.web-only { display: none !important; }
  .print-only { display: block; }
  .section { padding: 26px 0; }
  .page-hero { padding: 28px 0 22px; }
  .mock, .render, .flow .step, .phone, .tile, .steps li { break-inside: avoid; page-break-inside: avoid; }
  h2, h3, .eyebrow, .section-head { break-after: avoid; page-break-after: avoid; }
  .keep { break-inside: avoid; page-break-inside: avoid; }
  .pg-break { break-before: page; page-break-before: always; }
  .card:hover { border-color: var(--border); background: var(--surface); }
  .mock, .phone { box-shadow: none; }
  .print-brand { display: flex !important; justify-content: space-between; align-items: center; padding: 0 0 14px; margin-bottom: 4px; border-bottom: 1px solid var(--border); font-weight: 700; }
  .print-brand span { color: var(--text-muted); font: 500 .8rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  .print-foot { display: block !important; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .9rem; }
}
.print-brand, .print-foot { display: none; }

/* chat-style screen (SQL assistant) */
.bubble { border-radius: 12px; padding: 9px 13px; margin: 0 0 10px; max-width: 88%; }
.bubble.user { background: #e0ebff; color: #1e3a8a; margin-left: auto; }
.bubble.ai { background: #f3f6fb; border: 1px solid #e1e7f0; }
.mock pre.sql { background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 10px 12px; margin: 8px 0 12px; font: 11px/1.55 var(--mono); white-space: pre-wrap; overflow: hidden; }
.mock pre.sql b { color: #7cc4ff; font-weight: 600; }
.mock .expander { font-size: 12px; color: #4b5563; margin-bottom: 4px; }
.lib { display: grid; gap: 8px; }
.lib div { display: flex; gap: 10px; align-items: flex-start; background: #f8fafc; border: 1px solid #e1e7f0; border-radius: 8px; padding: 9px 11px; }
.lib div b { display: block; color: #16324f; }
.lib div span.t { color: #6b7280; font-size: 12px; }
.lib .chk { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7; color: #166534; display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 1px; }
