.b1031-related {
  margin: 28px auto 0;
  padding: 18px 20px;
  max-width: 1000px;
  border-top: 1px solid rgba(36, 56, 86, .18);
  background: rgba(246, 248, 251, .92);
}

.b1031-related-inner {
  max-width: 960px;
  margin: 0 auto;
}

.b1031-related-kicker {
  margin-bottom: 10px;
  color: #68788d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.b1031-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.b1031-related-links a {
  color: #243856;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.b1031-related-links a:hover,
.b1031-related-links a:focus {
  color: #0077b6;
  text-decoration: underline;
}

.b1031-state-source {
  max-width: 960px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border-left: 3px solid #35647e;
  background: #f6f8fb;
  color: #53657b;
  font-size: 13px;
  line-height: 1.55;
}

.b1031-state-source a {
  color: #243856;
  font-weight: 700;
}

.b1031-current-law-source {
  max-width: 960px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border-left: 3px solid #243856;
  background: #f6f8fb;
  color: #53657b;
  font-size: 12px;
  line-height: 1.55;
}

.b1031-current-law-source a {
  color: #243856;
  font-weight: 700;
}

/* One shared, native audio player for article executive summaries. The
   generated HTML uses preload="none" so audio never competes with LCP. */
.audio-player {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid #ccc;
  background: transparent;
  padding: 8px 12px;
  margin: 16px 0 18px;
}
.audio-player .ap-label {
  color: #555;
  font-size: 13px;
  font-weight: 700;
}
.audio-player audio {
  max-width: 100%;
  min-width: 260px;
  height: 34px;
}
@media (max-width: 520px) {
  .audio-player { align-items: flex-start; flex-direction: column; }
  .audio-player audio { min-width: 0; width: 100%; }
}

/* Preserve every directory item in the HTML for search and assistive
   technology, while allowing browsers to defer layout and paint for rows that
   are well below the fold. */
.insight-row,
.dtable tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: 0 104px;
}

/* Shared navigation and footer rules live in this cached asset rather than
   being repeated in every generated document. */
.main-nav .nav-item { position: relative; }
.main-nav .nav-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  padding-top: 10px;
  z-index: 60;
}
.main-nav .nav-item:hover .nav-drop,
.main-nav .nav-item:focus-within .nav-drop { display: block; }
.main-nav .nav-drop-inner {
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
  min-width: 235px;
  padding: 10px 0;
}
.main-nav .nav-drop a {
  display: block;
  font-family: "Roboto Condensed", "Roboto Narrow", Roboto, Arial, sans-serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: #243856;
  padding: 6px 16px;
  white-space: nowrap;
}
.main-nav .nav-drop a:hover { color: #0099ff; }
.main-nav .nav-drop a::after { content: none; }
.main-nav .nav-drop a::before {
  content: "\276F";
  display: inline-block;
  color: #ff9900;
  font-weight: 900;
  font-size: 11px;
  margin-right: 7px;
}
.mobile-menu a.sub {
  font-family: "Roboto Condensed", "Roboto Narrow", Roboto, Arial, sans-serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  padding: 5px 0 5px 18px;
}
.mobile-menu a.sub::before {
  content: "\276F";
  display: inline-block;
  color: #ff9900;
  font-weight: 900;
  font-size: 11px;
  margin-right: 7px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 26px;
  margin-top: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}
.footer-cols .fh {
  font-family: "Optima", Candara, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #243856;
  margin-bottom: 9px;
}
.footer-cols a {
  display: block;
  color: #243856;
  text-decoration: none;
  font-size: 13px;
  padding: 3px 0;
}
.footer-cols a:hover { color: #0099ff; }
.footer-cols a::before {
  content: "\276F";
  display: inline-block;
  color: #ff9900;
  font-weight: 900;
  font-size: 10px;
  margin-right: 6px;
}
.compliance-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
}
.compliance-chips span {
  border: 1px solid #ccc;
  color: #777;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
}
.legal-links { line-height: 1.9; }
@media (max-width: 820px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .b1031-related { padding: 16px; }
  .b1031-related-links { display: grid; gap: 8px; }
  .b1031-current-law-source { margin-left: 16px; margin-right: 16px; }
}
