/* ============================================================
   glossary.css — MergerDomo M&A Glossary Page
   Fully aligned with seller.css / about.css design system.
   Depends on: Bootstrap 5.3, Bootstrap Icons,
               Roboto via Google Fonts,
               mergerdomo.com/v3/css/custom.css
   ============================================================ */

/* ─────────────────────────────────────────
   ROOT VARIABLES — exact from seller.css
───────────────────────────────────────── */
:root {
  --md-blue:        #2d6cdf;
  --md-blue-dark:   #1a4fad;
  --md-blue-light:  #eef4ff;
  --md-blue-mid:    #b8d0f8;
  --md-navy:        #0d1b4c;
  --md-yellow:      #ffc107;
  --md-yellow-dark: #e6ac00;
  --md-gray-50:     #f8fafc;
  --md-gray-100:    #f1f5f9;
  --md-gray-200:    #e2e8f0;
  --md-gray-400:    #94a3b8;
  --md-gray-600:    #6b7280;
  --md-gray-800:    #1e293b;
  --md-text:        #111827;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --shadow-sm:      0 1px 4px rgba(0,0,0,.06);
  --shadow-card:    0 2px 12px rgba(0,0,0,.07);
  --shadow-card-lg: 0 8px 28px rgba(0,0,0,.09);
  --shadow-blue:    0 4px 20px rgba(45,108,223,.18);
  --transition:     0.18s ease;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none !important; color: inherit; }
ul { list-style: none; padding-left: 0; }

.seller-page .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.glossary-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.glossary-hero-visual img {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ─────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-animate="fade-left"] { transform: translateX(24px); }
[data-animate].animated    { opacity: 1; transform: none; }

/* ─────────────────────────────────────────
   ANNOUNCEMENT BAR
───────────────────────────────────────── */
.announcement-bar {
  background: #ffc107;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
}
.announcement-bar .divider { margin: 0 10px; color: rgba(0,0,0,0.5); }
.announcement-bar .cta-link { font-weight: 600; color: #000; }
.announcement-bar .cta-link:hover { text-decoration: underline !important; }

/* ─────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────── */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid rgba(13,27,76,.06);
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0;
  position: relative;
  z-index: 2;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
.breadcrumb a { color: #7f8aa3; transition: color .2s ease; }
.breadcrumb a:hover { color: var(--md-blue); }
.bc-sep { color: #c5cede; font-size: 11px; display: flex; align-items: center; }
.bc-current { color: var(--md-blue); font-weight: 700; }

/* ─────────────────────────────────────────
   SECTION HEADING HELPERS
───────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--md-blue);
  background: var(--md-blue-light);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease,
              transform .2s ease, box-shadow .25s ease;
  white-space: nowrap;
  text-decoration: none !important;
  border: none;
}
.btn-primary {
  background: var(--md-blue) !important;
  color: #fff !important;
  padding: 13px 24px;
  box-shadow: 0 4px 14px rgba(45,108,223,.14);
}
.btn-primary:hover {
  background: var(--md-blue-dark) !important;
  transform: translateY(-1px);
}
.btn-cta-primary {
  background: var(--md-yellow) !important;
  color: var(--md-navy) !important;
  padding: 14px 26px;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,193,7,.3);
  border: none !important;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none !important;
  width: 100%;
  justify-content: center;
}
.btn-cta-primary:hover {
  background: var(--md-yellow-dark) !important;
  transform: translateY(-1px);
}
.btn-cta-outline {
  background: transparent !important;
  color: rgba(255,255,255,.9) !important;
  border: 1.5px solid rgba(255,255,255,.35) !important;
  padding: 14px 22px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none !important;
  width: 100%;
}
.btn-cta-outline:hover {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.7) !important;
}

/* ─────────────────────────────────────────
   HERO — mirrors seller/about hero pattern
───────────────────────────────────────── */
.gl-hero {
  background: #fff;
  padding: 10px 0 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 110% 0%, rgba(45,108,223,.06) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at -10% 80%, rgba(45,108,223,.04) 0%, transparent 60%);
  pointer-events: none;
}
.gl-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 60px;
}
.hero-h1 {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  color: var(--md-navy);
  line-height: 1.13;
  margin-bottom: 18px;
  letter-spacing: -.025em;
}
.hero-sub {
  font-size: 15.5px;
  color: var(--md-gray-600);
  line-height: 1.65;
  max-width: 470px;
  margin-bottom: 28px;
}

/* Hero stats row */
.gl-hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.gl-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gl-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--md-blue);
  letter-spacing: -.03em;
  line-height: 1;
}
.gl-stat-label {
  font-size: 11px;
  color: var(--md-gray-600);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}

/* Hero visual */
.gl-hero-visual { position: relative; }
.gl-hero-card-stack { position: relative; height: 320px; overflow: hidden; }
.hero-img-placeholder {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card-lg);
  width: 100%;
  height: 260px;
  position: absolute;
  top: 30px; left: 0; right: 0;
}
.hero-svg { width: 100%; height: 100%; object-fit: cover; }
.hcard {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-lg);
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  border: 1px solid var(--md-blue-light);
  animation: float-card 4s ease-in-out infinite;
}
.hcard-1 { top: 0; left: -16px; animation-delay: 0s; }
.hcard-2 { bottom: 56px; right: -12px; animation-delay: 1.3s; }
.hcard-3 { top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: .65s; z-index: 9; animation-name: float-card-center; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes float-card-center {
  0%, 100% { transform: translate(-50%,-50%); }
  50% { transform: translate(-50%, calc(-50% - 6px)); }
}
.hcard-icon  { font-size: 20px; }
.hcard-label { font-size: 10.5px; color: var(--md-gray-600); font-weight: 500; }
.hcard-val   { font-size: 13px; font-weight: 700; color: var(--md-navy); }

/* ─────────────────────────────────────────
   SEARCH + CATEGORY TOOLBAR
───────────────────────────────────────── */
.gl-toolbar-wrap {
  background: var(--md-gray-50);
  border-top: 1px solid var(--md-gray-200);
  border-bottom: 1px solid var(--md-gray-200);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.gl-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Search input */
.gl-search-wrap {
  position: relative;
}
.gl-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--md-blue);
  pointer-events: none;
}
.gl-search-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid var(--md-gray-200);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: 'Roboto', sans-serif;
  color: var(--md-text);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.gl-search-input:focus {
  border-color: var(--md-blue);
  box-shadow: 0 0 0 3px rgba(45,108,223,.1);
}
.gl-search-input::placeholder { color: var(--md-gray-400); }
.gl-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Category filter pills */
.gl-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.gl-cat-pill {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--md-gray-200);
  background: #fff;
  color: var(--md-gray-600);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.gl-cat-pill:hover {
  border-color: var(--md-blue);
  color: var(--md-blue);
}
.gl-cat-pill.active {
  background: var(--md-navy);
  border-color: var(--md-navy);
  color: #fff;
}
.gl-cat-pill[data-cat="valuation"].active { background: #7a5200; border-color: #7a5200; }
.gl-cat-pill[data-cat="legal"].active     { background: #0a3a6b; border-color: #0a3a6b; }
.gl-cat-pill[data-cat="process"].active   { background: #1b5e20; border-color: #1b5e20; }
.gl-cat-pill[data-cat="finance"].active   { background: #6d3a00; border-color: #6d3a00; }
.gl-cat-pill[data-cat="structure"].active { background: #4a148c; border-color: #4a148c; }

/* ─────────────────────────────────────────
   ALPHABET NAV
───────────────────────────────────────── */
.gl-alpha-outer {
  background: #fff;
  padding: 18px 0 0;
}
.gl-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.alpha-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--md-gray-200);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  color: var(--md-gray-400);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.alpha-btn.has-terms {
  color: var(--md-navy);
  border-color: var(--md-blue-mid);
}
.alpha-btn:hover,
.alpha-btn.active {
  background: var(--md-navy);
  color: #fff;
  border-color: var(--md-navy);
}
.alpha-btn:disabled { cursor: default; opacity: 0.3; }

.gl-result-count {
  font-size: 13px;
  color: var(--md-gray-600);
  min-height: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--md-gray-200);
}

/* ─────────────────────────────────────────
   GLOSSARY CONTENT WRAPPER
───────────────────────────────────────── */
.gl-content-wrap {
  padding: 36px 0 48px;
  background: #fff;
}

/* ─────────────────────────────────────────
   ALPHA SECTION HEADINGS
───────────────────────────────────────── */
.alpha-section { margin-bottom: 32px; }
.alpha-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.alpha-letter {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--md-navy);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.alpha-divider {
  flex: 1;
  height: 1px;
  background: var(--md-gray-200);
}

/* ─────────────────────────────────────────
   TERM CARDS — accordion style
───────────────────────────────────────── */
.term-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.term-card {
  border: 1.5px solid var(--md-gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.term-card:hover { border-color: var(--md-blue-mid); }
.term-card.expanded {
  border-color: var(--md-blue);
  box-shadow: var(--shadow-blue);
}

/* Card header / trigger */
.term-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}
.term-header:focus-visible {
  outline: 2px solid var(--md-blue);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}
.term-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--md-navy);
  line-height: 1.3;
}
.term-preview {
  font-size: 12.5px;
  color: var(--md-gray-600);
  margin-top: 3px;
  line-height: 1.5;
}

/* Right side: tag + toggle */
.term-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Category tags — mirrors existing palette */
.term-tag {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.term-tag.valuation { background: #fff8e1; color: #7a5200; border: 1px solid #ffe082; }
.term-tag.legal     { background: var(--md-blue-light); color: #0a3a6b; border: 1px solid var(--md-blue-mid); }
.term-tag.process   { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.term-tag.finance   { background: #fff3e0; color: #6d3a00; border: 1px solid #ffcc80; }
.term-tag.structure { background: #f3e5f5; color: #4a148c; border: 1px solid #ce93d8; }

/* Toggle chevron */
.toggle-icon {
  font-size: 18px;
  color: var(--md-blue);
  flex-shrink: 0;
  transition: transform .2s ease;
  line-height: 1;
}
.term-card.expanded .toggle-icon { transform: rotate(180deg); }

/* Expanded body */
.term-body {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--md-gray-200);
}
.term-card.expanded .term-body { display: block; }

.term-def {
  font-size: 14px;
  line-height: 1.8;
  color: var(--md-text);
  margin-top: 14px;
  margin-bottom: 12px;
}

/* Why it matters callout — yellow left-border, mirrors seller FAQ style */
.term-why {
  font-size: 13px;
  color: var(--md-gray-600);
  line-height: 1.65;
  padding: 12px 14px;
  border-left: 3px solid var(--md-yellow);
  background: #fffbea;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.term-why strong { color: var(--md-navy); font-weight: 700; }

/* No-results state */
.no-results {
  text-align: center;
  color: var(--md-gray-600);
  font-size: 14px;
  padding: 48px 0;
}
.no-results-icon { font-size: 36px; margin-bottom: 12px; }

/* ─────────────────────────────────────────
   CTA BAND — exact from seller.css
───────────────────────────────────────── */
.cta-faq-band {
  background: var(--md-blue-dark);
  padding: 60px 0;
}
.gl-cta-band .container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.gl-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.gl-cta-left { color: #fff; }
.gl-cta-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
}
.cta-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--md-yellow);
  background: rgba(255,193,7,.12);
  border: 1px solid rgba(255,193,7,.28);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cta-h2 {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  margin: 0;
  max-width: 560px;
}

/* ─────────────────────────────────────────
   BOTTOM STATS BAR
───────────────────────────────────────── */
.faq-stats {
  padding: 32px 0;
  background: #fff;
  border-top: 1px solid var(--md-gray-200);
}
.faq-stats .col-md-2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--md-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-right: 1px solid var(--md-gray-200);
  padding: 10px 0;
  text-align: center;
  justify-content: center;
  flex: 1;
}
.faq-stats .col-md-2:last-child { border-right: none; }
.faq-stats span { display: block; font-size: 12px; font-weight: 400; color: var(--md-gray-600); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer { background: var(--md-navy); }
footer h6 { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
footer p  { font-size: 12.5px; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.footer-brand img { max-height: 32px; }
.nav-link { font-size: 13px; color: rgba(255,255,255,.6); padding: 4px 0; transition: color var(--transition); }
.nav-link:hover { color: #fff; }
.social img { width: 28px; height: 28px; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .gl-cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .gl-cta-right { min-width: unset; flex-direction: row; flex-wrap: wrap; }
  .btn-cta-primary, .btn-cta-outline { width: auto; flex: 1; }
}

@media (max-width: 768px) {
  .gl-hero-inner { grid-template-columns: 1fr; gap: 0; padding-bottom: 40px; }
  .gl-hero-visual { display: none; }
  .gl-toolbar-wrap { position: relative; top: auto; }
  .alpha-btn { width: 30px; height: 30px; font-size: 11px; }
  .term-tag { display: none; }
  .gl-hero-stats { gap: 20px; }
}

@media (max-width: 520px) {
  .hero-h1 { font-size: 26px; }
  .gl-cta-right { flex-direction: column; }
  .btn-cta-primary, .btn-cta-outline { width: 100%; }
  .faq-stats .col-md-2 { border-right: none; border-bottom: 1px solid var(--md-gray-200); flex: 1 0 48%; }
}

@media print {
  .gl-toolbar-wrap, .gl-alpha-outer, .gl-cta-band, footer, header { display: none; }
  .term-card { border: 1px solid #ccc; margin-bottom: 12px; }
  .term-body { display: block !important; }
  .toggle-icon { display: none; }
}