@font-face {
  font-family: 'Avenir Regular';
  src: url('../../fonts/AvenirRegular.ttf') format('truetype');
}
body {
  font-family:'Avenir Regular','Helvetica',sans-serif;
  font-size: 12px;
}
.site-header {
  background-color: #ffea97;
  padding: 10px 10px 3px 10px;
  margin: -10px;
}
.site-content {
  padding: 15px;
}
.site-logo {
  height: 40px;
}
.site-menu {
  float: right;
  margin: 1px;
  font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif;
  font-size: 12px;
}
.site-footer {
  background-color: #ffea97;
  padding: 1px;
  margin: -10px;
  font-size: 8px;
  font-style: italic;
  text-align: center;
}
h2 { color: #228B22; }
table {
  border-collapse: collapse;
}
tr, th, td {
  border: 1px solid #fff;
  padding: 0.5rem;
}
.sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.5em;
  color: #ffffff;
  vertical-align: calc(-0.5ex + 4px);
}
span.N { 
  font-size: 8px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #FEB21A;
}
span.L { 
  font-size: 8px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #EAC8A6;
}
span.C { 
  font-size: 8px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #CCCCCC;
}
span.House {
  font-size: 8px;
  border-radius: 10%;
  background-color: #E3634E; 
}
span.Senate {
  font-size: 8px;
  border-radius: 10%;
  background-color: #6490C5 ;
}
span.event-date {
  font-size: 8px;
  color: #aaa;
}
.table-columns {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.table-column {
  flex: 1;
  min-width: 0; /* prevents table overflow issues in flex children */
}
table.split-table {
  border-collapse: collapse;
}
/* Stack on mobile */
@media (max-width: 768px) {
  .table-columns {
    flex-direction: column;
  }
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.popup-box {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 350px;
  width: 90%;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.overlay.active .popup-box {
  transform: translateY(0);
}
.btn, .close-btn {
  padding: 8px 16px;
  background-color: #ffea97;
  color: black;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family:'Avenir Regular','Helvetica',sans-serif;
  font-size: 12px;
}
.close-btn {
  margin-top: 15px;
}