@import "common.css";

/* Expando */

/* An h3 (or 3 or 4) is used for section titling for groups
   of exandos */
.expando {
    margin-top: 12px;
    margin-left: 0em;
}

.expando h2 {
  margin-top: 1.3em;
}

/* Expander is the element that opens a matching other element */
.expando h2 + .expander {
  margin-top: 6px;
}
.expando .expander {
  margin-top: 12px;
  cursor: pointer;
  font-weight: bold;
  color: var(--usaBlue);
  /* font-size: 0; */
  text-indent: 1.6rem hanging;
}
.expando .expander:hover {
  color: var(--usaRed);
}
/* Control is a special icon or thing in the expander which switches state */
.expando .control {
  font-weight: normal;
  color: var(--usaBlue);
  margin-left: 0.0em;
}
.expando .control:hover {
    text-decoration: underline;
}

/* .expando .expander, .expando .expandee {
  display: flex;
  flex-direction: row;
} */

/* Expandee is the thing that is hidden and is opened when the expander is clicked. */
.expando .expandee {
    /* font-size: 0; */

  border: 2px solid var(--usaLightBlue);
  border-radius: 1rem;
  padding: 1rem;
}

.expando .expandee.-open {
    display: block;
}


/* .expando .-row {
  display: table-row;
}
.expando .-cell { 
   padding: 4px;
   display: table-cell;
} */

h2 + .expander {
  margin-top: 0.8em;
}
/* 
.expandee > .-col:nth-child(2){
  border: 1px solid rgba(200, 200, 200, 0.5);
  border-radius: 1rem;
  padding: 1rem;
} */


.expando > .expander .control {
  width: 1.5rem;
  text-align: center;
  font-size: 80%;
}

.expando .expandee ul > li +  li {
  margin-top: 0.5rem;
}
