.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 20px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  background: #e8ede4;
  border: 1px solid #d5ded2;
  border-radius: 12px;
}
.guide-nav a { padding: 9px 15px; border-radius: 8px; line-height: 1.25; color: #435d4e; font-weight: 540; font-size: .94rem; }
.guide-nav a:hover { background: #f5f7f2; color: var(--forest); }
.guide-nav a[aria-current="page"] { color: #fff; background: var(--forest); }
.guide-layout { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 18px; align-items: stretch; }
.guide-card, .guide-result {
  min-width: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 34px);
  background: var(--card);
  overflow-wrap: break-word;
}
.guide-result { background: #e8f1e7; color: #173d30; border-color: #cbdccc; }
#guide-pages h2, #guide-pages h3 { margin: 0; line-height: 1.2; color: var(--ink); font-weight: 590; letter-spacing: -.035em; }
#guide-pages h2 { font-size: clamp(1.23rem, 1.8vw, 1.68rem); }
#guide-pages h3 { font-size: 1.15rem; }
#guide-pages p { max-width: 86ch; font-size: .96rem; line-height: 1.52; }
#guide-pages section > p:last-child { margin-bottom: 0; }
.guide-inputs { display: grid; gap: 15px 16px; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 20px 0 0; }
.guide-inputs > .guide-note, #topic-iis .guide-field:first-of-type, .benefit-layout .guide-field:first-child { grid-column: 1 / -1; }
.guide-field { display: grid; min-width: 0; align-content: end; gap: 7px; color: #3e574c; font-size: .92rem; font-weight: 520; }
.guide-field input, .guide-field select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 8px 11px;
  border: 1px solid #c9d6cb;
  border-radius: 7px;
  color: var(--ink);
  background-color: #fbfcfa;
  font: inherit;
  font-weight: 550;
  font-size: 1rem;
}
.guide-field select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23445b4b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
#guide-pages .guide-note { font-size: .89rem; line-height: 1.5; color: var(--muted); }
.guide-note:empty { display: none; }
.guide-inputs > .guide-note { margin: 0; }
.guide-result .guide-stat, .benefit-result output {
  display: block; margin: 8px 0 12px; color: var(--forest); font-size: clamp(2.05rem,3.8vw,3.6rem);
  font-weight: 580; letter-spacing: -.065em; line-height: 1.1; overflow-wrap: anywhere;
}
#guide-pages .cc-guide .cc-figure { font-size: clamp(2.2rem,4vw,4.2rem); line-height: 1.08; }
.guide-metrics { display: grid; margin: 18px 0 0; }
.guide-metrics div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid #cbd9ce; padding: 10px 0; }
.guide-metrics dt { color: #435e50; font-size: .93rem; }
.guide-metrics dd { margin: 0; font-size: clamp(1rem, 1.45vw, 1.2rem); font-weight: 600; letter-spacing: -.025em; text-align: right; }
.guide-example { padding-left: 12px; border-left: 3px solid #ad794c; }
.guide-sources { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 14px; }
.guide-sources a { font-size: .87rem; line-height: 1.45; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.guide-sources a:hover, .benefit-links a:hover strong { color: #104831; }
.invest-limit { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 20px 0 7px; font-size: .93rem; }
.invest-track { display: flex; overflow: hidden; height: 10px; border-radius: 3px; background: #cfddcf; }
.invest-track i { background: #bd8158; }
.invest-track b { background: #207350; }
.invest-explainer, .benefit-bottom { margin-top: 18px; }
.invest-explainer details { border-top: 1px solid var(--line); padding: 14px 0; }
.invest-explainer summary { cursor: pointer; color: var(--green); font-weight: 560; }
.invest-explainer details p:last-child { margin-bottom: 0; }
.benefit-links { margin-top: 8px; }
.benefit-links a { display: grid; gap: 4px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.benefit-links a:last-child { border-bottom: 0; }
.benefit-links strong { color: var(--green); font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; }
.benefit-links span { color: var(--muted); font-size: .88rem; }
@media (max-width: 920px) {
  .guide-layout { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .guide-inputs { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-inputs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guide-card, .guide-result { padding: 19px; border-radius: 13px; }
  .guide-nav { margin-bottom: 15px; gap: 3px; }
  .guide-nav a { padding: 8px 10px; font-size: .88rem; }
}
@media (max-width: 650px) {
  .main-nav { grid-template-columns: 1.18fr 1fr .95fr .9fr; }
}
@media (max-width: 540px) {
  .main-nav a i { display: none; }
  .guide-nav { display: flex; background: transparent; padding: 0; gap: 6px; border: 0; }
  .guide-nav a { background: #e8ede4; }
  .guide-inputs { grid-template-columns: 1fr; }
}
@media (max-width: 365px) {
  .guide-card, .guide-result { padding: 15px; }
  .guide-metrics dd { max-width: 48%; }
}
