/* CG Accounting locked brand — Concept 2: CG Ledger Mark */
:root {
  --cg-brand-navy: #0F2747;
  --cg-brand-slate: #64748B;
  --cg-brand-off-white: #F8F9FB;
}

.cg-brand-home {
  display: inline-flex;
  align-items: center;
  gap: 0 !important;
  text-decoration: none;
  min-width: 0;
  line-height: 0;
}
.cg-brand-logo-desktop {
  display: block;
  width: 238px;
  height: auto;
  max-width: min(238px, 30vw);
  object-fit: contain;
}
.cg-brand-mobile-lockup {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
  line-height: 1;
}
.cg-brand-monogram {
  display: block;
  width: auto;
  height: 34px;
  flex: 0 0 auto;
}
.cg-brand-mobile-name {
  color: #122033;
  font-weight: 850;
  letter-spacing: -.02em;
  white-space: nowrap;
  font-size: 1.02rem;
}
.cg-hero-brand {
  display: block;
  width: auto;
  height: 54px;
  max-width: min(470px, 78vw);
  margin: 0 0 22px;
  object-fit: contain;
}
.cg-footer-brand-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.cg-footer-logo {
  display: block;
  width: 206px;
  height: auto;
  max-width: 220px;
  object-fit: contain;
}
.cg-footer-tagline {
  color: inherit;
  max-width: 340px;
  line-height: 1.45;
}
.footer-inner,
.footer-links {
  align-items: start !important;
  row-gap: 16px !important;
  column-gap: 28px !important;
}
.footer-inner > :first-child,
.footer-links > :first-child { min-width: 0; }
.footer-inner > :nth-child(2),
.footer-inner > :last-child,
.footer-links > :last-child { line-height: 1.55; }
@media (min-width: 881px) {
  .footer-inner {
    display: grid !important;
    grid-template-columns: minmax(360px, 1.4fr) auto auto;
    align-items: start !important;
  }
  .footer-inner > :last-child { justify-self: end; text-align: right; }
  .footer-links {
    display: grid !important;
    grid-template-columns: minmax(360px, 1.4fr) auto;
    align-items: start !important;
  }
  .footer-links > :last-child { justify-self: end; text-align: right; }
}
@media (max-width: 980px) {
  .cg-brand-logo-desktop { display: none; }
  .cg-brand-mobile-lockup { display: inline-flex; }
  .cg-brand-home { gap: 10px !important; }
}
@media (max-width: 580px) {
  .cg-brand-monogram { height: 32px; }
  .cg-brand-mobile-name { font-size: .98rem; }
  .cg-hero-brand { height: 42px; max-width: 86vw; margin-bottom: 18px; }
  .cg-footer-logo { width: 194px; max-width: 200px; }
  .cg-footer-brand-wrap {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .cg-footer-tagline { max-width: none; }
}
