.threads-page .archive-banner__sign p {
  font-style: italic;
}

.archive-shell__head {
  margin-bottom: 10px;
}

.thread-filterboard {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 14px 16px 12px;
  margin: 6px 0 14px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 11px),
    linear-gradient(#a87447, #7a512e);
  border: 3px solid #4d2f15;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 228, 180, .18),
    inset 0 -10px 18px rgba(0, 0, 0, .22),
    0 3px 0 rgba(0, 0, 0, .25);
  color: #fff4d4;
}

.thread-filterboard .filter-field {
  color: #fff4d4;
}

.thread-filterboard .filter-field span {
  color: #fff4d4;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
  font-family: "Rye", Georgia, serif;
  font-size: 11px;
  letter-spacing: .04em;
}

.thread-filterboard .filter-field input,
.thread-filterboard .filter-field select {
  background: #fff4d4;
  color: #2b190b;
  border: 2px solid #4d2f15;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
  padding: 6px 8px;
  font-family: "Caudex", Georgia, serif;
}

.thread-filterboard .archive-button.thread-reset {
  height: 38px;
  align-self: end;
}

.thread-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 10px;
  font-family: "Rye", Georgia, serif;
  color: #5b3f15;
}

.thread-count {
  font-size: 13px;
}

.pagination--top {
  margin: 0;
}

.thread-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 42px 26px;
  padding: 32px 22px 40px;
  background:
    radial-gradient(rgba(0, 0, 0, .18) 1px, transparent 1.4px) 0 0/12px 12px,
    radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.4px) 6px 6px/12px 12px,
    repeating-linear-gradient(125deg, rgba(0, 0, 0, .04) 0 1px, transparent 1px 6px),
    linear-gradient(#c08758, #a8754a);
  border: 4px solid #4d2f15;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, .18),
    inset 0 4px 14px rgba(0, 0, 0, .28),
    inset 0 -6px 14px rgba(255, 228, 180, .12);
  min-height: 280px;
}

.thread-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-family: "Kalam", "Special Elite", Georgia, cursive;
  font-size: 16px;
  color: #fff4d4;
  background: rgba(0, 0, 0, .22);
  padding: 26px 16px;
  border-radius: 6px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}

.thread-pin {
  --tack: #c83434;
  --tack-glint: #ff8a6c;
  --tape-shift: 0px;
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 6px 6px;
  background: transparent;
  transform-origin: top center;
  transition: transform .2s ease, box-shadow .2s ease;
  contain: layout style;
}

.thread-pin__tack {
  position: absolute;
  top: 0;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--tack-glint) 0 26%, var(--tack) 70%);
  border: 1px solid rgba(0, 0, 0, .45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .45),
    0 3px 5px rgba(0, 0, 0, .42);
  transform: translateX(-50%);
  transition: transform .2s ease;
  z-index: 4;
}

.thread-pin__tack::after {
  content: "";
  position: absolute;
  top: 60%;
  left: 50%;
  width: 2px;
  height: 6px;
  background: rgba(0, 0, 0, .55);
  transform: translateX(-50%);
  border-radius: 1px;
}

.thread-pin__tape {
  position: absolute;
  top: 6px;
  width: 38px;
  height: 13px;
  background: linear-gradient(rgba(255, 243, 180, .6), rgba(255, 222, 140, .42));
  border-left: 1px dashed rgba(0, 0, 0, .06);
  border-right: 1px dashed rgba(0, 0, 0, .06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  pointer-events: none;
  z-index: 1;
}

.thread-pin__tape--left {
  left: calc(20% - var(--tape-shift));
  transform: rotate(-18deg);
}

.thread-pin__tape--right {
  right: calc(20% + var(--tape-shift));
  transform: rotate(18deg);
}

.thread-pin__title-slip {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(120, 70, 30, .06) 0 1px, transparent 1px 20px),
    linear-gradient(#fff6d7, #efd49a);
  padding: 8px 10px 8px 36px;
  border: 1px solid #9e6329;
  border-radius: 2px;
  margin: 0 6px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 218, .55),
    0 2px 0 rgba(0, 0, 0, .12),
    0 5px 7px rgba(0, 0, 0, .2);
  z-index: 2;
  min-height: 38px;
}

.thread-pin__num {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%) rotate(-6deg);
  font-family: "Rye", Georgia, serif;
  color: #a13018;
  font-size: 11px;
  background: #fff4d4;
  border: 1px solid #9e6329;
  padding: 2px 5px;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
  white-space: nowrap;
}

.thread-pin__title {
  margin: 0;
  font-family: "Kalam", "Special Elite", Georgia, cursive;
  font-size: 13.5px;
  line-height: 1.22;
  color: #4b2c16;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-pin__photo {
  display: block;
  position: relative;
  padding: 8px 8px 34px;
  background: #fff;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, .08),
    0 10px 14px rgba(0, 0, 0, .3),
    inset 0 0 0 1px rgba(0, 0, 0, .04);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.thread-pin__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0e2c4;
  border-radius: 1px;
}

.thread-pin__photo-fallback {
  display: none;
  position: absolute;
  inset: 8px 8px 34px;
  place-items: center;
  font-size: 56px;
  color: #d96d35;
  background:
    radial-gradient(circle at center, #fff6d7 0%, #f0e2c4 100%);
  border-radius: 1px;
}

.thread-pin__photo--missing .thread-pin__photo-fallback {
  display: grid;
}

.thread-pin__caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-family: "Kalam", "Special Elite", Georgia, cursive;
  font-size: 11.5px;
  color: #5b3f15;
}

.thread-pin__date { font-weight: 700; }
.thread-pin__id   { color: #9e6329; font-size: 10.5px; }

.thread-pin__cta {
  display: block;
  text-align: center;
  font-family: "Rye", Georgia, serif;
  font-size: 11px;
  color: #6f2c16;
  text-decoration: none;
  padding: 5px 0 1px;
  margin: 0 6px;
  border-top: 1px dashed rgba(133, 84, 33, .35);
  transition: color .15s ease, transform .15s ease;
}

.thread-pin__cta:hover,
.thread-pin__cta:focus-visible {
  color: #a13018;
  transform: translateY(-1px);
  text-decoration: underline dotted;
  outline: none;
}

.thread-pin--live {
  --tack: #e8a23a;
  --tack-glint: #fff1c8;
}

.thread-pin--live .thread-pin__tack {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .55),
    0 3px 5px rgba(0, 0, 0, .42),
    0 0 0 3px rgba(255, 220, 120, .35),
    0 0 14px rgba(255, 196, 70, .65);
  animation: thread-pin-pulse 2.6s ease-in-out infinite;
}

.thread-pin--live .thread-pin__title-slip {
  background:
    repeating-linear-gradient(0deg, rgba(180, 120, 30, .07) 0 1px, transparent 1px 20px),
    linear-gradient(#fff9dd, #f4d785);
  border-color: #b07a1e;
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 218, .65),
    0 2px 0 rgba(0, 0, 0, .14),
    0 6px 9px rgba(0, 0, 0, .22),
    0 0 10px rgba(255, 196, 70, .35);
}

.thread-pin--live .thread-pin__num {
  background: #ffe8a3;
  color: #8a3a14;
}

.thread-pin__live-sticker {
  position: absolute;
  top: -12px;
  right: 4px;
  z-index: 5;
  font-family: "Rye", Georgia, serif;
  font-size: 10px;
  letter-spacing: .14em;
  color: #fff4d4;
  background: linear-gradient(#d96d35, #a13018);
  border: 1px solid #6b2a13;
  padding: 3px 7px 2px;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .25) inset,
    0 2px 0 rgba(0, 0, 0, .25),
    0 0 12px rgba(255, 130, 60, .55);
  transform: rotate(7deg);
  animation: thread-pin-sticker 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes thread-pin-pulse {
  0%, 100% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .55),
      0 3px 5px rgba(0, 0, 0, .42),
      0 0 0 3px rgba(255, 220, 120, .35),
      0 0 12px rgba(255, 196, 70, .55);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .65),
      0 3px 5px rgba(0, 0, 0, .42),
      0 0 0 5px rgba(255, 220, 120, .45),
      0 0 22px rgba(255, 196, 70, .85);
  }
}

@keyframes thread-pin-sticker {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50%      { transform: rotate(5deg) translateY(-2px); }
}

.thread-pin--readable {
  --tack: #5b8a3c;
  --tack-glint: #c7e09a;
}

.thread-pin--readable .thread-pin__title-slip {
  background:
    repeating-linear-gradient(0deg, rgba(85, 110, 35, .08) 0 1px, transparent 1px 20px),
    linear-gradient(#f4f5d3, #d9d488);
  border-color: #6e8a37;
  box-shadow:
    inset 0 0 0 1px rgba(255, 252, 230, .65),
    0 2px 0 rgba(0, 0, 0, .14),
    0 6px 9px rgba(0, 0, 0, .22),
    0 0 10px rgba(155, 196, 70, .25);
}

.thread-pin--readable .thread-pin__num {
  background: #e8efb7;
  color: #466014;
  border-color: #6e8a37;
}

.thread-pin__readable-sticker {
  position: absolute;
  top: -10px;
  left: 4px;
  z-index: 5;
  font-family: "Rye", Georgia, serif;
  font-size: 9.5px;
  letter-spacing: .14em;
  color: #fff8df;
  background: linear-gradient(#79934a, #466014);
  border: 1px solid #2c3e10;
  padding: 3px 7px 2px;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .25) inset,
    0 2px 0 rgba(0, 0, 0, .25),
    0 0 10px rgba(155, 196, 70, .35);
  transform: rotate(-9deg);
  pointer-events: none;
}

.thread-pin--archive-lost .thread-pin__photo img {
  opacity: .9;
}

.thread-pin--archive-lost .thread-pin__photo::before {
  content: "archive";
  position: absolute;
  top: 14px;
  right: 12px;
  background: rgba(255, 244, 212, .9);
  color: #6f2c16;
  font-family: "Kalam", "Special Elite", Georgia, cursive;
  font-size: 9.5px;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid rgba(133, 84, 33, .4);
  transform: rotate(-7deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  z-index: 2;
  pointer-events: none;
}

.thread-pin:hover,
.thread-pin:focus-within {
  transform: rotate(0deg) translateY(-5px) !important;
  box-shadow: 0 8px 10px rgba(0, 0, 0, .18);
  z-index: 5;
}

.thread-pin:hover .thread-pin__tack,
.thread-pin:focus-within .thread-pin__tack {
  transform: translateX(-50%) translateY(-1px) scale(1.1) rotate(8deg);
}

@media (max-width: 880px) {
  .thread-filterboard {
    grid-template-columns: 1fr 1fr;
  }
  .thread-filterboard .filter-field--search {
    grid-column: 1 / -1;
  }
}

@media (hover: none) {
  .thread-pin:hover {
    transform: rotate(0deg) translateY(0) !important;
    box-shadow: none;
  }
}

@-moz-document url-prefix() {
  .thread-board {
    background:
      radial-gradient(rgba(0, 0, 0, .14) 1px, transparent 1.4px) 0 0/12px 12px,
      linear-gradient(#c08758, #a8754a);
  }
}
