
/* ============================================================
   Genesis Business Solutions — site stylesheet
   Design tokens
   ============================================================ */
:root {
  /* Palette sourced directly from the Genesis Business Solutions
     company profile document (exact colours sampled from the
     brand's own DOCX — heading/accent red, deep shade, ink, and
     the soft panel tint used behind the Vision/Mission callouts). */
  --maroon: #9a1504;       /* primary brand red */
  --maroon-deep: #5e0d03;  /* deep shade, used for gradients/dark sections */
  --maroon-bright: #b8341c;/* lighter red for hover states */
  --dark: #2a0805;         /* near-black red, for dark section backgrounds */
  --dark-2: #180402;       /* deepest shade */
  --white: #ffffff;
  --cream: #ffffff;        /* page background — the profile itself is white-paged */
  --cream-warm: #fbf4f2;   /* soft pink-cream panel tint, exact from the doc */
  --ink: #1a1a1a;
  --ink-soft: #4d4d4d;
  --ink-faint: #948c82;
  --rose: #c9a79c;         /* soft accent/border tone from the doc */
  --gold: #9a1504;         /* legacy alias kept for component compatibility */
  --gold-soft: #c9a79c;
  --charcoal: #2a0805;
  --charcoal-2: #180402;
  --line: rgba(154, 21, 4, 0.16);
  --line-dark: rgba(201, 167, 156, 0.35);
  --shadow: 0 20px 60px rgba(42, 8, 5, 0.14);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body {
  width: 100%;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: inherit; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
}
.eyebrow.on-dark { color: var(--gold-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--maroon);
  color: var(--white);
}
.btn-gold:hover { background: var(--maroon-bright); }
.btn-outline-dark {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-maroon {
  border-color: var(--line);
  color: var(--maroon);
}
.btn-outline-maroon:hover { border-color: var(--maroon); background: rgba(154,21,4,0.05); }

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head h2 {
  font-size: 34px;
  line-height: 1.2;
  margin-top: 14px;
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 560px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- reveal-on-scroll ----------
   Progressive enhancement: content is visible by default. Only when
   the early head-script confirms JS is running does html gain
   .js-anim, which arms the hidden-until-revealed state. This means
   disabled/broken/slow JS never hides real content. */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-anim .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links li { margin-left: 34px; }
.nav-links li:first-child { margin-left: 0; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--maroon); }
.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 859px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 8px 32px 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ============================================================
   Hero — light, document-led layout: copy on the left, the
   profile's own handshake photograph framed on the right,
   matching the cover of the company profile itself.
   ============================================================ */
.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
  padding: 152px 0 100px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-copy { flex: 1 1 460px; min-width: 320px; }
.hero h1 {
  font-size: 48px;
  line-height: 1.14;
  color: var(--ink);
  margin-top: 20px;
  font-weight: 500;
}
.hero h1 em {
  font-style: italic;
  color: var(--maroon);
}
.hero p.lead {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 540px;
}
.hero-ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
}
.hero-ctas .btn { margin: 8px; }
.hero-photo {
  flex: 1 1 460px;
  min-width: 320px;
  max-width: 480px;
  margin: 0 auto;
}
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .hero { padding: 130px 0 70px; }
  .hero h1 { font-size: 34px; }
  .hero-inner { flex-direction: column-reverse; gap: 36px; }
  .hero-photo, .hero-copy { flex-basis: auto; width: 100%; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 27px; }
  .hero p.lead { font-size: 15.5px; }
}

/* ============================================================
   Overview strip
   ============================================================ */
.strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
}
.strip-item {
  flex: 1 1 0;
  min-width: 260px;
  padding: 44px 32px;
  border-left: 1px solid var(--line);
}
.strip-item:first-child { border-left: none; }
.strip-item .num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--maroon);
  font-size: 15px;
  margin-bottom: 10px;
  display: block;
}
.strip-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.strip-item p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
}
@media (max-width: 760px) {
  .strip-item { border-left: none; border-top: 1px solid var(--line); }
  .strip-item:first-child { border-top: none; }
}

/* ============================================================
   Expertise
   ============================================================ */
.expertise { padding: 120px 0; }
.card-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}
.exp-card {
  flex: 1 1 300px;
  margin: 12px;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.exp-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(122,31,31,0.35);
}
.exp-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(154,21,4,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.exp-icon svg { width: 20px; height: 20px; stroke: var(--maroon); }
.exp-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.exp-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 16px;
}
.tag-row { display: flex; flex-wrap: wrap; margin: -4px; }
.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--maroon);
  background: rgba(122,31,31,0.06);
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: 0.01em;
  margin: 4px;
}

/* ============================================================
   Approach (process)
   ============================================================ */
.approach {
  background: var(--white);
  padding: 120px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  align-items: stretch;
}
.process-step {
  flex: 1 1 170px;
  min-width: 150px;
  position: relative;
  background: var(--maroon);
  color: var(--white);
  border-radius: 8px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.process-step:nth-child(even) { background: var(--maroon-deep); }
.process-step .step-num {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.process-step h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: 14.5px;
  line-height: 1.3;
  margin-bottom: 0;
}
.process-step .arrow {
  display: none;
}
@media (min-width: 901px) {
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -11px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--ink-faint);
    border-right: 2px solid var(--ink-faint);
    transform: translateY(-50%) rotate(45deg);
    z-index: 3;
  }
}

.roles { margin-top: 64px; }
.roles h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 18px;
}
.role-tags { display: flex; flex-wrap: wrap; margin: -5px; }
.role-tag {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 20px;
  margin: 5px;
}

/* ============================================================
   Partnership + Geographic focus
   ============================================================ */
.dual { padding: 120px 0; }
.dual-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}
.dual-col { flex: 1 1 400px; min-width: 300px; }
.dual-col .eyebrow { display: block; margin-bottom: 14px; }
.dual-col h3 {
  font-size: 26px;
  margin-bottom: 16px;
}
.dual-col p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 20px;
}
.crit-list { list-style: none; margin: 0; padding: 0; }
.crit-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
}
.crit-list li:last-child { border-bottom: 1px solid var(--line); }
.crit-list li .dot { width: 5px; height: 5px; margin-right: 10px; border-radius: 50%; background: var(--maroon); flex-shrink: 0; }

.network {
  margin-top: 24px;
  border-radius: 6px;
  background: var(--charcoal);
  padding: 30px;
}
.network svg { width: 100%; height: auto; }

/* ============================================================
   Vision & Mission — bright, on-brand callout panels (matching
   the soft pink panel colour used for callouts in the company
   profile itself), each with a watermark icon that actually fits
   its content: a star for Vision, a target for Mission.
   ============================================================ */
.vm {
  position: relative;
  background: var(--white);
  padding: 120px 0;
  overflow: hidden;
}
.vm-inner { position: relative; z-index: 2; }
.vm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
}
.vm-block {
  flex: 1 1 380px;
  min-width: 300px;
  position: relative;
  background: var(--white);
  border-left: 4px solid var(--maroon);
  border-radius: 4px;
  padding: 40px 36px;
  overflow: hidden;
}
.vm-icon {
  background: rgba(154,21,4,0.08);
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}
.vm-icon svg { stroke: var(--maroon); }
.vm-block .eyebrow { margin-bottom: 14px; display: block; position: relative; z-index: 2; }
.vm-block p.big {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  position: relative;
  z-index: 2;
}
.vm-watermark {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 190px;
  height: 190px;
  color: var(--maroon);
  opacity: 0.07;
  z-index: 1;
  pointer-events: none;
}
.vm-divider { display: none; }
@media (max-width: 760px) {
  .vm-block { padding: 32px 26px; }
}

/* ============================================================
   Footer / CTA
   ============================================================ */
.cta-band {
  background: linear-gradient(120deg, var(--maroon-deep), var(--maroon));
  color: var(--cream);
  padding: 90px 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--cream);
  font-size: 32px;
  max-width: 620px;
  margin: 14px auto 0;
}
.cta-band .eyebrow.on-dark { justify-content: center; }
.cta-band-ctas {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band-ctas .btn { margin: 8px; }

.footer {
  background: var(--cream);
  padding: 64px 0 28px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}
.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--maroon); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ============================================================
   Mobile safety net — guarantee no horizontal overflow / squeeze
   regardless of how a given engine resolves flex-wrap + min-width.
   Below this breakpoint every multi-column flex row becomes an
   explicit single column with min-width reset to 0.
   ============================================================ */
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }

  .strip-inner, .card-grid, .process, .dual-inner, .vm-grid, .footer-top {
    flex-direction: column;
  }
  .strip-item, .exp-card, .process-step, .dual-col, .vm-block {
    min-width: 0;
    width: 100%;
    flex-basis: auto;
    margin-left: 0;
    margin-right: 0;
  }
  .exp-card { margin-left: 0; margin-right: 0; }
  .card-grid { margin: 0; }
  .process-step { margin-bottom: 26px; padding-right: 0; }
  .process-step .arrow { display: none; }
  .strip-item { border-left: none; border-top: 1px solid var(--line); padding: 32px 0; }
  .strip-item:first-child { border-top: none; }
  .dual-inner { gap: 48px; }
  .vm-grid { gap: 36px; }

  .section-head h2 { font-size: 26px; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 15.5px; }
  .cta-band h2 { font-size: 24px; }
  .footer-top { gap: 32px; }
}

/* ============================================================
   Investor Relations — page-specific sections
   ============================================================ */
.ir-hero {
  background: var(--white);
  padding: 150px 0 70px;
}
.ir-hero .eyebrow { display: block; margin-bottom: 14px; }
.ir-hero h1 {
  font-size: 40px;
  line-height: 1.2;
  color: var(--ink);
}
.ir-hero p.lead {
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
}

.ir-section { padding: 80px 0; border-top: 1px solid var(--line); }
.ir-section.alt { background: var(--white); }

.ir-two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 8px;
}
.ir-col { flex: 1 1 420px; min-width: 300px; }

.card-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}

/* ---- Scheduler ---- */
.scheduler-embed {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 28px;
  background: var(--cream-warm);
  min-height: 200px;
}
.scheduler-embed p { color: var(--ink-soft); font-size: 14px; margin: 0 0 10px; }
.scheduler-embed code {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--maroon);
  overflow-x: auto;
  white-space: pre;
}
.platform-row { display: flex; flex-wrap: wrap; margin: 18px -6px 0; }
.platform-row .tag { margin: 6px; font-size: 12.5px; }

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  box-sizing: border-box;
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--maroon);
}
.form-row-2 { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row-2 .form-field { flex: 1 1 200px; }
.form-actions { display: flex; flex-wrap: wrap; margin: 10px -6px 0; }
.form-actions .btn { margin: 6px; }
.form-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; line-height: 1.6; }

/* ---- NDA / NCA generator ---- */
.nda-preview {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink);
  max-height: 560px;
  overflow-y: auto;
  white-space: pre-wrap;
  display: none;
}
.nda-preview.show { display: block; }
.nda-preview h4 {
  font-family: Georgia, serif;
  font-size: 15px;
  margin: 18px 0 6px;
}
.disclaimer {
  font-size: 12.5px;
  color: var(--ink-faint);
  background: var(--cream-warm);
  border-left: 3px solid var(--maroon);
  padding: 12px 16px;
  margin-top: 18px;
  line-height: 1.6;
}

@media print {
  body * { visibility: hidden; }
  .nda-preview, .nda-preview * { visibility: visible; }
  .nda-preview {
    position: absolute; left: 0; top: 0; width: 100%;
    max-height: none; overflow: visible; border: none; padding: 0;
  }
}

@media (max-width: 760px) {
  .ir-hero { padding: 120px 0 50px; }
  .ir-hero h1 { font-size: 28px; }
  .ir-two-col { flex-direction: column; }
  .card-panel { padding: 22px; }
  .nda-preview { padding: 24px; }
}

/* ============================================================
   Site-wide chat widget ("Ask Genesis")
   ============================================================ */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(42,8,5,0.32);
  z-index: 300;
  transition: transform 0.25s ease, background 0.25s ease;
}
.chat-fab:hover { background: var(--maroon-bright); transform: translateY(-2px); }
.chat-fab svg { width: 26px; height: 26px; }

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 340px;
  max-width: calc(100vw - 44px);
  max-height: 480px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(20,10,10,0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 300;
  border: 1px solid var(--line);
}
.chat-panel.open { display: flex; }
.chat-head {
  background: var(--maroon);
  color: var(--white);
  padding: 16px 18px;
  font-family: 'Inter', sans-serif;
}
.chat-head .t1 { font-weight: 700; font-size: 14.5px; }
.chat-head .t2 { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--cream-warm);
}
.chat-msg {
  max-width: 84%;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 9px 12px;
  border-radius: 10px;
}
.chat-msg.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--maroon);
  color: #fff;
}
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 92%; }
.chat-chip {
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  border: 1px solid var(--maroon);
  color: var(--maroon);
  padding: 6px 10px;
  border-radius: 16px;
  cursor: pointer;
}
.chat-chip:hover { background: var(--maroon); color: #fff; }
.chat-input-row {
  display: flex;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-input-row input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  outline: none;
}
.chat-input-row button {
  border: none;
  background: var(--maroon);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
}
.chat-input-row button:hover { background: var(--maroon-bright); }
@media (max-width: 420px) {
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
  .chat-fab { right: 16px; bottom: 16px; }
}


/* ============================================================
   Stakeholders Portal — page-specific sections
   ============================================================ */

/* ---- Portal hero stat strip ---- */
.portal-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.portal-badge {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--maroon);
  background: rgba(154,21,4,0.06);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 20px;
}

/* ---- Stage pills (A–E), shared by access status + data room + dashboard ---- */
.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.stage-a { background: rgba(148,140,130,0.14); color: var(--ink-soft); }
.stage-b { background: rgba(201,167,156,0.28); color: var(--maroon-deep); }
.stage-c { background: rgba(154,21,4,0.10); color: var(--maroon); }
.stage-d { background: rgba(154,21,4,0.18); color: var(--maroon); }
.stage-e { background: var(--maroon); color: var(--white); }

.status-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-faint);
}
.status-lock svg { width: 12px; height: 12px; }
.status-open { color: var(--maroon); }

/* ---- Access / qualification panel ---- */
.access-status {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--cream-warm);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 28px;
}
.access-status .dot-lg {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--maroon); margin-top: 6px; flex-shrink: 0;
}
.access-status h4 { font-size: 15.5px; margin-bottom: 4px; }
.access-status p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

.stage-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 6px;
}
.stage-track-item {
  flex: 1 1 120px;
  min-width: 110px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 14px 16px;
}
.stage-track-item .stage-pill { margin-bottom: 8px; }
.stage-track-item h5 { font-size: 13px; margin-bottom: 4px; font-family: 'Inter', sans-serif; font-weight: 700; }
.stage-track-item p { font-size: 12px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---- Data room index ---- */
.dataroom-list { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.dataroom-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}
.dataroom-row:first-child { border-top: none; }
.dataroom-row .dr-stage { flex: 0 0 72px; }
.dataroom-row .dr-main { flex: 1 1 auto; min-width: 0; }
.dataroom-row .dr-main h5 { font-size: 14.5px; margin-bottom: 3px; }
.dataroom-row .dr-main p { font-size: 13px; color: var(--ink-soft); margin: 0; }
.dataroom-row .dr-status { flex: 0 0 auto; text-align: right; }
.dataroom-row .dr-request {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
  white-space: nowrap;
}
.dataroom-row .dr-request:hover { text-decoration: underline; }
@media (max-width: 680px) {
  .dataroom-row { flex-wrap: wrap; }
  .dataroom-row .dr-status { text-align: left; flex-basis: 100%; }
}

/* ---- Dashboard / report template ---- */
.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: -8px 0 20px;
}
.dash-toolbar .btn { margin: 0; padding: 11px 20px; font-size: 13px; }

.report-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
}
@media (max-width: 680px) { .report-sheet { padding: 24px; } }

.report-head-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .report-head-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .report-head-grid { grid-template-columns: 1fr; } }
.report-field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.report-field input, .report-field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: 'Fraunces', serif;
  font-size: 15px;
  color: var(--ink);
  padding: 4px 2px 7px;
}
.report-field input:focus, .report-field select:focus { outline: none; border-bottom-color: var(--maroon); }

.kpi-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.kpi-card {
  flex: 1 1 150px;
  min-width: 140px;
  background: var(--cream-warm);
  border-radius: 6px;
  padding: 18px 18px 16px;
}
.kpi-card .kpi-num {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--maroon);
  font-weight: 500;
  line-height: 1;
  border: none;
  background: transparent;
  width: 100%;
  padding: 0;
  margin-bottom: 6px;
}
.kpi-card .kpi-num:focus { outline: none; }
.kpi-card .kpi-label {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
}
.kpi-card select.kpi-num { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; }

.report-block { margin-bottom: 34px; }
.report-block h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--maroon);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 14px;
}

.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: flex; align-items: center; gap: 12px; }
.funnel-row .fr-label {
  flex: 0 0 118px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.funnel-row .fr-bar-wrap { flex: 1 1 auto; background: var(--cream-warm); border-radius: 4px; overflow: hidden; height: 26px; }
.funnel-row .fr-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--maroon-deep), var(--maroon));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  transition: width 0.4s var(--ease);
  min-width: 26px;
  box-sizing: border-box;
}
.funnel-row .fr-input {
  flex: 0 0 52px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  text-align: center;
}

.pipeline-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table.pipeline-table { width: 100%; border-collapse: collapse; min-width: 760px; }
table.pipeline-table th {
  background: var(--cream-warm);
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.pipeline-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.pipeline-table tr:last-child td { border-bottom: none; }
table.pipeline-table input, table.pipeline-table select {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink);
  padding: 8px 8px;
  border-radius: 4px;
  box-sizing: border-box;
}
table.pipeline-table input:focus, table.pipeline-table select:focus {
  outline: none; border-color: var(--line); background: var(--cream-warm);
}
table.pipeline-table .row-del {
  border: none;
  background: none;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 6px;
}
table.pipeline-table .row-del:hover { color: var(--maroon); }
.pipeline-add {
  margin-top: 14px;
}

.report-textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream-warm);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--ink);
  padding: 14px 16px;
  resize: vertical;
  box-sizing: border-box;
}
.report-textarea:focus { outline: none; border-color: var(--maroon); }

.milestone-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.milestone-item {
  flex: 1 1 190px;
  min-width: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
}
.milestone-item label { font-size: 12.5px; font-weight: 600; color: var(--ink); font-family: 'Inter', sans-serif; }
.milestone-item input, .milestone-item select {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  width: 78px;
  text-align: center;
}
.milestone-item select { width: auto; text-align: left; }

.dash-savenote { font-size: 12px; color: var(--ink-faint); margin-top: 16px; }
.dash-savenote #saveFlash { color: var(--maroon); font-weight: 600; }

@media print {
  body * { visibility: hidden; }
  .report-sheet, .report-sheet * { visibility: visible; }
  .report-sheet {
    position: absolute; left: 0; top: 0; width: 100%;
    border: none; padding: 0;
  }
  .row-del, .pipeline-add, .dash-toolbar { display: none !important; }
}

@media (max-width: 760px) {
  .dataroom-row { padding: 14px 16px; }
  .report-sheet { padding: 26px 18px; }
}
