.tit-investment-tool-page {
  --tit-tool-accent: #16845b;
  --tit-tool-accent-dark: #0f6044;
  --tit-tool-ink: #0b1728;
  --tit-tool-muted: #5f6f82;
  --tit-tool-warn: #8a5b0a;
  padding: 0;
  background: #f7faf8;
}

.tit-investment-hero {
  border-bottom: 1px solid var(--tip-line);
  background:
    radial-gradient(circle at 86% 18%, rgba(191, 230, 213, 0.34), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  padding: clamp(12px, 2.4vw, 24px) 0 clamp(12px, 2.4vw, 24px);
}

.tit-investment-hero-grid,
.tit-investment-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.74fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: center;
}

.tit-investment-hero-copy {
  max-width: 800px;
}

.tit-investment-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--tit-tool-ink);
  font-size: clamp(2.18rem, 4.7vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.tit-investment-lede {
  max-width: 760px;
  margin: 8px 0 0;
  color: #34465b;
  font-size: clamp(1.03rem, 1.5vw, 1.16rem);
  line-height: 1.5;
}

.tit-investment-support {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--tit-tool-muted);
}

.tit-investment-disclaimer {
  max-width: 760px;
  margin-top: 8px;
  border-left: 4px solid var(--tit-tool-accent);
  border-radius: 12px;
  background: #f1faf5;
  color: #284236;
  padding: 10px 12px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.tit-investment-hero-art {
  align-self: stretch;
  min-height: 180px;
  display: grid;
  place-items: center;
}

.tit-investment-hero-art img {
  width: min(100%, 440px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(220, 230, 225, 0.9);
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(15, 31, 51, 0.12);
  object-fit: cover;
}

.tit-investment-workspace {
  padding-top: clamp(8px, 1.4vw, 16px);
  padding-bottom: 0;
}

.tit-investment-tool {
  align-items: start;
  row-gap: clamp(22px, 3.5vw, 38px);
}

.tit-investment-panel,
.tit-risk-card,
.tit-chart-panel,
.tit-education-grid article,
.tit-risk-metrics-card,
.tit-profile-guide-card,
.tit-next-step-card {
  border: 1px solid var(--tip-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 31, 51, 0.065);
}

.tit-investment-panel {
  padding: clamp(18px, 2.5vw, 26px);
}

.tit-panel-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tit-panel-heading h2,
.tit-risk-card h2,
.tit-education-grid h2,
.tit-risk-metrics-card h3,
.tit-next-step-card h3 {
  margin: 0;
  color: var(--tit-tool-ink);
  line-height: 1.15;
}

.tit-panel-heading h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.tit-panel-helper,
.tit-mode-helper {
  max-width: 500px;
  margin: 6px 0 0;
  color: var(--tit-tool-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.tit-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px 14px;
}

.tit-field {
  display: grid;
  grid-template-rows: auto auto minmax(34px, auto);
  gap: 6px;
  min-width: 0;
}

.tit-field-wide {
  grid-column: 1 / -1;
}

.tit-field-currency {
  justify-self: stretch;
}

.tit-field-currency select {
  min-height: 44px;
}

.tit-field-currency small {
  max-width: 260px;
}

.tit-field .tit-input-unit,
.tit-field select {
  align-self: start;
}

.tit-field-label-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  justify-content: space-between;
}

.tit-field > span,
.tit-field label,
.tit-mode-control legend {
  color: var(--tit-tool-ink);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.25;
}

.tit-field-label-line a {
  color: var(--tit-tool-accent-dark);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.tit-field-label-line a:hover,
.tit-field-label-line a:focus {
  color: var(--tit-tool-accent);
}

.tit-field small {
  color: var(--tit-tool-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.tit-field input,
.tit-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfddd7;
  border-radius: 12px;
  background: #ffffff;
  color: var(--tit-tool-ink);
  padding: 10px 13px;
  font-weight: 700;
}

.tit-field input[readonly] {
  background: #f8fbf9;
  color: #526476;
}

.tit-field.is-profile-filled .tit-input-unit {
  border-color: rgba(22, 132, 91, 0.32);
  background: #f1faf5;
}

.tit-field.is-profile-filled input,
.tit-field.is-profile-filled .tit-input-unit span {
  background: #f1faf5;
}

.tit-field input[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.tit-input-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfddd7;
  border-radius: 12px;
  background: #ffffff;
}

.tit-input-unit:focus-within {
  outline: 3px solid rgba(22, 132, 91, 0.22);
  outline-offset: 3px;
}

.tit-input-unit input {
  border: 0;
  border-radius: 0;
}

.tit-input-unit input:focus-visible {
  outline: 0;
}

.tit-input-unit span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-left: 1px solid #e4ece8;
  background: #f8fbf9;
  color: var(--tit-tool-muted);
  padding: 0 13px;
  font-size: 0.88rem;
  font-weight: 800;
}

.tit-input-currency {
  grid-template-columns: auto minmax(0, 1fr);
}

.tit-input-currency span {
  border-right: 1px solid #e4ece8;
  border-left: 0;
}

.tit-mode-control {
  display: grid;
  margin: 0;
  border: 0;
  padding: 0;
}

.tit-mode-control legend {
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.95rem;
}

.tit-mode-helper {
  margin-bottom: 18px;
}

.tit-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.tit-mode-options {
  display: flex;
  flex: 0 1 420px;
  flex-direction: column;
  gap: 10px;
}

.tit-field[for="tit-fees"] {
  grid-template-rows: auto auto auto;
}

.tit-field[for="tit-fees"] small {
  margin-bottom: -8px;
}

.tit-mode-control label {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border: 1px solid #cfddd7;
  border-radius: 999px;
  background: #ffffff;
  color: var(--tit-tool-ink);
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.tit-field[hidden],
.tit-risk-result[hidden] {
  display: none;
}

.tit-mode-copy {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}

.tit-mode-control input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--tit-tool-accent);
}

.tit-reset-button {
  min-height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(22, 132, 91, 0.28);
  border-radius: 12px;
  background: #ffffff;
  color: var(--tit-tool-ink);
  padding: 8px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.tit-reset-button:focus {
  border-color: rgba(22, 132, 91, 0.4);
  background: #ffffff;
  color: var(--tit-tool-ink);
}

.tit-reset-button.is-resetting {
  border-color: rgba(22, 132, 91, 0.55);
  background: var(--tit-tool-accent-dark);
  color: #ffffff;
}

@media (hover: hover) {
  .tit-reset-button:hover {
    border-color: rgba(22, 132, 91, 0.55);
    background: var(--tit-tool-accent-dark);
    color: #ffffff;
  }
}

.tit-reset-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(22, 132, 91, 0.22);
}

.tit-form-note {
  min-height: 0;
  margin: 6px 0 0;
  color: #b42318;
  font-size: 0.92rem;
  font-weight: 700;
}

.tit-form-note:not(:empty) {
  min-height: 24px;
  margin-top: 10px;
}

.tit-investment-side {
  display: grid;
  gap: 14px;
}

.tit-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tit-result-card {
  min-width: 0;
  border: 1px solid #e0e9e5;
  border-radius: 14px;
  background: #f8fbf9;
  padding: 14px;
}

.tit-result-card span {
  display: block;
  color: var(--tit-tool-muted);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.3;
}

.tit-result-card strong {
  display: block;
  margin-top: 6px;
  color: var(--tit-tool-ink);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.tit-result-card small {
  display: block;
  margin-top: 8px;
  color: var(--tit-tool-muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.38;
}

.tit-risk-highlight-card,
.tit-risk-metric-card {
  border-color: rgba(22, 132, 91, 0.22);
  background: #f1faf5;
}

.tit-result-explanation {
  margin: 14px 0 0;
  color: #3f5064;
  font-size: 0.92rem;
  line-height: 1.6;
}

.tit-risk-metrics-link {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 850;
}

.tit-risk-metrics-link[hidden] {
  display: none;
}

.tit-risk-metrics-link a {
  color: var(--tit-tool-accent-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.tit-risk-metrics-link a:hover,
.tit-risk-metrics-link a:focus {
  color: var(--tit-tool-accent);
}

.tit-risk-card {
  border-color: rgba(196, 147, 47, 0.32);
  background: #fffaf0;
  color: #4d390d;
  padding: clamp(20px, 3vw, 26px);
}

.tit-risk-card h2 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.tit-risk-card p:not(.eyebrow) {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.58;
}

.tit-chart-section {
  padding-top: clamp(28px, 4vw, 46px);
  padding-bottom: clamp(8px, 1.5vw, 16px);
}

.tit-chart-panel {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
}

.tit-chart-section .tit-risk-card {
  margin-top: 16px;
}

.tit-chart-wrap {
  position: relative;
  min-height: 340px;
}

#tit-investment-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
  border: 1px solid #e0e9e5;
  border-radius: 16px;
  background: #ffffff;
}

.tit-chart-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 230px;
  border: 1px solid #d6e3de;
  border-radius: 10px;
  background: #ffffff;
  color: var(--tit-tool-ink);
  padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(15, 31, 51, 0.12);
  font-size: 0.82rem;
  line-height: 1.45;
  pointer-events: none;
}

.tit-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
  color: var(--tit-tool-muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.tit-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tit-chart-legend i {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.tit-chart-legend .dashed i {
  background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px);
}

.tit-education-grid,
.tit-risk-metrics-grid,
.tit-profile-guide-grid,
.tit-next-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tit-education-section,
.tit-profile-guide-section,
.tit-risk-metrics-section,
.tit-next-steps-section {
  padding-top: clamp(30px, 4.4vw, 48px);
}

.tit-theory-heading {
  margin-bottom: 16px;
}

.tit-chart-section + .tit-education-section {
  padding-top: clamp(4px, 0.8vw, 10px);
}

.tit-education-grid article,
.tit-risk-metrics-card,
.tit-profile-guide-card,
.tit-next-step-card {
  padding: clamp(18px, 2.8vw, 24px);
}

.tit-education-grid h2,
.tit-risk-metrics-card h3,
.tit-profile-guide-card h3 {
  font-size: 1.2rem;
}

.tit-education-grid p,
.tit-risk-metrics-card p,
.tit-profile-guide-card p,
.tit-next-step-card p {
  margin: 10px 0 0;
  color: var(--tit-tool-muted);
  font-size: 0.96rem;
  line-height: 1.58;
}

.tit-risk-metrics-section {
  scroll-margin-top: 84px;
}

.tit-risk-metrics-card h3 {
  line-height: 1.2;
}

.tit-profile-guide-section {
  scroll-margin-top: 84px;
}

.tit-profile-guide-card h3 {
  margin: 0;
  color: var(--tit-tool-ink);
  line-height: 1.2;
}

.tit-profile-guide-card {
  display: flex;
  flex-direction: column;
}

.tit-profile-guide-card strong {
  color: #284236;
}

.tit-profile-defaults {
  margin-top: auto;
  padding-top: 16px;
}

.tit-profile-guide-card-custom .tit-profile-defaults {
  margin-top: auto;
  padding-top: 16px;
}

.tit-profile-defaults h4 {
  margin: 0 0 8px;
  color: var(--tit-tool-ink);
  font-size: 0.95rem;
  line-height: 1.2;
}

.tit-profile-defaults table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #e0e9e5;
  border-radius: 12px;
  background: #f8fbf9;
  font-size: 0.86rem;
}

.tit-profile-defaults th,
.tit-profile-defaults td {
  border-bottom: 1px solid #e0e9e5;
  padding: 7px 9px;
  text-align: left;
}

.tit-profile-defaults tr:last-child th,
.tit-profile-defaults tr:last-child td {
  border-bottom: 0;
}

.tit-profile-defaults th {
  color: var(--tit-tool-muted);
  font-weight: 850;
}

.tit-profile-defaults td {
  color: var(--tit-tool-ink);
  font-weight: 850;
  text-align: right;
}

.tit-profile-custom-default {
  margin: 0;
  border: 1px solid #e0e9e5;
  border-radius: 12px;
  background: #f8fbf9;
  color: var(--tit-tool-ink);
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
}

.tit-next-step-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.tit-next-step-card h3 {
  font-size: 1.16rem;
}

.tit-next-step-card .button,
.tit-next-step-card .tit-tool-coming-soon {
  align-self: flex-start;
  margin-top: auto;
}

.tit-next-step-card p + .button,
.tit-next-step-card p + .tit-tool-coming-soon {
  margin-top: 18px;
}

.tit-next-step-disclosure {
  margin-top: 18px;
}

@media (max-width: 920px) {
  .tit-investment-hero-grid,
  .tit-investment-tool {
    grid-template-columns: 1fr;
  }

  .tit-investment-hero-art {
    min-height: 200px;
  }

  .tit-education-grid,
  .tit-risk-metrics-grid,
  .tit-profile-guide-grid,
  .tit-next-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tit-investment-hero {
    padding: 22px 0 24px;
  }

  .tit-investment-hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .tit-field-grid,
  .tit-result-grid,
  .tit-education-grid,
  .tit-risk-metrics-grid,
  .tit-profile-guide-grid,
  .tit-next-step-grid {
    grid-template-columns: 1fr;
  }

  .tit-field,
  .tit-field-wide,
  .tit-field-currency,
  .tit-field-initial {
    grid-column: 1 / -1;
  }

  .tit-investment-panel,
  .tit-risk-card,
  .tit-chart-panel,
  .tit-education-grid article,
  .tit-risk-metrics-card,
  .tit-profile-guide-card,
  .tit-next-step-card {
    border-radius: 16px;
  }

  .tit-chart-wrap {
    min-height: 280px;
  }

  .tit-mode-options {
    flex-basis: 100%;
  }

  .tit-panel-heading {
    flex-direction: column;
    gap: 10px;
  }

  .tit-reset-button {
    width: 100%;
  }

  .tit-investment-workspace,
  .tit-chart-section,
  .tit-profile-guide-section,
  .tit-risk-metrics-section,
  .tit-next-steps-section {
    padding-top: 22px;
  }

  .tit-education-section,
  .tit-chart-section + .tit-education-section {
    padding-top: 12px;
  }

  #tit-investment-chart {
    min-height: 280px;
  }

  .tit-next-step-card .button,
  .tit-next-step-card .tit-tool-coming-soon {
    width: 100%;
  }
}
