.bond-page {
  --bond-ink: #13213a;
  --bond-muted: #64748b;
  --bond-line: #d7e1e8;
  --bond-soft: #f5f8f9;
  --bond-green: #087f72;
  --bond-green-dark: #06675e;
  --bond-green-soft: #eaf7f4;
  --bond-gold: #a46916;
  --bond-gold-soft: #fff8e8;
  color: var(--bond-ink);
}

.bond-page * {
  box-sizing: border-box;
}

.bond-page [hidden] {
  display: none !important;
}

.bond-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
}

.bond-heading h1 {
  margin: 4px 0 14px;
  color: var(--bond-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.bond-heading > div > p:not(.bond-eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #52647b;
  font-size: 1.08rem;
  line-height: 1.8;
}

.bond-heading img {
  display: block;
  width: 170px;
  height: 170px;
  object-fit: cover;
  border: 1px solid var(--bond-line);
  border-radius: 7px;
}

.bond-heading nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
}

.bond-heading nav a {
  color: var(--bond-green-dark);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bond-eyebrow {
  margin: 0 0 7px;
  color: var(--bond-green-dark);
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: 0;
}

.bond-standard {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding: 15px 17px;
  border: 1px solid #ead9b9;
  border-left: 4px solid var(--bond-gold);
  border-radius: 6px;
  background: var(--bond-gold-soft);
  color: #645334;
  line-height: 1.55;
}

.bond-standard strong {
  flex: 0 0 auto;
  color: #443415;
}

.bond-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 34px;
  padding: 24px;
  border: 1px solid var(--bond-line);
  border-radius: 8px;
  background: #fff;
}

.bond-tool.has-result {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: start;
}

.bond-panel-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.bond-panel-heading h2,
.bond-data-section h2,
.bond-guide h2,
.bond-faq h2,
.bond-sources h2,
.bond-related h2 {
  margin: 0;
  color: var(--bond-ink);
  font-size: 1.65rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.bond-panel-heading > span {
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--bond-green-soft);
  color: var(--bond-green-dark);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

#bondForm {
  min-width: 0;
}

.bond-modes,
.bond-detail-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 7px;
  background: #edf2f4;
}

.bond-modes button,
.bond-detail-modes button {
  min-height: 46px;
  padding: 9px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #526076;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bond-modes button.is-active,
.bond-detail-modes button.is-active {
  background: #fff;
  color: var(--bond-green-dark);
  box-shadow: 0 1px 4px rgba(15, 34, 50, .14);
}

.bond-detail-modes {
  margin-bottom: 22px;
  background: transparent;
  border: 1px solid var(--bond-line);
}

.bond-detail-modes button.is-active {
  background: var(--bond-green-soft);
  box-shadow: none;
}

.bond-fields,
.bond-date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.bond-date-fields {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bond-line);
}

.bond-field {
  display: block;
  min-width: 0;
  margin: 0;
}

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

.bond-field > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: #1e2d44;
  font-size: .94rem;
  font-weight: 750;
}

.bond-field em {
  color: var(--bond-muted);
  font-size: .8rem;
  font-style: normal;
  font-weight: 500;
}

.bond-field input,
.bond-field select,
.bond-period input,
.bond-period select {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #cbd8e1;
  border-radius: 7px;
  background: #fff;
  color: var(--bond-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
}

.bond-field input:focus,
.bond-field select:focus,
.bond-period input:focus,
.bond-period select:focus {
  border-color: var(--bond-green);
  box-shadow: 0 0 0 3px rgba(8, 127, 114, .13);
  outline: none;
}

.bond-field small {
  display: block;
  margin-top: 7px;
  color: var(--bond-muted);
  font-size: .8rem;
  line-height: 1.5;
}

.bond-unit {
  position: relative;
}

.bond-unit input {
  padding-right: 48px;
}

.bond-unit b {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #67788e;
  font-size: .9rem;
  font-weight: 700;
  transform: translateY(-50%);
  pointer-events: none;
}

.bond-period {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  gap: 8px;
}

.bond-quick {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.bond-quick button {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #cdd9e1;
  border-radius: 6px;
  background: #fff;
  color: #40536a;
  font: inherit;
  font-size: .8rem;
  font-weight: 650;
  cursor: pointer;
}

.bond-quick button:hover,
.bond-quick button:focus-visible {
  border-color: var(--bond-green);
  color: var(--bond-green-dark);
}

.bond-advanced {
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid var(--bond-line);
  border-radius: 7px;
  background: var(--bond-soft);
}

.bond-advanced summary {
  padding: 15px 0;
  color: #24364c;
  font-weight: 750;
  cursor: pointer;
}

.bond-advanced[open] {
  padding-bottom: 16px;
}

.bond-check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 16px 0 12px;
  color: var(--bond-ink);
  cursor: pointer;
}

.bond-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--bond-green);
}

.bond-check span,
.bond-check small {
  display: block;
}

.bond-check small {
  margin-top: 2px;
  color: var(--bond-muted);
  line-height: 1.4;
}

.bond-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  margin-top: 20px;
}

.bond-actions button,
.bond-copy {
  min-height: 50px;
  padding: 10px 18px;
  border: 1px solid var(--bond-green);
  border-radius: 7px;
  background: var(--bond-green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bond-actions button:hover,
.bond-copy:hover {
  background: var(--bond-green-dark);
}

.bond-actions .secondary {
  border-color: #c7d3dc;
  background: #fff;
  color: #34475f;
}

.bond-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: #b04132;
  font-size: .86rem;
  font-weight: 650;
}

.bond-status[data-type="success"] {
  color: var(--bond-green-dark);
}

.bond-result {
  min-width: 0;
  padding: 20px;
  border: 1px solid #acd6cf;
  border-top: 5px solid var(--bond-green);
  border-radius: 7px;
  background: #fbfefd;
}

.bond-result > p:first-of-type {
  margin: 12px 0 3px;
  color: var(--bond-muted);
  font-size: .8rem;
}

.bond-result > h2 {
  margin: 0;
  color: var(--bond-ink);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.bond-result > output {
  display: block;
  overflow-wrap: anywhere;
  margin: 7px 0 15px;
  color: var(--bond-green-dark);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 850;
  line-height: 1.1;
}

.bond-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--bond-green-soft);
  color: var(--bond-green-dark);
  font-size: .78rem;
  font-weight: 800;
}

.bond-key-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bond-key-results > div {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--bond-line);
  border-radius: 6px;
  background: #fff;
}

.bond-key-results span,
.bond-key-results strong {
  display: block;
}

.bond-key-results span {
  margin-bottom: 5px;
  color: var(--bond-muted);
  font-size: .75rem;
}

.bond-key-results strong {
  overflow-wrap: anywhere;
  color: var(--bond-ink);
  font-size: 1.05rem;
}

.bond-explanation {
  margin: 14px 0;
  padding: 11px 12px;
  border-left: 3px solid var(--bond-gold);
  background: var(--bond-gold-soft);
  color: #604e2d;
  font-size: .87rem;
  line-height: 1.55;
}

.bond-result h3 {
  margin: 18px 0 8px;
  color: var(--bond-ink);
  font-size: 1rem;
}

.bond-breakdown {
  margin: 0;
  border-top: 1px solid var(--bond-line);
}

.bond-breakdown > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #e8edf0;
}

.bond-breakdown dt {
  color: #5d6e82;
  font-size: .82rem;
}

.bond-breakdown dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--bond-ink);
  font-size: .87rem;
  font-weight: 750;
  text-align: right;
}

.bond-warning,
.bond-disclaimer {
  margin: 12px 0 0;
  color: #6c5b3d;
  font-size: .79rem;
  line-height: 1.55;
}

.bond-disclaimer {
  color: var(--bond-muted);
}

.bond-copy {
  width: 100%;
  margin-top: 14px;
}

.bond-data-section,
.bond-guide,
.bond-faq,
.bond-sources,
.bond-related {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--bond-line);
}

.bond-data-section p,
.bond-guide p,
.bond-faq p,
.bond-sources p,
.bond-related p {
  color: #596b81;
  line-height: 1.75;
}

.bond-table {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--bond-line);
  border-radius: 7px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.bond-table table {
  width: 100%;
  min-width: 610px;
  margin: 0;
  border-collapse: collapse;
}

.bond-table th,
.bond-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #e4eaee;
  color: #42556d;
  font-size: .86rem;
  text-align: right;
  white-space: nowrap;
}

.bond-table th {
  background: var(--bond-soft);
  color: #263950;
  font-weight: 800;
}

.bond-table th:first-child,
.bond-table td:first-child,
.bond-table th:nth-child(2),
.bond-table td:nth-child(2) {
  text-align: left;
}

.bond-table tbody tr:last-child td {
  border-bottom: 0;
}

.bond-formulas,
.bond-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.bond-formulas > div,
.bond-compare article {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--bond-line);
  border-radius: 7px;
  background: var(--bond-soft);
}

.bond-formulas strong,
.bond-formulas span {
  display: block;
}

.bond-formulas strong,
.bond-compare h3 {
  margin: 0 0 8px;
  color: var(--bond-ink);
  font-size: 1rem;
}

.bond-formulas span,
.bond-compare p {
  margin: 0;
  color: #5c6e82;
  font-size: .87rem;
  line-height: 1.65;
}

.bond-guide h2:not(:first-of-type) {
  margin-top: 30px;
}

.bond-risk {
  padding: 16px;
  border: 1px solid #ead9b9;
  border-left: 4px solid var(--bond-gold);
  border-radius: 6px;
  background: var(--bond-gold-soft);
}

.bond-faq details {
  border-bottom: 1px solid var(--bond-line);
}

.bond-faq summary {
  padding: 16px 4px;
  color: var(--bond-ink);
  font-weight: 750;
  cursor: pointer;
}

.bond-faq details p {
  margin: 0;
  padding: 0 4px 17px;
}

.bond-sources ul {
  margin: 16px 0 10px;
  padding-left: 21px;
}

.bond-sources li {
  margin: 8px 0;
}

.bond-sources a {
  color: var(--bond-green-dark);
  text-underline-offset: 3px;
}

.bond-related > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.bond-related a {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--bond-line);
  border-radius: 7px;
  background: #fff;
  text-decoration: none;
}

.bond-related a:hover,
.bond-related a:focus-visible {
  border-color: #83beb5;
  background: #fbfefd;
}

.bond-related strong,
.bond-related span {
  display: block;
  overflow-wrap: anywhere;
}

.bond-related strong {
  color: var(--bond-ink);
  font-size: 1rem;
}

.bond-related span {
  margin-top: 7px;
  color: var(--bond-muted);
  font-size: .82rem;
  line-height: 1.5;
}

@media screen and (max-width: 980px) {
  .bond-tool.has-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .bond-formulas,
  .bond-compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .bond-formulas > div,
  .bond-compare article {
    min-height: 0;
  }
}

@media screen and (max-width: 620px) {
  .bond-heading {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 14px;
  }

  .bond-heading img {
    width: 92px;
    height: 92px;
  }

  .bond-heading h1 {
    font-size: 2rem;
  }

  .bond-heading > div > p:not(.bond-eyebrow) {
    grid-column: 1 / -1;
    font-size: .96rem;
  }

  .bond-heading nav {
    grid-column: 1 / -1;
  }

  .bond-standard {
    flex-direction: column;
    gap: 5px;
  }

  .bond-tool {
    padding: 17px 14px;
  }

  .bond-panel-heading {
    align-items: center;
  }

  .bond-panel-heading h2,
  .bond-data-section h2,
  .bond-guide h2,
  .bond-faq h2,
  .bond-sources h2,
  .bond-related h2 {
    font-size: 1.38rem;
  }

  .bond-fields,
  .bond-date-fields,
  .bond-related > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .bond-field.bond-wide {
    grid-column: auto;
  }

  .bond-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .bond-key-results {
    grid-template-columns: minmax(0, 1fr);
  }

  .bond-breakdown > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .bond-breakdown dd {
    text-align: left;
  }

  .bond-result {
    padding: 17px 14px;
  }

  .bond-related a {
    min-height: 96px;
  }
}

@media screen and (max-width: 380px) {
  .bond-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .bond-heading img {
    width: 100%;
    height: 118px;
  }

  .bond-heading h1 {
    font-size: 1.55rem;
  }

  .bond-heading h1 span {
    display: block;
  }

  .bond-modes button,
  .bond-detail-modes button {
    min-height: 48px;
    padding: 8px 5px;
    font-size: .82rem;
  }

  .bond-period {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .bond-panel-heading > span {
    display: none;
  }
}
