.compound-page main {
  background:
    radial-gradient(circle at 9% 16%, rgba(8, 174, 100, .08), transparent 280px),
    radial-gradient(circle at 83% 18%, rgba(22, 136, 255, .07), transparent 260px),
    linear-gradient(180deg, #fbfdff 0%, #f7fbff 54%, #fff 100%);
}

body.compound-page {
  max-width: 100%;
  overflow-x: hidden;
}

.compound-page .directory-header,
.compound-page .directory-footer,
.compound-page .cookie-bar {
  background: #fff;
}

.compound-hero {
  padding: 22px 0 16px;
  border-bottom: 1px solid #e4ebf3;
  background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);
}

.compound-breadcrumbs,
.compound-title-row,
.compound-trust,
.compound-mode-tabs,
.compound-field,
.compound-input,
.compound-actions,
.compound-results-head,
.result-lines div,
.compound-examples button,
.related-mini-head {
  display: flex;
  align-items: center;
}

.compound-breadcrumbs {
  gap: 8px;
  margin-bottom: 14px;
  color: #1688ff;
  font-size: 12px;
  font-weight: 750;
}

.compound-breadcrumbs span:last-child {
  color: #061738;
}

.compound-breadcrumbs svg {
  width: 12px;
  height: 12px;
}

.compound-title-row {
  gap: 24px;
}

.compound-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(145deg, #13bd72, #009e57);
  color: #fff;
  box-shadow: 0 18px 32px rgba(0, 166, 87, .18);
}

.compound-mark svg {
  width: 36px;
  height: 36px;
}

.compound-title-row h1 {
  margin: 0;
  color: #061738;
  font-size: 44px;
  line-height: 1;
  font-weight: 850;
}

.compound-title-row p {
  margin: 10px 0 18px;
  color: #48607f;
  font-size: 16px;
}

.compound-trust {
  gap: 12px;
  flex-wrap: wrap;
}

.compound-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #dce6f2;
  border-radius: 999px;
  background: #fff;
  color: #173153;
  font-size: 13px;
  font-weight: 800;
}

.compound-trust svg {
  color: #08ae64;
}

.compound-workspace {
  padding: 18px 0 16px;
}

.compound-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 28px;
  align-items: start;
}

.compound-card {
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 38px rgba(25, 60, 102, .07);
}

.compound-tool-card {
  overflow: hidden;
}

.compound-mode-tabs {
  border-bottom: 1px solid #dce6f2;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.compound-mode-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-height: 48px;
  border: 0;
  border-right: 1px solid #e6edf5;
  background: transparent;
  color: #173153;
  font-size: 13px;
  font-weight: 850;
}

.compound-mode-tabs button:last-child {
  border-right: 0;
}

.compound-mode-tabs button.is-active {
  color: #08ae64;
  box-shadow: inset 0 -3px 0 #08ae64;
}

.compound-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .72fr);
  gap: 0;
}

.compound-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 16px 24px;
  padding: 18px;
  border-right: 1px solid #dce6f2;
}

.compound-field {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  color: #061738;
  font-size: 13px;
  font-weight: 850;
}

.compound-input,
.compound-field select {
  width: 100%;
  height: 38px;
  border: 1px solid #dce6f2;
  border-radius: 7px;
  background: #fbfdff;
}

.compound-field select {
  padding: 0 12px;
  color: #061738;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.compound-input:focus-within,
.compound-field select:focus {
  border-color: rgba(8, 174, 100, .75);
  background: #fff;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(8, 174, 100, .08);
}

.compound-input input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #071b43;
  font-size: 14px;
  font-weight: 800;
  appearance: textfield;
}

.compound-input input::-webkit-outer-spin-button,
.compound-input input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.compound-input small {
  flex: 0 0 auto;
  min-width: 38px;
  padding-right: 12px;
  color: #48607f;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.compound-input.money small {
  min-width: 24px;
  padding: 0 0 0 12px;
  text-align: left;
}

.compound-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 16px;
  margin-top: 4px;
}

.compound-primary,
.compound-secondary,
.compound-results-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 850;
}

.compound-primary {
  border: 1px solid #08ae64;
  background: linear-gradient(180deg, #12bd72, #00a85c);
  color: #fff;
  box-shadow: 0 12px 22px rgba(0, 166, 87, .18);
}

.compound-secondary,
.compound-results-head button {
  border: 1px solid #dce6f2;
  background: #fff;
  color: #173153;
}

.compound-results {
  padding: 18px;
}

.compound-results-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.compound-results h2,
.compound-examples-card h2,
.related-mini h2 {
  margin: 0;
  color: #061738;
  font-size: 18px;
  font-weight: 850;
}

.compound-results h2 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.compound-results h2 svg {
  color: #08ae64;
}

.compound-results-head button {
  min-height: 34px;
  padding: 0 14px;
}

.result-lines {
  display: grid;
  gap: 0;
  border-top: 1px solid #e6edf5;
}

.result-lines div {
  gap: 10px;
  min-height: 34px;
  border-bottom: 1px solid #e6edf5;
  color: #48607f;
  font-size: 14px;
}

.result-lines strong {
  margin-left: auto;
  color: #061738;
  font-size: 15px;
  font-weight: 850;
}

.result-lines div:first-child strong {
  color: #08ae64;
  font-size: 18px;
}

.dot,
.chart-head i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot-green { background: #08ae64; }
.dot-blue { background: #1688ff; }
.dot-orange { background: #ff7c21; }
.dot-slate { background: #8c98a9; }

.growth-chart-card {
  margin-top: 16px;
}

.chart-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: #061738;
  font-size: 13px;
}

.chart-head span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #48607f;
  font-size: 11px;
  font-weight: 750;
}

.growth-chart {
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  align-items: end;
  gap: 4px;
  height: 178px;
  padding: 16px 10px 8px;
  border-left: 1px solid #dce6f2;
  border-bottom: 1px solid #dce6f2;
  background:
    repeating-linear-gradient(180deg, transparent 0 35px, #e7eef7 36px),
    linear-gradient(180deg, #fff, #fbfdff);
}

.growth-bar {
  position: relative;
  min-width: 0;
  height: 100%;
}

.growth-bar > div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.growth-bar span {
  display: block;
  min-height: 5px;
}

.growth-bar .interest { background: linear-gradient(180deg, #0fac68, #08ae64); }
.growth-bar .deposits { background: linear-gradient(180deg, #2e90ff, #1688ff); }
.growth-bar .principal { background: linear-gradient(180deg, #ff9633, #ff7c21); }

.growth-chart-card p {
  margin: 8px 0 0;
  color: #7a8da7;
  font-size: 11px;
  text-align: center;
}

.compound-side {
  display: grid;
  gap: 18px;
}

.compound-examples-card {
  padding: 18px;
}

.compound-examples {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.compound-examples button {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 18px;
  gap: 14px;
  min-height: 78px;
  padding: 10px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  color: #061738;
  text-align: left;
}

.compound-examples button:hover {
  border-color: rgba(8, 174, 100, .4);
  box-shadow: 0 10px 22px rgba(25, 60, 102, .08);
}

.compound-examples button > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.compound-examples strong {
  font-size: 13px;
  line-height: 1.15;
  font-weight: 850;
}

.compound-examples small {
  color: #48607f;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.example-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  color: #fff;
}

.example-badge svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.chair { background: linear-gradient(145deg, #e8fbef, #bdeed1); color: #087846; }
.shield { background: linear-gradient(145deg, #eaf4ff, #b7dcff); color: #1688ff; }
.cap { background: linear-gradient(145deg, #f3edff, #d9caff); color: #7351d7; }
.boost { background: linear-gradient(145deg, #fff4e6, #ffe0bd); color: #ff7c21; }

.compound-content {
  padding: 0 0 16px;
}

.compound-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
}

.compound-guide {
  overflow: hidden;
}

.compound-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #dce6f2;
}

.compound-tabs button {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: #fff;
  color: #48607f;
  font-size: 13px;
  font-weight: 850;
}

.compound-tabs button.is-active {
  color: #08ae64;
  box-shadow: inset 0 -3px 0 #08ae64;
}

.compound-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  padding: 18px;
}

.compound-panel.is-active {
  display: grid;
}

.compound-panel h2 {
  margin: 0 0 8px;
  color: #061738;
  font-size: 18px;
  font-weight: 850;
}

.compound-panel p {
  margin: 0;
  color: #48607f;
  font-size: 13px;
  line-height: 1.5;
}

.compound-equation {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid rgba(8, 174, 100, .25);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff, #effbf5);
  color: #061738;
  font-size: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.projection-table {
  display: grid;
  gap: 6px;
  color: #173153;
  font-size: 12px;
  font-weight: 750;
}

.projection-table div {
  display: grid;
  grid-template-columns: .7fr 1fr 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f7fbff;
}

.projection-table div:first-child {
  background: #eaf7f0;
  color: #087846;
  font-weight: 850;
}

.related-mini {
  padding: 18px;
}

.related-mini-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.related-mini-head a {
  color: #1688ff;
  font-size: 12px;
  font-weight: 850;
}

.mini-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mini-related-grid a {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 112px;
  padding: 12px 8px;
  border: 1px solid #edf3f8;
  border-radius: 8px;
  background: #fff;
  color: #061738;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 850;
}

.mini-related-grid span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #eaf7f0;
  color: #08ae64;
}

.compound-page .directory-newsletter {
  border-top: 1px solid #dce6f2;
}

.compound-learning {
  padding: 4px 0 18px;
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.learning-main,
.learning-side article,
.compound-faq-section .faq-list details {
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 38px rgba(25, 60, 102, .06);
}

.learning-main {
  padding: 24px;
}

.learning-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #cdeadd;
  border-radius: 999px;
  background: #effbf5;
  color: #087846;
  font-size: 12px;
  font-weight: 850;
}

.learning-main h2,
.faq-heading h2 {
  margin: 16px 0 8px;
  color: #061738;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 850;
}

.learning-main h3 {
  margin: 24px 0 8px;
  color: #061738;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
}

.learning-main p,
.faq-heading p,
.faq-list p {
  margin: 0;
  color: #48607f;
  font-size: 14px;
  line-height: 1.65;
}

.learning-callout {
  display: grid;
  gap: 6px;
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid rgba(8, 174, 100, .22);
  border-radius: 8px;
  background: linear-gradient(90deg, #effbf5, #fff);
  color: #173153;
  font-size: 14px;
  line-height: 1.5;
}

.learning-callout strong {
  color: #087846;
}

.formula-variables {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 4px;
}

.formula-variables div {
  min-height: 104px;
  padding: 14px;
  border: 1px solid #e2ebf5;
  border-radius: 8px;
  background: #fbfdff;
}

.formula-variables b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 9px;
  background: #eaf7f0;
  color: #08ae64;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.formula-variables span {
  color: #48607f;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.learning-side {
  display: grid;
  gap: 18px;
}

.learning-side article {
  padding: 18px;
}

.learning-side h2 {
  margin: 0 0 14px;
  color: #061738;
  font-size: 18px;
  font-weight: 850;
}

.factor-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.factor-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid #e2ebf5;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  color: #48607f;
  font-size: 13px;
  line-height: 1.35;
}

.factor-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--factor-color) 14%, #fff);
  color: var(--factor-color);
}

.factor-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.factor-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.factor-copy strong {
  color: #061738;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 850;
}

.factor-copy small {
  color: #48607f;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.use-case-list {
  display: grid;
  gap: 8px;
}

.use-case-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e2ebf5;
  border-radius: 7px;
  background: #fbfdff;
  color: #173153;
  font-size: 13px;
  font-weight: 800;
}

.use-case-list svg {
  color: #08ae64;
}

.compound-faq-section {
  padding: 0 0 18px;
}

.faq-heading {
  margin-bottom: 12px;
}

.faq-heading h2 {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 0 18px;
}

.faq-list summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #061738;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.faq-list summary::after {
  content: "+";
  color: #08ae64;
  font-size: 22px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  padding: 0 0 18px;
}

@media (max-width: 1180px) {
  .compound-layout,
  .compound-tool-grid,
  .compound-content-grid,
  .learning-layout {
    grid-template-columns: 1fr;
  }

  .compound-form {
    border-right: 0;
    border-bottom: 1px solid #dce6f2;
  }

  .compound-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .compound-page .mobile-menu[aria-hidden="true"] {
    display: none;
  }

  .compound-page.menu-open .mobile-menu {
    display: flex;
  }

  .compound-hero {
    padding: 20px 0 14px;
  }

  .compound-title-row {
    align-items: flex-start;
    gap: 14px;
  }

  .compound-mark {
    width: 56px;
    height: 56px;
  }

  .compound-title-row h1 {
    font-size: 34px;
  }

  .compound-title-row p {
    font-size: 14px;
  }

  .compound-mode-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .compound-mode-tabs::-webkit-scrollbar {
    display: none;
  }

  .compound-mode-tabs button {
    flex: 0 0 auto;
    min-width: 190px;
  }

  .compound-form {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .compound-actions,
  .compound-results-head,
  .compound-panel.is-active {
    grid-template-columns: 1fr;
  }

  .compound-results {
    padding: 16px;
  }

  .growth-chart {
    grid-template-columns: repeat(12, 1fr);
    height: 150px;
  }

  .growth-bar:nth-child(n+13) {
    display: none;
  }

  .compound-examples button {
    grid-template-columns: 54px minmax(0, 1fr) 18px;
  }

  .example-badge {
    width: 54px;
    height: 54px;
  }

  .compound-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .compound-tabs::-webkit-scrollbar {
    display: none;
  }

  .compound-tabs button {
    flex: 0 0 auto;
    min-width: 116px;
  }

  .compound-panel {
    padding: 16px;
  }

  .compound-equation {
    font-size: 22px;
  }

  .mini-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-main {
    padding: 18px;
  }

  .learning-main h2,
  .faq-heading h2 {
    font-size: 24px;
  }

  .formula-variables {
    grid-template-columns: 1fr;
  }

  .formula-variables div {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .compound-title-row {
    flex-direction: column;
  }

  .compound-examples button {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .compound-examples button > span:last-child {
    display: none;
  }
}
