.download-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.download-icon {
  width: 1.5em;
  height: 1.5em;
  filter: grayscale(100%);   /* matches the grayscale header logo */
}
.download-button:hover .download-icon {
  filter: none;
  -webkit-filter: none;
}

/* Blog list: keep the date column a fixed width so it doesn't shrink
   (and wrap unpredictably) when a neighboring post title is long enough
   to need two lines. */
#archive .post-list .post-item .meta,
#writing .post-list .post-item .meta {
  flex-shrink: 0;
  width: 18ch;
}
#archive .post-list .post-item span,
#writing .post-list .post-item span {
  flex: 1 1 auto;
  min-width: 0;
}

/* Wide tables (wrapped by layouts/_markup/render-table.html).
   On wide screens the table breaks out of the 48rem text column;
   on narrow ones it scrolls horizontally with the first column pinned. */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  /* Right-edge shadow hinting that the table scrolls. The white "cover"
     scrolls with the content (local) and hides the shadow once the reader
     reaches the last column; the shadow itself stays pinned to the edge
     (scroll). If the table fits, cover and shadow overlap, so nothing shows. */
  background:
    linear-gradient(to left, #fff 40%, rgba(255, 255, 255, 0)) right / 2.5rem 100% no-repeat local,
    linear-gradient(to left, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0)) right / 1.25rem 100% no-repeat scroll;
}
@media (min-width: 64rem) {
  .table-wrap {
    width: min(94vw, 64rem);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}
.table-wrap table {
  display: table;          /* theme sets display: block on tables */
  min-width: 64rem;
  overflow: visible;
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: normal;
}
/* Give the text-heavy columns room so they don't collapse next to the
   no-wrap address columns. */
.table-wrap td:nth-child(4),
.table-wrap td:nth-child(5) {
  min-width: 14rem;
}
.table-wrap td:nth-child(6) {   /* jurisdiction */
  white-space: nowrap;
}
.table-wrap th,
.table-wrap td {
  padding: 0.5rem 0.5rem;
  vertical-align: top;
  border-bottom: 1px solid #ddd;
}
.table-wrap code {
  white-space: nowrap;     /* keep addresses and URLs on one line */
}
.table-wrap th:first-child,
.table-wrap td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}
