.deep-table {
  margin: 30px 0;
}
.deep-table figcaption,
.fee-chart figcaption {
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 15px;
}
.deep-table .table-scroll {
  border: 1px solid var(--line);
  border-radius: var(--radius-frame, 10px / 7px);
}
.deep-table table {
  margin: 0;
}
.deep-table th {
  min-width: 130px;
}
.deep-table td {
  min-width: 200px;
}
.deep-table table tbody tr:nth-child(even) {
  background: #fafbf9;
}
.deep-sources {
  border-top: 1px solid var(--line);
  margin: 26px 0 0;
  padding-top: 18px;
  font-size: 13px;
  line-height: 1.8;
}
.deep-sources strong {
  display: block;
  margin-bottom: 10px;
}
.deep-sources a {
  display: inline-block;
  margin: 0 22px 9px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.deep-intro {
  font-size: 20px;
}
.deep-footnote {
  font-size: 14px;
  color: #526774;
  margin: 18px 0 0;
}
.fee-chart {
  margin: 35px 0;
  background: var(--paper);
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid #e1dbc9;
  border-radius: var(--radius-frame, 10px / 7px);
}
.fee-chart p {
  font-size: 15px;
}
.fee-chart-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
  font-size: 14px;
}
.fee-chart-legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.fee-chart-legend i {
  width: 13px;
  height: 13px;
  border-radius: 3px / 2px;
}
.fsc-fee {
  background: #d5b878;
  color: #112d3c;
}
.bc-fee {
  background: #173a4b;
  color: #fff;
}
.fee-chart-row {
  margin-bottom: 25px;
}
.fee-chart-row > strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.fee-chart-track {
  display: flex;
  height: 38px;
  background: #e7e6de;
  overflow: hidden;
  border-radius: 6px / 4px;
}
.fee-chart-track span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.fee-chart-row b {
  display: block;
  text-align: right;
  margin-top: 5px;
  font-size: 15px;
}
.fee-chart-axis {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #c6c9bf;
  padding-top: 8px;
  font-size: 12px;
}
.budget-examples,
.workflow-lanes,
.cost-models,
.deep-feature-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.budget-examples > article {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 25px;
  border-radius: var(--radius-frame, 10px / 7px);
}
.budget-examples > article > span {
  font-size: 11px;
  letter-spacing: 0.09em;
  color: #806735;
}
.budget-examples h3 {
  font-size: 18px;
  margin: 12px 0;
}
.budget-examples p {
  font-size: 16px;
}
.cost-formula {
  font-size: 24px !important;
  line-height: 1.65;
  color: #183a4a;
}
.cost-formula strong {
  font-size: 26px;
}
.am-budget {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid #d7c69d;
  border-radius: var(--radius-frame, 10px / 7px);
  background: #fcfbf7;
}
.am-budget header h3 {
  font-size: 22px;
}
.am-budget header p {
  font-size: 15px;
}
.budget-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.budget-inputs label {
  font-weight: 500;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.budget-inputs input,
.budget-inputs select {
  min-width: 0;
  width: 100%;
  background: white;
  padding: 11px 12px;
  border: 1px solid #c8d1d4;
  border-radius: var(--radius-control, 7px / 5px);
  min-height: 46px;
}
.budget-inputs input:focus-visible,
.budget-inputs select:focus-visible {
  outline: 2px solid #846730;
  outline-offset: 3px;
}
.budget-result {
  background: var(--navy);
  color: white;
  border-radius: var(--radius-frame, 10px / 7px);
  margin-top: 24px;
  padding: 22px;
}
.budget-result > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 15px;
  margin-bottom: 8px;
}
.budget-result .budget-total {
  border-top: 1px solid #46606d;
  margin-top: 16px;
  padding-top: 16px;
}
.budget-total strong {
  font-size: 24px;
  color: var(--pale-gold);
}
.budget-result p {
  font-size: 13px;
  color: #d3dfe4;
  margin: 15px 0 0;
}
.budget-result .risk {
  color: #ffe4b4;
}
.deep-jump-links {
  display: flex;
  flex-wrap: wrap;
  padding: 0 var(--space) 30px;
  gap: 12px;
}
.deep-jump-links a {
  border: 1px solid #d4c69f;
  padding: 12px 20px;
  border-radius: var(--radius-control, 7px / 5px);
  font-size: 15px;
  background: #faf8f2;
}
.deep-jump-links a:hover {
  background: #efe7d3;
}
.workflow-lane {
  border: 1px solid var(--line);
  border-radius: var(--radius-frame, 10px / 7px);
  overflow: hidden;
}
.workflow-lane header {
  background: #092a3d;
  color: white;
  padding: 25px 30px;
}
.workflow-lane[data-workflow="acquisition"] header {
  background: #4d422c;
}
.workflow-lane header > span {
  color: #ead7a6;
  font-size: 12px;
  letter-spacing: 0.15em;
}
.workflow-lane header h3 {
  margin: 10px 0 0;
  font-size: 23px;
}
.workflow-lane ol {
  list-style: none;
  padding: 16px 28px 24px;
  margin: 0;
}
.workflow-lane li {
  display: flex;
  position: relative;
  gap: 17px;
  padding: 20px 0;
}
.workflow-lane li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 9px;
  bottom: -11px;
  color: #8c7442;
  z-index: 1;
  font-size: 18px;
}
.lane-number {
  background: #e9debf;
  color: #2c3c3b;
  flex-shrink: 0;
  height: 34px;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px / 4px;
  font-size: 13px;
}
.workflow-lane h4 {
  margin: 0 0 10px;
  font-size: 18px;
}
.workflow-lane p {
  font-size: 16px;
  margin-bottom: 12px;
}
.gate-label {
  display: block;
  padding: 10px 13px;
  border-left: 2px solid #bd9e55;
  background: #f6f3ea;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px / 3px;
}
.cost-models article {
  padding: 28px;
  background: #0c2e40;
  border: 1px solid #365568;
  border-radius: var(--radius-frame, 10px / 7px);
}
.cost-models h3 {
  font-size: 23px;
  color: #edd8a2;
}
.cost-models ol {
  padding: 0;
  list-style: none;
  counter-reset: cost;
  margin: 0;
}
.cost-models li {
  font-size: 17px;
  border-top: 1px solid #34505d;
  padding: 14px 0;
  display: flex;
  gap: 14px;
}
.cost-models li::before {
  counter-increment: cost;
  content: "+";
  color: #ebd097;
  flex-shrink: 0;
}
.cost-model-note {
  background: #123646;
  border-left: 3px solid var(--gold);
  padding: 20px;
  margin: 25px 0;
  border-radius: 6px / 4px;
}
.navy .article-list {
  color: #dbe5e8;
}
.red-flag-panel {
  margin: 30px 0;
  padding: 30px;
  border: 1px solid #d6bfa1;
  border-radius: var(--radius-frame, 10px / 7px);
  background: #f8f1e8;
}
.red-flag-panel h3 {
  color: #6a4527;
  font-size: 23px;
}
.red-flag-panel li {
  font-size: 17px;
}
.deep-feature-links {
  margin: 0 0 50px;
}
.deep-feature-links a {
  border: 1px solid #d7c7a3;
  background: #faf8f2;
  padding: 26px;
  border-radius: var(--radius-frame, 10px / 7px);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.deep-feature-links a:hover {
  border-color: #a48645;
  box-shadow: 0 7px 18px #17324009;
}
.deep-feature-links span {
  display: block;
  font-size: 11px;
  color: #7b6332;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.deep-feature-links strong {
  font-family: var(--serif);
  font-size: 22px;
}
.deep-feature-links p {
  margin: 12px 0 0;
  font-size: 15px;
}
@media (max-width: 800px) {
  .workflow-lanes,
  .cost-models,
  .budget-examples,
  .deep-feature-links {
    grid-template-columns: 1fr;
  }
  .fee-chart {
    padding: 20px;
  }
}
@media (max-width: 520px) {
  .budget-inputs {
    grid-template-columns: 1fr;
  }
  .am-budget {
    padding: 20px;
  }
  .budget-result > div {
    flex-wrap: wrap;
  }
  .budget-total strong {
    font-size: 22px;
  }
  .workflow-lane ol {
    padding: 15px;
  }
  .workflow-lane header {
    padding: 22px;
  }
  .deep-jump-links a {
    width: calc(50% - 6px);
    padding: 10px;
    text-align: center;
    font-size: 13px;
  }
  .red-flag-panel {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .deep-feature-links a {
    transition: none;
  }
}
