/* Discovery controls extend the existing paper identity; hero and puppet stay intact. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.shelf-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font: 600 12px/1.4 var(--mono, monospace);
  flex-wrap: wrap;
}
.shelf-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.shelf-nav a:hover {
  border-color: currentColor;
}
.nav {
  flex-wrap: wrap;
}
.nav-note {
  margin-left: auto;
}
.project-tools {
  margin-bottom: 24px;
}
.catalog-save-status {
  grid-column: 1/-1;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
}
.catalog-save-status:empty {
  display: none;
}
.project-tools .filter-button,
.favorite-button,
.project-tools .random-project-button,
.project-tools select,
.view-switch button {
  min-height: 48px;
  font-size: 12px;
}
.project-tools #project-search {
  min-height: 48px;
  font-size: 16px;
}
.project-tools .search-clear {
  min-width: 48px;
  min-height: 48px;
}
.project-tools .search-wrap {
  padding-right: 0;
}
.favorite-button {
  padding: 10px 14px;
}
.view-switch {
  display: flex;
  gap: 4px;
}
.view-switch button {
  border: 1px solid var(--ink, #151918);
  background: var(--soft, #faf8f1);
  padding: 8px 16px;
  font: 600 12px/1.4 var(--mono, monospace);
  cursor: pointer;
}
.view-switch button[aria-pressed="true"] {
  background: var(--acid, #d4f778);
}
.project-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 24px 20px;
}
.project-secondary-actions a {
  margin: 0;
  padding: 12px 0;
  min-height: 48px;
  font: 600 12px/1.4 var(--mono, monospace);
  text-underline-offset: 4px;
}
.project-secondary-actions .project-profile-link {
  border: 0;
  width: auto;
}
.spotlight-actions {
  align-items: center;
}
.spotlight-actions .favorite-button {
  width: auto;
}
.spotlight[hidden] {
  display: none !important;
}
#project-grid[data-view="list"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
#project-grid[data-view="list"] .project {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}
#project-grid[data-view="list"] .project[hidden] {
  display: none !important;
}
#project-grid[data-view="list"] .project-link {
  display: grid !important;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 16px 24px !important;
}
#project-grid[data-view="list"] .preview {
  height: 100px !important;
  min-height: 0 !important;
  aspect-ratio: 8/5 !important;
  margin: 0 !important;
  transform: none !important;
  position: relative !important;
}
#project-grid[data-view="list"] .preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
#project-grid[data-view="list"] .tag-list {
  display: none !important;
}
#project-grid[data-view="list"] .card-bottom {
  padding: 0 !important;
  gap: 16px;
}
#project-grid[data-view="list"] .card-copy h3 {
  font-size: 28px !important;
  line-height: 1.1 !important;
  margin-bottom: 8px;
}
#project-grid[data-view="list"] .card-copy p {
  font-size: 15px !important;
  line-height: 1.5 !important;
  max-width: 70ch;
}
#project-grid[data-view="list"] .project-secondary-actions {
  padding-bottom: 8px;
}
.curated-collections {
  margin: 64px 0;
  padding: 32px 0;
  border-block: 1px solid var(--line, #ccc);
}
.curated-collections .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.curated-collections h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}
.curated-collections a {
  color: inherit;
}
.collection-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.collection-links > a {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--ink, #151918);
  padding: 24px;
  background: var(--soft, #faf8f1);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink, #151918);
}
.collection-links strong {
  font-size: 22px;
  line-height: 1.2;
}
.collection-links span {
  font-size: 15px;
  line-height: 1.5;
}
.collection-links a:hover {
  transform: translateY(-2px);
}
.decision-details {
  padding: 24px;
  border: 1px solid var(--line, #ccc);
  margin-top: 24px;
  background: var(--soft, #faf8f1);
}
.decision-details h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.decision-details dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}
.decision-details dt {
  font: 600 12px/1.5 var(--mono, monospace);
  text-transform: uppercase;
}
.decision-details dd {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.decision-details p {
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0 0;
}
.availability {
  border-top: 1px solid var(--line, #ccc);
  padding-top: 16px;
}
.editorial-page {
  --ink: #151918;
  --soft: #faf8f1;
  --line: #c8c6be;
  background: #f2efe7;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}
.editorial-page * {
  box-sizing: border-box;
}
.editorial-page a {
  color: inherit;
  text-underline-offset: 4px;
}
.editorial-page header,
.editorial-page main,
.editorial-page footer {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}
.editorial-page header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.editorial-brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.07em;
  text-decoration: none;
}
.editorial-page nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.editorial-page nav a {
  padding: 12px 0;
  font-size: 14px;
}
.editorial-page main {
  padding: 64px 0;
}
.editorial-page h1 {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  max-width: 15ch;
  margin: 16px 0 24px;
}
.editorial-lede {
  max-width: 60ch;
  font-size: 20px;
}
.editorial-kicker {
  font: 600 12px/1.5 monospace;
  text-transform: uppercase;
}
.editorial-page footer {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.editorial-page button {
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: #d4f778;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  font: inherit;
}
.editorial-page .skip-link {
  position: absolute;
  top: -100px;
}
.editorial-page .skip-link:focus {
  top: 8px;
  background: white;
  padding: 12px;
  z-index: 5;
}
.editorial-page :focus-visible {
  outline: 3px solid #e57868;
  outline-offset: 4px;
}
.collection-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.collection-projects article {
  border: 1px solid var(--ink);
  padding: 24px;
  background: var(--soft);
}
.collection-projects img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
}
.collection-projects h2 {
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.collection-project-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.collection-project-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}
.authored-updates {
  list-style: none;
  padding: 0;
  margin-top: 48px;
}
.authored-updates li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.authored-updates h2 {
  font-size: 30px;
  line-height: 1.2;
}
.authored-updates p {
  max-width: 70ch;
}
.editorial-page input {
  max-width: 100%;
  font: inherit;
  padding: 8px;
}
@media (max-width: 780px) {
  .shelf-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--line, #ccc);
    padding-top: 8px;
  }
  .shelf-nav a {
    font-size: 11px;
  }
  .project-tools {
    gap: 16px;
  }
  .catalog-actions {
    flex-wrap: wrap;
  }
  .project-tools .filter-button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .collection-links {
    grid-template-columns: 1fr;
  }
  .decision-details dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-projects {
    grid-template-columns: 1fr;
  }
  .editorial-page header {
    flex-wrap: wrap;
  }
  .editorial-page nav {
    gap: 16px;
  }
  .editorial-page main {
    padding-top: 40px;
  }
}
@media (max-width: 480px) {
  #project-grid[data-view="list"] .project-link {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 16px !important;
  }
  #project-grid[data-view="list"] .preview {
    display: none !important;
  }
  #project-grid[data-view="list"] .card-copy h3 {
    font-size: 26px !important;
  }
  .project-secondary-actions {
    padding-inline: 16px;
    gap: 8px;
  }
  .project-secondary-actions a {
    font-size: 11px;
  }
  .decision-details {
    padding: 16px;
  }
  .decision-details dl {
    gap: 20px;
  }
  .decision-details dd {
    font-size: 15px;
  }
  .editorial-page header,
  .editorial-page main,
  .editorial-page footer {
    width: calc(100% - 32px);
  }
  .editorial-page nav {
    gap: 12px;
  }
  .editorial-page nav a {
    font-size: 12px;
  }
  .curated-collections .section-heading a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .view-switch {
    width: 100%;
  }
  .view-switch button {
    flex: 1;
  }
}

.editorial-page .external-link-icon { width: 16px; height: 16px; margin-left: 8px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Compact shelf controls, with a stable layout before scripts initialize. */
.project-tools { padding: 12px; gap: 12px; }
.project-tools .filter-button, .project-tools .random-project-button,
.project-tools select, .view-switch button { min-height: 34px; font-size: 11px; padding: 7px 10px; }
.project-tools #project-search { min-height: 40px; padding-block: 8px; font-size: 16px; }
.project-tools .search-wrap { min-height: 40px; }
.project-tools .search-clear { min-width: 40px; min-height: 40px; }
.project-tools .filter-label { display: none; }
#project-grid .project { opacity: 1 !important; transform: none !important; filter: none !important; transition-delay: 0s !important; }
.editorial-page header { min-height: 104px; padding-block: 24px; }
.editorial-brand { font-size: 16px; font-weight: 800; letter-spacing: -.06em; }
.editorial-brand span { color: #ff765f; font-family: Georgia,"Times New Roman",serif; font-style: italic; }
.editorial-back { font: 700 .68rem/1 "SFMono-Regular",Consolas,"Liberation Mono",monospace; text-transform: uppercase; letter-spacing: .04em; }
@media(max-width:780px) {
  .project-tools { gap: 10px; }
  .project-tools .filter-buttons { gap: 6px; }
  .project-tools .catalog-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: end; }
  .project-tools .sort-field { flex: 1 1 150px; }
  .project-tools .view-switch { width: auto; flex: 0 0 auto; }
  .project-tools .random-project-button { width: auto; flex: 1 1 auto; }
}
