/* WD-007 Ledger corporate — ACP Equities, LLC */
:root {
  --ld-navy: #1a2744;
  --ld-navy-muted: #2a3a5c;
  --ld-gold: #c9a227;
  --ld-gold-soft: rgba(201, 162, 39, 0.18);
  --ld-gray: #f2f2f0;
  --ld-rule: #d4d4cf;
  --ld-ink: #1a2744;
  --ld-muted: #5c6578;
  --ld-white: #ffffff;
  --ld-rail: 13.5rem;
  --ld-max: 100%;
  --ld-pad-x: clamp(1.25rem, 3vw, 3rem);
  --ld-font-sans: "Libre Franklin", system-ui, sans-serif;
  --ld-font-serif: "Source Serif 4", Georgia, serif;
  --ld-ease: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.ld {
  margin: 0;
  min-height: 100vh;
  color: var(--ld-ink);
  font-family: var(--ld-font-sans);
  font-size: 1rem;
  line-height: 1.55;
  background-color: var(--ld-gray);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 27px,
    var(--ld-rule) 27px,
    var(--ld-rule) 28px
  );
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ld-navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ld-gold);
}

.ld-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ld-navy);
  color: var(--ld-white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.ld-skip:focus {
  left: 0;
}

/* Left brand rail */
.ld-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--ld-rail);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 1.1rem;
  background: var(--ld-navy);
  color: var(--ld-white);
  z-index: 40;
  border-right: 1px solid var(--ld-navy-muted);
}

.ld-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.ld-logo:hover {
  color: var(--ld-gold);
}

.ld-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ld-logo__text strong {
  font-weight: 700;
  font-size: 0.82rem;
}

.ld-nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--ld-white);
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}

.ld-rail__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ld-rail__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.ld-rail__link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 0.45rem 0.35rem;
  border-left: 2px solid transparent;
  font-size: 0.92rem;
  transition: border-color var(--ld-ease), color var(--ld-ease), background var(--ld-ease);
}

.ld-rail__link:hover,
.ld-rail__link.is-active {
  color: var(--ld-white);
  border-left-color: var(--ld-gold);
  background: rgba(255, 255, 255, 0.04);
}

.ld-cta {
  display: inline-block;
  color: var(--ld-navy);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--ld-gold);
  padding-bottom: 0.12rem;
  transition: color var(--ld-ease), border-color var(--ld-ease);
}

.ld-cta:hover {
  color: var(--ld-gold);
  border-bottom-color: var(--ld-navy);
}

.ld-cta--rail {
  color: var(--ld-white);
  border-bottom-color: var(--ld-gold);
}

.ld-cta--rail:hover {
  color: var(--ld-gold);
  border-bottom-color: var(--ld-white);
}

.ld-shell {
  margin-left: var(--ld-rail);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ld-main {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.25rem var(--ld-pad-x) 3.5rem;
}

/* Home hero */
.ld-hero {
  padding: 1rem 0 2.5rem;
  border-bottom: 1px solid var(--ld-rule);
}

.ld-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.ld-hero__visual {
  margin: 0;
  border: 1px solid var(--ld-rule);
  background: var(--ld-white);
  padding: 0.75rem;
  animation: ld-fade-in 700ms ease both;
}

.ld-hero__visual img {
  width: 100%;
  height: auto;
}

.ld-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ld-muted);
  font-weight: 600;
}

.ld-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--ld-font-serif);
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.ld-hero__lede,
.ld-lead {
  margin: 0 0 1.5rem;
  font-family: var(--ld-font-serif);
  font-size: 1.12rem;
  color: var(--ld-muted);
  max-width: 48ch;
}

.ld-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--ld-rule);
}

.ld-section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--ld-font-serif);
  font-size: 1.55rem;
  font-weight: 600;
}

.ld-section__intro {
  margin: 0 0 1.25rem;
  color: var(--ld-muted);
  max-width: 52ch;
}

/* KPI strip */
.ld-kpi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ld-rule);
  background: var(--ld-white);
}

.ld-kpi__item {
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--ld-rule);
}

.ld-kpi__item:last-child {
  border-right: none;
}

.ld-kpi__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ld-muted);
  margin-bottom: 0.35rem;
}

.ld-kpi__value {
  font-size: 0.92rem;
  font-weight: 600;
  word-break: break-word;
}

.ld-kpi__value a {
  text-decoration: none;
  border-bottom: 1px solid var(--ld-gold);
}

/* Ledger rows — two-column tiles to fill width */
.ld-ledger {
  border: 1px solid var(--ld-rule);
  background: var(--ld-white);
}

.ld-ledger--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ld-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--ld-rule);
  border-right: 1px solid var(--ld-rule);
  text-decoration: none;
  color: inherit;
  min-height: 9.5rem;
  transition: background var(--ld-ease), border-color var(--ld-ease);
}

.ld-ledger--grid .ld-row:nth-child(2n) {
  border-right: none;
}

.ld-ledger--grid .ld-row:nth-last-child(-n + 2) {
  border-bottom: none;
}

.ld-row:hover,
.ld-row.is-lit {
  background: var(--ld-gold-soft);
}

.ld-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ld-row__code {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ld-gold);
  font-weight: 700;
}

.ld-row__body {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.ld-row__icon {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border: 1px solid var(--ld-rule);
  background: var(--ld-gray);
  flex-shrink: 0;
}

.ld-row__icon img {
  width: 2.5rem;
  height: 2.5rem;
}

.ld-row__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ld-row__title {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
}

.ld-row__blurb {
  display: block;
  color: var(--ld-muted);
  font-size: 0.95rem;
  font-family: var(--ld-font-serif);
  line-height: 1.45;
}

.ld-row__meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ld-muted);
  white-space: nowrap;
}

.ld-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ld-rule);
  background: var(--ld-white);
}

.ld-process__step {
  padding: 1.25rem 1.1rem 1.35rem;
  border-right: 1px solid var(--ld-rule);
  transition: background var(--ld-ease);
  min-height: 12.5rem;
}

.ld-process__step:last-child {
  border-right: none;
}

.ld-process__step:hover {
  background: var(--ld-gold-soft);
}

.ld-process__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem;
  border: 1px solid var(--ld-rule);
  background: var(--ld-gray);
}

.ld-process__code {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ld-gold);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.ld-process__title {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.ld-process__text {
  display: block;
  margin: 0;
  color: var(--ld-muted);
  font-size: 0.9rem;
  font-family: var(--ld-font-serif);
}

.ld-section__more {
  margin: 1rem 0 0;
}

.ld-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--ld-rule);
  background: var(--ld-white);
}

.ld-faq details {
  border-bottom: 1px solid var(--ld-rule);
  padding: 0.9rem 1.1rem;
}

.ld-faq details:last-child {
  border-bottom: none;
}

.ld-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.ld-faq summary::-webkit-details-marker {
  display: none;
}

.ld-faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2rem;
  color: var(--ld-gold);
  font-weight: 700;
}

.ld-faq details[open] summary::before {
  content: "–";
}

.ld-faq p {
  margin: 0.65rem 0 0 1.2rem;
  color: var(--ld-muted);
  font-family: var(--ld-font-serif);
}

.ld-contact-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--ld-rule);
  background: var(--ld-white);
}

.ld-contact-band__icon {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.35rem;
  border: 1px solid var(--ld-rule);
  background: var(--ld-gray);
}

.ld-contact-band p {
  margin: 0 0 0.45rem;
  color: var(--ld-muted);
  font-family: var(--ld-font-serif);
}

.ld-contact-band p:last-child {
  margin-bottom: 0;
}

.ld-process--page {
  margin: 0 0 1.75rem;
}

.prose .ld-process,
.prose .ld-ledger {
  margin: 0 0 1.5rem;
}

/* Inner pages */
.ld-page__header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ld-rule);
}

.ld-page__header h1 {
  margin: 0 0 0.75rem;
  font-family: var(--ld-font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
}

.ld-page__grid {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.ld-page__rail {
  position: sticky;
  top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--ld-rule);
  background: var(--ld-white);
}

.ld-facts {
  margin: 0 0 1.25rem;
  padding: 0;
}

.ld-facts > div {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ld-rule);
}

.ld-facts > div:last-child {
  border-bottom: none;
}

.ld-facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ld-muted);
  margin-bottom: 0.2rem;
}

.ld-facts dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  word-break: break-word;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--ld-font-serif);
  font-size: 1.25rem;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.prose p,
.prose li {
  font-family: var(--ld-font-serif);
  color: var(--ld-ink);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ld-white);
  font-size: 0.92rem;
}

.prose th,
.prose td {
  border: 1px solid var(--ld-rule);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: rgba(26, 39, 68, 0.04);
  font-family: var(--ld-font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose .ld-note {
  border-left: 2px solid var(--ld-gold);
  padding: 0.65rem 0.9rem;
  background: var(--ld-white);
  color: var(--ld-muted);
}

.ld-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ld-rule);
  background: var(--ld-white);
}

.ld-link-list li {
  border-bottom: 1px solid var(--ld-rule);
}

.ld-link-list li:last-child {
  border-bottom: none;
}

.ld-link-list a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: background var(--ld-ease);
}

.ld-link-list a:hover {
  background: var(--ld-gold-soft);
}

/* Footer */
.ld-footer {
  margin-top: auto;
  border-top: 1px solid var(--ld-rule);
  background: var(--ld-white);
  padding: 2rem var(--ld-pad-x) 1.5rem;
  margin-left: 0;
}

.ld-shell > .ld-footer {
  width: 100%;
}

.ld-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
}

.ld-footer__name {
  margin: 0 0 0.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.ld-footer__line {
  margin: 0;
  color: var(--ld-muted);
  font-family: var(--ld-font-serif);
  font-size: 0.95rem;
}

.ld-footer__facts p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.ld-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ld-footer__links a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
}

.ld-footer__links a:hover {
  border-bottom-color: var(--ld-gold);
}

.ld-footer__copy {
  width: 100%;
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ld-rule);
  font-size: 0.8rem;
  color: var(--ld-muted);
}

@media (max-width: 960px) {
  .ld-hero__grid {
    grid-template-columns: 1fr;
  }

  .ld-kpi,
  .ld-process {
    grid-template-columns: 1fr 1fr;
  }

  .ld-kpi__item:nth-child(2),
  .ld-process__step:nth-child(2) {
    border-right: none;
  }

  .ld-kpi__item:nth-child(1),
  .ld-kpi__item:nth-child(2),
  .ld-process__step:nth-child(1),
  .ld-process__step:nth-child(2) {
    border-bottom: 1px solid var(--ld-rule);
  }

  .ld-page__grid {
    grid-template-columns: 1fr;
  }

  .ld-page__rail {
    position: static;
  }

  .ld-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  :root {
    --ld-rail: 0;
  }

  .ld-rail {
    position: sticky;
    top: 0;
    inset: auto;
    width: 100%;
    flex-direction: column;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  .ld-rail__brand {
    width: 100%;
  }

  .ld-nav-toggle {
    display: inline-flex;
  }

  .ld-rail__nav,
  .ld-rail__cta {
    display: none;
  }

  .ld-rail.is-open .ld-rail__nav,
  .ld-rail.is-open .ld-rail__cta {
    display: flex;
  }

  .ld-rail__nav {
    flex-direction: column;
  }

  .ld-shell {
    margin-left: 0;
  }

  .ld-main {
    padding: 1.5rem 1.1rem 3rem;
  }

  .ld-row {
    grid-template-columns: 2.25rem 2.75rem minmax(0, 1fr);
  }

  .ld-row__meta {
    display: none;
  }

  .ld-contact-band {
    grid-template-columns: 1fr;
  }

  .ld-kpi,
  .ld-process {
    grid-template-columns: 1fr;
  }

  .ld-kpi__item,
  .ld-process__step {
    border-right: none;
    border-bottom: 1px solid var(--ld-rule);
    min-height: 0;
  }

  .ld-kpi__item:last-child,
  .ld-process__step:last-child {
    border-bottom: none;
  }
}
