/* Shared navigation, breadcrumbs, and the inline amount editor. */
header.site .wrap { gap: 24px; }
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { margin-left: 0; white-space: nowrap; }
nav.main a[aria-current] { color: var(--brand-d); font-weight: 700; }
#main-content, #states, #tools, #calculator { scroll-margin-top: 76px; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  background: #fff;
  color: var(--brand-d);
  z-index: 20;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; column-gap: 8px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a:hover { text-decoration: underline; }
.amount-page .hero { padding: 22px 0 12px; }
.amount-page .hero p { margin-bottom: 6px; }
.amount-summary { margin: 12px 0 20px; }
.amount-summary .summary-lead { margin-top: 0; }
.table-scroll { overflow-x: auto; }
.amount-editor { margin: 12px 0; }
.amount-editor > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid #b9ceff;
  border-radius: 8px;
  color: var(--brand-d);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.amount-editor > summary::-webkit-details-marker { display: none; }
.amount-editor > summary::before { content: "+"; }
.amount-editor[open] > summary::before { content: "−"; }
.amount-editor .calc { margin: 10px 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }

@media (max-width: 740px) {
  header.site { position: static; }
  header.site .wrap { display: block; height: auto; }
  header.site .logo { display: inline-flex; align-items: center; min-height: 43px; }
  header.site nav.main { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  nav.main a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 4px;
    min-height: 44px;
    white-space: normal;
    text-align: center;
    font-size: 13px;
    line-height: 1.2;
  }
  #main-content, #states, #tools, #calculator { scroll-margin-top: 10px; }
  .amount-summary { padding: 16px; }
}
