body {
  margin: 0;
}

.top-banner {
  background-color: #fff;
  color: #1a1a1a;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  padding: .5em;
}

.top-banner[role="banner"] {
  display: block;
}

/* Button styling */
.state-info-tab_button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

/* Focus outline for keyboard users */
.state-info-tab_button:focus {
  outline: 2px solid #2683c9;
  outline-offset: 2px;
}

/* Caret icon */
.state-info-tab_button::after {
  content: "\276F";
  width: 1em;
  height: 1em;
  text-align: center;
  transform: rotate(90deg);
  transition: transform 0.35s;
  margin-left: 10px;
  display: inline-block;
}

/* Rotate caret when expanded */
.state-info-tab_button[aria-expanded="true"]::after {
  transform: rotate(270deg);
}

.state-info-tab_button > span {
  color: #1f6aad; /* Contrast-safe blue */
  margin-left: 2px;
  text-decoration: underline;
}

/* Panel styling */
.state-info-tab_content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* Panel open state for animation */
.state-info-tab_content.open {
  max-height: 30rem;
}

/* Inner content */
.state-info-tab_content p {
  margin: 0;
  padding: 1rem;
}

.state-info-tab_content_container {
  display: flex;
  max-width: 800px;
}

.state-info-tab_content_container > div {
  margin: 0 .75em;
}

.state-info-tab_content_container span {
  display: block;
}

/* Responsive layout */
@media (max-width: 960px) {
  .state-info-tab_content_container {
    flex-direction: column;
    min-width: 100%;
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .state-info-tab_content,
  .state-info-tab_button::after {
    transition: none;
  }
}
