/* Deal Intelligence methodology: full-site chrome and chapter layout */
.di-method-page {
  --navy: #0d1b2e;
  --navy-soft: #162536;
  --ink: #1a2332;
  --muted: #5a6577;
  --line: rgba(13, 27, 46, 0.1);
  --soft: #f7f5f0;
  --paper: #fbfaf7;
  --blue: #086ad8;
  --gold: #c9a227;
  background: #fff;
}

.di-method-page .di-hub-hero {
  padding: 108px 0 40px;
}

.di-method-page .di-hub-hero h1 {
  max-width: 22ch;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
}

.di-method-page .di-hub-hero-sub {
  max-width: 46rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.method-meta {
  margin: 18px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.method-meta time {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.method-chapters {
  position: sticky;
  top: 72px;
  z-index: 20;
  background: rgba(247, 245, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.method-chapters .container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.method-chapters a {
  flex: 0 0 auto;
  font-family: Rubik, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  padding: 8px 14px;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.method-chapters a:hover {
  color: var(--blue);
}

.method-chapters a[aria-current="page"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.method-shell {
  --cw: 1200px;
  width: min(100%, var(--cw));
  margin: 0 auto;
  padding: 48px 32px 96px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.method-toc {
  position: sticky;
  top: 140px;
  font-size: 0.88rem;
}

.method-toc p {
  margin: 0 0 12px;
  font-family: Rubik, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.method-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.method-toc a {
  display: block;
  padding: 7px 0 7px 14px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}

.method-toc a:hover {
  color: var(--navy);
}

.method-prose {
  max-width: 760px;
  color: var(--ink);
}

.method-prose .crumb {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
}

.method-prose .crumb a {
  color: var(--blue);
  text-decoration: none;
}

.method-prose h2 {
  font-family: Poppins, sans-serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 40px 0 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.method-prose h2:first-child {
  margin-top: 0;
}

.method-prose h3 {
  font-family: Poppins, sans-serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 26px 0 8px;
  font-weight: 650;
}

.method-prose p,
.method-prose li {
  font-size: 1.02rem;
  line-height: 1.72;
  margin: 0 0 14px;
}

.method-prose ul,
.method-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.method-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.method-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 0.92rem;
}

.method-prose th,
.method-prose td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 10px 0;
  text-align: left;
  vertical-align: top;
}

.method-prose thead th {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.method-prose caption {
  caption-side: top;
  text-align: left;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.method-note,
.method-legal {
  background: var(--soft);
  border-left: 3px solid var(--gold);
  padding: 16px 18px;
  margin: 18px 0 24px;
}

.method-legal {
  border-left-color: var(--navy);
  background: #f3f1eb;
}

.method-note p,
.method-legal p {
  margin-bottom: 10px;
}

.method-note p:last-child,
.method-legal p:last-child {
  margin-bottom: 0;
}

.method-kicker {
  display: inline-block;
  font-family: Rubik, sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}

.method-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0 28px;
}

.method-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px 20px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(13, 27, 46, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.method-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 14px 32px rgba(13, 27, 46, 0.08);
}

.method-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--navy);
}

.method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.method-steps {
  counter-reset: method-step;
  list-style: none;
  padding: 0;
  margin: 8px 0 22px;
}

.method-steps li {
  position: relative;
  padding: 14px 0 14px 56px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.method-steps li::before {
  counter-increment: method-step;
  content: counter(method-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: Poppins, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.method-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.method-next a {
  font-family: Rubik, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.method-more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.method-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-family: Rubik, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--navy);
}

.method-more a.ghost {
  background: transparent;
  color: var(--navy);
}

.method-more a:hover {
  background: #162536;
  border-color: #162536;
  color: #fff;
}

@media (max-width: 900px) {
  .method-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 24px 72px;
  }

  .method-toc {
    position: static;
  }

  .method-toc ol {
    display: flex;
    flex-wrap: wrap;
    border-left: 0;
    gap: 8px 16px;
  }

  .method-toc a {
    padding: 0;
  }

  .method-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .method-chapters {
    top: 60px;
  }

  .method-shell {
    padding: 28px 18px 64px;
  }
}
