.item-deck .packet {
  --animal-paper: #f6ecd9;
  --animal-dot: #d4bfa0;
  --animal-tag: #f1dab0;
}
.item-deck .packet[data-tone="green"] {
  --animal-paper: #edf1df;
  --animal-dot: #cad2ad;
  --animal-tag: #dbe5bd;
}
.item-deck .packet[data-tone="blue"] {
  --animal-paper: #e9eff1;
  --animal-dot: #c0cfd1;
  --animal-tag: #d6e6e9;
}
.item-deck .packet[data-tone="lilac"] {
  --animal-paper: #f0e9f4;
  --animal-dot: #cdbbd5;
  --animal-tag: #e4d7ec;
}
.item-deck .packet-face img {
  image-rendering: pixelated;
}
.item-theme {
  font-size: 0.8rem;
  margin: 0 0 8px;
  text-align: center;
  line-height: 1.25;
}
.item-deck .item-progress {
  width: min(100%, 320px);
  height: 6px;
  overflow: hidden;
  background: #c5d4ba;
  border-radius: 4px;
}
.item-deck .item-progress > i {
  height: 100%;
  min-width: 3px;
  background: var(--orange);
  display: block;
  border-radius: inherit;
}
.item-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}
.item-category-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 3px 10px;
  min-height: 70px;
  padding: 11px 13px;
  background: var(--face);
  border: 1px solid #bfb49d;
  border-radius: 8px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.item-category-choice:hover,
.item-category-choice[aria-pressed="true"] {
  background: var(--mint);
  border-color: var(--green);
}
.item-category-choice[aria-pressed="true"] {
  box-shadow: inset 3px 0 var(--green);
}
.item-category-choice:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.item-category-name {
  font-weight: 750;
  line-height: 1.25;
}
.item-category-count {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--green);
  white-space: nowrap;
}
.item-category-examples {
  grid-column: 1 / -1;
  font-size: 0.83rem;
  line-height: 1.35;
  color: var(--muted);
}
@media (max-width: 900px) {
  .item-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 530px) {
  .item-category-choice {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 3px;
    padding: 11px 10px;
    min-height: 94px;
  }
  .item-category-examples {
    grid-row: 3;
  }
}
.item-index {
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
}
.item-index li {
  display: flex;
  align-items: center;
  list-style: none;
  border-bottom: 1px solid #cec2a8;
  min-height: 43px;
}
.item-index a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  width: 100%;
  padding: 7px 2px;
  font-weight: 700;
  color: #2d251b;
  overflow-wrap: anywhere;
}
.item-index a[aria-current] {
  color: #9c3519;
}
.item-index img {
  width: 29px;
  height: 29px;
  image-rendering: pixelated;
  object-fit: contain;
  flex: none;
}
.item-index-empty {
  font-size: 0.95rem;
  grid-column: 1 / -1;
}
.item-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}
.item-index-status,
.item-download-count {
  font-size: 0.9rem;
  color: #4c4437;
}
.item-pagination button[disabled],
#previous-item[disabled],
#next-item[disabled] {
  opacity: 0.55;
  box-shadow: none;
}
.item-deck .item-edge-label {
  max-width: 95%;
  text-align: center;
  line-height: 1.3;
}
.hero-copy p.item-meta {
  font-size: 0.89rem;
  line-height: 1.45;
  margin: 15px 0 0;
}
.item-meta {
  font-size: 0.89rem;
  max-width: 65ch;
  color: #4e483b;
}
.series-item-search {
  text-align: left;
  max-width: 32rem;
  margin: 0 0 18px;
}
.series-item-search label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
}
.series-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: stretch;
}
.series-search-row input {
  width: 100%;
  min-width: 0;
  padding: 10px 13px;
  min-height: 46px;
  border: 1px solid #85795e;
  border-radius: 8px;
  background: #fffaf0;
  color: #221b15;
  font: inherit;
  font-size: 1rem;
}
.series-search-row .btn {
  min-height: 46px;
  white-space: nowrap;
}
.series-search-row .btn[disabled] {
  opacity: 0.65;
  box-shadow: none;
  cursor: default;
}
.series-item-search .item-meta {
  min-height: 1.4em;
  margin: 8px 0 0;
}
.item-quick-results {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.item-quick-results[hidden] {
  display: none;
}
.item-quick-results button {
  font: inherit;
  color: inherit;
  padding: 6px 10px;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
  background: #fffaf0;
  border: 1px solid #bfb49d;
  border-radius: 6px;
  cursor: pointer;
}
.item-quick-results button:hover {
  background: #f1e3cc;
}
.item-deck[aria-disabled="true"] > :not(.item-deck-empty) {
  display: none;
}
.item-deck[aria-disabled="true"] {
  min-height: clamp(255px, 35vw, 450px);
  display: grid;
  place-items: center;
}
.item-deck-empty {
  text-align: center;
  max-width: 26ch;
}
.item-deck-empty h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
.item-deck-empty p {
  margin: 8px 0 0;
}
.item-pdf-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.item-pdf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 76px;
  padding: 10px 0;
  border-top: 1px solid #bac7af;
}
.item-pdf-row h3 {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  margin: 0;
}
.item-pdf-row p {
  margin: 3px 0 0;
}
.item-pdf-row .btn {
  min-height: 44px;
  flex: none;
}
.item-download-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 13px;
  padding: 14px 0 8px;
  border-top: 1px solid #bac7af;
}
.item-download-extra .btn {
  min-height: 44px;
  text-align: left;
}
.item-related h2 {
  font-size: clamp(1.6rem, 2.9vw, 2.8rem);
  margin-bottom: 12px;
}
.item-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.item-related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-underline-offset: 0.18em;
}
@media (max-width: 680px) {
  .item-pdf-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 779px) {
  .item-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }
}
@media (max-width: 420px) {
  .item-index {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 300px) {
  .item-pagination {
    flex-wrap: wrap;
  }
}
