.newsletter-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.newsletter-tab-list button {
  border: 1px solid #28577a;
  border-radius: 8px;
  padding: 9px 14px;
  background: var(--panel, #101a29);
  color: #a9d9fb;
  font-weight: 700;
}
.newsletter-tab-list button[aria-selected="true"] {
  color: #ecf8ff;
  background: #125880;
}
.newsletter-tab-list #newsletter-results-tab {
  color: #ff9c9c;
  border-color: #bd545d;
}
.newsletter-tab-list #newsletter-results-tab[aria-selected="true"] {
  color: #fff;
  background: #9d333c;
}
.newsletter-archive-content [role="tabpanel"][hidden] { display: none; }
.newsletter-week + .newsletter-week { margin-top: 28px; }
.newsletter-week h2 { margin: 0; font-size: 28px; }
.newsletter-coming-soon { margin-top: auto; color: var(--muted, #b8cadb); font-weight: 700; }
.newsletter-archive-content .newsletter-access-note {
  align-items: center;
  margin-bottom: 24px;
  padding: 10px 16px;
}
.newsletter-archive-content .newsletter-access-note p { font-size: 14px; }
.newsletter-archive-content .newsletter-access-note > a { grid-row: auto; }
.newsletter-week-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.newsletter-week-heading p {
  margin: 0;
  color: var(--muted, #b8cadb);
  font-size: 14px;
}
.newsletter-week--current .newsletter-archive-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.newsletter-week--current .newsletter-archive-card {
  --issue-accent: #86d3fa;
  --issue-glow: #1b3e57;
  display: grid;
  align-items: stretch;
  padding: 0;
  border: 1px solid #314a63;
  border-radius: 14px;
  background: #101d2c;
  box-shadow: 0 10px 25px #02070e40;
}
.newsletter-week--current .newsletter-archive-card.houston { --issue-glow: #1b3c58; }
.newsletter-week--current .newsletter-archive-card.mexico-city {
  --issue-accent: #d8c5ff;
  --issue-glow: #443054;
}
.newsletter-week--current .newsletter-archive-card.washington {
  --issue-accent: #ffd3a0;
  --issue-glow: #562c32;
}
.newsletter-archive-card .newsletter-card-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: inherit;
  color: #f3f7fc;
  text-decoration: none;
  background: radial-gradient(ellipse at 96% 0%, var(--issue-glow), transparent 65%);
}
.newsletter-archive-card .newsletter-card-link:focus-visible {
  outline: 3px solid var(--issue-accent);
  outline-offset: 3px;
}
.newsletter-archive-card:has(.newsletter-card-link:hover) { border-color: var(--issue-accent); }
.newsletter-card-copy { padding: 12px 12px 9px; }
.newsletter-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-bottom: 6px;
  color: #c6d6e6;
  font-size: 11px;
}
.newsletter-card-slot {
  color: var(--issue-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.newsletter-week--current .newsletter-archive-card h3 {
  margin-bottom: 6px;
  color: #f3f7fc;
  font-size: 20px;
  line-height: 1.12;
}
.newsletter-matchup-at {
  color: #b3c8da;
  font-size: .76em;
  font-weight: 500;
}
.newsletter-card-link .newsletter-card-angle {
  color: #d3dfed;
  font-size: 12px;
  line-height: 1.35;
}
.newsletter-card-art {
  margin: auto 12px 0;
  overflow: hidden;
  border: 1px solid #567089;
  border-radius: 8px;
  background: #173049;
}
.newsletter-card-art img { display: block; width: 100%; height: auto; }
.newsletter-card-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--issue-accent);
  font-size: 13px;
  font-weight: 750;
}
.newsletter-card-link:hover .newsletter-card-action span:first-child { text-decoration: underline; }
.newsletter-card-arrow { font-size: 18px; line-height: 1; }
.newsletter-week--current .newsletter-card--upcoming {
  align-content: start;
  gap: 10px;
  padding: 18px;
}
.newsletter-week--current .newsletter-archive-card .newsletter-download-filename {
  overflow-wrap: anywhere;
  font-size: 11px;
}
.newsletter-week--past {
  border: 1px solid var(--line, #28415c);
  border-radius: 10px;
  padding: 13px 14px;
  background: var(--panel, #101a29);
}
.newsletter-week--past h2 { font-size: 20px; }
.newsletter-week--past + .newsletter-week--past { margin-top: 12px; }
.newsletter-past-issues {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.newsletter-past-issues li { display: grid; align-content: start; gap: 3px; font-size: 14px; }
.newsletter-issue-slot { color: var(--muted, #b8cadb); font-size: 12px; }
.newsletter-issue-title { font-weight: 600; }
.newsletter-past-issues .newsletter-pdf-link { justify-self: start; font-size: 13px; }
@media (max-width: 1099px) {
  .newsletter-week--current .newsletter-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .newsletter-week--current .newsletter-archive-grid,
  .newsletter-past-issues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .newsletter-week--current .newsletter-archive-grid,
  .newsletter-past-issues { grid-template-columns: minmax(0, 1fr); }
}
#newsletter-history .newsletter-results-group {
  border: 2px solid #30475e;
  border-radius: 12px;
  padding: clamp(12px, 2.5vw, 22px);
  background: var(--panel, #101a29);
  min-width: 0;
}
#newsletter-history .newsletter-results-group + .newsletter-results-group {
  margin-top: clamp(20px, 3vw, 30px);
}
#newsletter-history h2 { margin: 0 0 16px; font-size: 26px; }
#newsletter-history h3 { margin: 0 0 14px; font-size: 20px; }
#newsletter-history .newsletter-history-note { color: var(--muted, #b8cadb); margin: 14px 0 0; font-size: 12px; line-height: 1.5; }
#newsletter-history .newsletter-table-wrap { overflow: auto; }
#newsletter-history table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
#newsletter-history th,
#newsletter-history td { padding: .55rem .65rem; border-bottom: 1px solid var(--line, #28415c); text-align: left; white-space: nowrap; }
#newsletter-history th[scope="col"] { color: #add7f5; background: #172538; }
#newsletter-history tfoot th,
#newsletter-history tfoot td { border-top: 2px solid var(--line, #28415c); font-weight: 700; }
@media (max-width: 540px) {
  #newsletter-history h2 { font-size: 22px; }
  #newsletter-history .newsletter-results-group th,
  #newsletter-history .newsletter-results-group td { padding: 7px 4px; white-space: normal; font-size: 13px; }
}


#newsletter-history .newsletter-showdown-source {
  display: block;
  margin-top: 3px;
  color: var(--muted, #b8cadb);
  font-size: 12px;
  font-weight: 400;
}
@media (max-width: 680px) {
  #newsletter-history .newsletter-showdown-table,
  #newsletter-history .newsletter-showdown-table tbody,
  #newsletter-history .newsletter-showdown-table tfoot {
    display: block;
  }
  #newsletter-history .newsletter-showdown-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #newsletter-history .newsletter-showdown-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line, #28415c);
    padding: 4px 0;
  }
  #newsletter-history .newsletter-showdown-table th,
  #newsletter-history .newsletter-showdown-table td {
    border: 0;
    padding: 6px 4px;
    white-space: normal;
  }
  #newsletter-history .newsletter-showdown-table th[scope="row"] { grid-column: 1 / -1; }
  #newsletter-history .newsletter-showdown-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: #add7f5;
    font-size: 12px;
    font-weight: 600;
  }
  #newsletter-history .newsletter-showdown-table .newsletter-showdown-blank { display: none; }
}

.newsletter-archive-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.newsletter-archive-table :is(th, td) { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line, #28415c); }
.newsletter-archive-table th[scope="col"] { font-size: 11px; color: #a5c7e5; }
.newsletter-archive-table th[scope="row"] { font-weight: 650; }
.newsletter-archive-table :is(td, th):last-child { text-align: right; }
.newsletter-archive-table .newsletter-pdf-link { color: #a7dcff; white-space: nowrap; }
@media (max-width: 480px) {
  .newsletter-archive-table { font-size: 12px; }
  .newsletter-archive-table :is(th, td) { padding: 7px 4px; }
}
