/* Collection-branded pages — accent variables are scoped on .collection-page via Branding::collectionPageVariables() */

.collection-page-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.collection-page-layout .site-main {
  flex: 1 1 auto;
}

.collection-page-layout .site-footer--public {
  margin-top: auto;
}

/* Content width matches homepage via .landing-container (brand-header.css) */

.collection-page {
  padding-bottom: 2rem;
  min-height: 40vh;
}

.collection-back-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 1.25rem;
  align-self: flex-start;
  color: inherit;
  opacity: 0.9;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.collection-hero--has-image .collection-back-link {
  color: #fff;
}

.collection-back-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.collection-page-layout .collection-hero {
  width: 100%;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  /* Inline hero styles control image, position, zoom, and overlay — avoid main.css gradient */
  padding: 0;
}

.collection-hero-wrap {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0 1.25rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.collection-hero-content {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

@media (min-width: 1024px) {
  .collection-hero-wrap {
    min-height: 250px;
    padding: 1.5rem 0 2.25rem;
  }
}

.collection-hero-logo {
  flex-shrink: 0;
}

.collection-hero-logo img {
  max-width: 200px;
  max-height: 88px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left top;
}

.collection-hero-text {
  min-width: 0;
}

.collection-hero-text h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.collection-hero-tagline {
  margin: 0 0 1rem;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.95;
}

.collection-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
}

.collection-hero-meta .meta-icon {
  margin-right: 0.35rem;
}

.collection-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.collection-section-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-primary, #001f3f);
}

.collection-section-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ps-navy, var(--brand-primary, #002147));
}

.collection-page .collection-section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
}

.collection-link-accent {
  color: #b42318;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.collection-page a.collection-link,
.collection-page .collection-link-accent,
.collection-page .content-tab.prose a {
  color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
}

.collection-link-accent:hover,
.collection-page .collection-link-accent:hover,
.collection-page a.collection-link:hover {
  text-decoration: underline;
}

.collection-featured-section {
  margin-bottom: 28px;
}

.collection-presentations-section,
.collection-blogs-section {
  display: grid;
  gap: 2rem;
}

.collection-presentations-section > .collection-featured-section,
.collection-blogs-section > .collection-featured-section,
.collection-detail-presentations > .collection-featured-section,
.collection-detail-blogs > .collection-featured-section {
  margin-bottom: 0;
}

.collection-featured-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.collection-poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.collection-presentations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  align-items: stretch;
}

@media (min-width: 768px) {
  .collection-presentations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .collection-presentations-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Slide Deck public cards — single neutral image well (no nested frame) */
.collection-slide-deck-card {
  --slide-deck-card-bg: #f3f6f8;
  --slide-deck-card-border: var(--border, #d8e0ea);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border: 1px solid var(--slide-deck-card-border);
  border-radius: var(--card-radius, 12px);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--card-shadow, 0 4px 14px rgba(0, 33, 71, 0.06));
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  color: var(--collection-primary, var(--ps-navy, #002147));
}

.collection-slide-deck-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover, 0 8px 24px rgba(0, 33, 71, 0.1));
}

.collection-slide-deck-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.collection-slide-deck-card__link:focus {
  outline: none;
}

.collection-slide-deck-card__link:focus-visible {
  outline: 2px solid var(--ps-accent-dark, #004f71);
  outline-offset: 2px;
}

.collection-slide-deck-card__media {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  background: var(--slide-deck-card-bg);
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
  border-bottom: 1px solid var(--slide-deck-card-border);
}

.collection-slide-deck-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  background: var(--slide-deck-card-bg);
}

.collection-slide-deck-card__count-pill {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 33, 71, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.collection-slide-deck-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.35rem;
  padding: 1rem 2rem 1.05rem 1rem;
  min-width: 0;
  min-height: 0;
}

.collection-slide-deck-card__title {
  margin: 0;
  color: var(--collection-primary, var(--ps-navy, #002147));
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.collection-slide-deck-card__authors {
  margin: 0;
  color: var(--ps-muted, #5b6b7c);
  font-size: 0.9rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.collection-slide-deck-card__cta {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 44px;
  display: inline-flex;
  align-items: flex-end;
  transition: color 0.2s ease;
}

.collection-slide-deck-card:hover .collection-slide-deck-card__cta {
  color: var(--ps-accent, #007a9c);
}

@media (prefers-reduced-motion: reduce) {
  .collection-slide-deck-card {
    transition: none;
  }

  .collection-slide-deck-card:hover {
    transform: none;
  }
}

.collection-presentation-card {
  border: 1px solid var(--border, #d8e0ea);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.collection-presentation-card:hover,
.collection-presentation-card:focus-within {
  border-color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  box-shadow: 0 8px 24px rgba(0, 33, 71, 0.08);
}

.collection-presentation-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.collection-presentation-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f233e;
}

.collection-presentation-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection-presentation-card__play {
  position: absolute;
  inset: auto auto 0.75rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ps-accent-dark, #004f71);
  font-size: 0.75rem;
}

.collection-presentation-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1rem;
}

.collection-presentation-card__type {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ps-accent-dark, #004f71);
}

.collection-presentation-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--navy, #002147);
}

.collection-presentation-card__authors,
.collection-presentation-card__summary,
.collection-presentation-card__meta {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #5b6775;
}

.collection-presentation-card__authors {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-grid-section {
  padding-bottom: 0.5rem;
}

.collection-pagination {
  margin-top: 32px;
  justify-content: flex-end;
}

.collection-detail-all-posters .collection-detail-pagination,
.collection-grid-section .collection-detail-pagination,
.collection-detail-all-abstracts .collection-detail-pagination,
.collection-presentations-section .collection-detail-pagination,
.collection-detail-presentations .collection-detail-pagination,
.collection-blogs-section .collection-detail-pagination,
.collection-detail-blogs .collection-detail-pagination {
  margin-top: 32px;
}

@media (max-width: 767px) {
  .collection-detail-all-posters .collection-detail-pagination,
  .collection-grid-section .collection-detail-pagination,
  .collection-detail-all-abstracts .collection-detail-pagination,
  .collection-presentations-section .collection-detail-pagination,
  .collection-detail-presentations .collection-detail-pagination,
  .collection-blogs-section .collection-detail-pagination,
  .collection-detail-blogs .collection-detail-pagination {
    margin-top: 24px;
  }
}

/* Compact poster cards on collection page */
.collection-branded .poster-card--compact {
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.07);
}

.collection-branded .poster-card--compact:hover {
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.1);
}

.collection-branded .poster-card--compact .poster-card-body {
  padding: 0.75rem 0.85rem 0.9rem;
}

.collection-branded .poster-card--compact .poster-card-title {
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-branded .poster-card--compact .poster-card-author {
  margin: 0;
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-branded .poster-card--featured-thumb .poster-card-image-wrap {
  aspect-ratio: 16 / 10;
}

.collection-branded .poster-card-fav {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #c9a227;
  font-size: 0.85rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.collection-branded .content-tab {
  padding: 1.5rem 0 2rem;
}

.pagination-ellipsis,
.collection-detail-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ps-muted, var(--muted, #5b6775));
  font-weight: 600;
  line-height: 1;
  user-select: none;
}

.collection-branded .btn-primary {
  background: var(--brand-accent, var(--accent));
}

.collection-branded .btn-primary:hover {
  background: var(--brand-primary, var(--accent-hover));
}

.breadcrumbs {
  padding: 1rem 0 0.5rem;
  font-size: 0.9rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--border);
}

.breadcrumbs a {
  color: var(--brand-accent, var(--accent));
  text-decoration: none;
}

.collection-banner {
  background: var(--brand-hero-bg, #e8f0f8);
  border-bottom: 3px solid var(--brand-primary, var(--accent));
  position: relative;
  overflow: hidden;
}

.collection-banner::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: min(42%, 480px);
  height: 100%;
  background-image: var(--banner-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
}

.collection-banner-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.collection-banner-logo img,
.collection-logo-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-primary, var(--accent));
}

.collection-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary, var(--accent));
  color: var(--brand-header-text, #fff);
  font-size: 2rem;
  font-weight: 700;
}

.collection-banner-text h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--brand-primary, var(--text));
}

.collection-description {
  margin: 0 0 0.75rem;
  color: var(--muted);
  max-width: 52ch;
}

.collection-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.collection-stats strong {
  color: var(--text);
}

.collection-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  padding-top: 0.75rem;
}

.collection-tabs a {
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.collection-tabs a.is-active,
.collection-tabs a.active {
  color: var(--ps-navy, var(--brand-primary, #002147));
  border-bottom-color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
}

.collection-tabs a:hover,
.collection-tabs a:focus-visible {
  color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
}

/* Search / filter row — public collection page only */
.collection-branded .collection-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 180px 220px;
  gap: 24px;
  align-items: center;
  margin: 24px 0;
}

.collection-branded .collection-toolbar--no-theme {
  grid-template-columns: minmax(300px, 1fr) 220px;
}

.collection-branded .collection-toolbar .search-control,
.collection-branded .collection-toolbar .collection-search {
  display: flex;
  min-width: 0;
}

.collection-branded .collection-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border-radius: 8px 0 0 8px;
  border: 1px solid var(--border);
  padding: 0 1rem;
  font: inherit;
  background: var(--surface);
}

.collection-branded .collection-search input:focus,
.collection-branded .collection-search input:focus-visible,
.collection-branded .collection-toolbar .theme-filter:focus,
.collection-branded .collection-toolbar .theme-filter:focus-visible,
.collection-branded .collection-toolbar .sort-filter:focus,
.collection-branded .collection-toolbar .sort-filter:focus-visible {
  outline: none;
  border-color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  box-shadow: 0 0 0 3px var(--collection-accent-soft, var(--ps-accent-soft, #e8f2f5));
}

.collection-branded .collection-search button,
.collection-branded .collection-search .collection-search-button {
  flex-shrink: 0;
  height: 44px;
  min-width: 44px;
  border: 1px solid var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  background: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  color: #fff;
  padding: 0 1rem;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 1.05rem;
}

.collection-branded .collection-search button:hover,
.collection-branded .collection-search button:focus-visible,
.collection-branded .collection-search .collection-search-button:hover,
.collection-branded .collection-search .collection-search-button:focus-visible {
  filter: brightness(0.92);
  background: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  border-color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
}

.collection-branded .collection-search button:focus-visible,
.collection-branded .collection-search .collection-search-button:focus-visible {
  outline: 3px solid var(--collection-accent-soft, var(--ps-accent-soft, #e8f2f5));
  outline-offset: 2px;
}

.collection-branded .collection-toolbar .theme-filter,
.collection-branded .collection-toolbar .sort-filter {
  width: 100%;
  height: 44px;
  padding: 0 2rem 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--surface);
  font: inherit;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c6b7a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.view-toggle a {
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.view-toggle a.active {
  background: var(--brand-accent, var(--accent));
  color: #fff;
}

.ribbon-featured {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--brand-primary, #4a1942);
  color: var(--brand-header-text, #fff);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  letter-spacing: 0.04em;
}

.poster-card-author {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.poster-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.poster-card-featured-label {
  font-weight: 500;
}

.poster-card-open {
  font-size: 1.1rem;
  color: var(--brand-accent, var(--accent));
}

.poster-list {
  grid-template-columns: 1fr !important;
}

.poster-card-list .poster-card-link {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
}

.poster-card-list .poster-card-image-wrap {
  aspect-ratio: 4/3;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2rem;
  justify-content: center;
}

.pagination a {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
}

.pagination a.active {
  background: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  color: #fff;
  border-color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
}

.pagination-meta {
  margin-left: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.theme-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.theme-list a {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
}

.content-tab.prose {
  max-width: 65ch;
}

.collection-page .content-tab.prose.collection-about-section,
.collection-page .collection-about-section {
  max-width: none;
  width: 100%;
}

.collection-page .collection-about-section .about-content,
.collection-page .collection-about-section > p {
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-content {
  line-height: 1.7;
}

.collection-detail-about {
  max-width: none;
}

/* Staff branding admin */
.branding-preview {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.branding-preview-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--brand-hero-bg, #eee);
  border-bottom: 4px solid var(--brand-primary, #333);
}

.collection-preview-bar {
  background: var(--ps-accent-soft, #e8f2f5);
  color: var(--navy, #002147);
  border-bottom: 1px solid var(--border, #d8e0ea);
}

.collection-preview-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.5rem;
}

.collection-preview-bar__message {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  max-width: 46rem;
  color: var(--text-body, #334155);
}

.collection-preview-bar__message strong {
  color: var(--navy, #002147);
}

.collection-preview-bar__actions {
  display: flex;
  flex-shrink: 0;
}

.collection-preview-bar .btn {
  white-space: nowrap;
  font-size: 0.84rem;
  padding: 0.4rem 0.85rem;
}

.collection-preview-bar .btn-secondary {
  background: #fff;
  color: var(--navy, #002147);
  border-color: var(--border, #d8e0ea);
}

.collection-preview-bar .btn-secondary:hover,
.collection-preview-bar .btn-secondary:focus-visible {
  background: #fff;
  border-color: var(--ps-accent, #007a8a);
  color: var(--ps-accent, #007a8a);
}

.collection-search--preview-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.collection-search--preview-disabled .collection-search__input,
.collection-search--preview-disabled .collection-search__button {
  cursor: not-allowed;
}

.preview-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.color-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.color-grid input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 0;
  border: none;
}

.current-asset {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 8px;
}

.themes-admin {
  margin-bottom: 2rem;
  padding: 1.25rem;
}

.theme-admin-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.theme-admin-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
}

.exhibition-featured {
  padding: 1.5rem 0 0;
}

.exhibition-featured .section-subtitle {
  font-family: var(--font-serif);
  margin: 0 0 1rem;
  color: var(--brand-primary, var(--text));
}

.exhibition-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.exhibition-carousel .poster-card {
  scroll-snap-align: start;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.exhibition-carousel .ribbon-featured {
  background: var(--brand-accent, var(--accent));
}

@media (max-width: 1024px) {
  .collection-poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-featured-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .collection-branded .collection-toolbar,
  .collection-branded .collection-toolbar--no-theme {
    grid-template-columns: minmax(240px, 1fr) 160px 200px;
    gap: 16px;
  }

  .collection-branded .collection-toolbar--no-theme {
    grid-template-columns: minmax(240px, 1fr) 200px;
  }
}

@media (max-width: 767px) {
  .collection-hero-wrap {
    min-height: 0;
    padding: 1rem 0 1.5rem;
  }

  .collection-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .collection-hero-logo img {
    max-width: 168px;
    max-height: 72px;
  }

  .collection-back-link {
    padding-top: 1rem;
  }

  .collection-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .collection-branded .collection-toolbar,
  .collection-branded .collection-toolbar--no-theme {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
  }

  .collection-featured-row {
    grid-template-columns: 1fr;
  }

  .collection-poster-grid {
    grid-template-columns: 1fr;
  }

  .poster-card-list .poster-card-link {
    grid-template-columns: 1fr;
  }
}

/* Edinburgh Medical 300 — branded collection landing page */
.collection-landing-page,
.collection-detail-page {
  --collection-primary: var(--ps-navy, #002147);
  --collection-accent: var(--ps-accent, #004f71);
  --collection-accent-soft: var(--ps-accent-soft, #e8f2f5);
  --collection-highlight: var(--ps-burgundy, #c5003e);
  background: #fff;
}

.collection-landing-page--split-hero,
.collection-landing-page--ems300 {
  --ems-blue: #004f71;
  --ems-yellow: #f2a900;
  --ems-black: #000000;
  --ems-white: #ffffff;
  margin-top: 0;
  padding-top: 0;
}

/* MBChB Student Conference — default medical school hero colours (#003d58 / #d50032).
   Uses the same variable names as branded collection heroes. */
.collection-landing-page--mbchb:not(.collection-landing-page--branded-hero) {
  --collection-hero-bg: #003d58;
  --collection-hero-text: #ffffff;
  --collection-hero-accent: #d50032;
}

.collection-landing-page--mbchb:not(.collection-landing-page--branded-hero) .collection-hero--ems-split:not(.collection-hero--branded) {
  background: var(--collection-hero-bg, #003d58);
}

.collection-landing-page--mbchb:not(.collection-landing-page--branded-hero) .collection-hero--ems-split:not(.collection-hero--branded) .collection-hero-text {
  background: var(--collection-hero-bg, #003d58);
  color: var(--collection-hero-text, #ffffff);
}

.collection-landing-page--mbchb:not(.collection-landing-page--branded-hero) .collection-hero--ems-split:not(.collection-hero--branded) .collection-meta-icon {
  color: var(--collection-hero-accent, #d50032);
}

.collection-landing-page--mbchb:not(.collection-landing-page--branded-hero) .collection-hero--ems-split:not(.collection-hero--branded) .collection-hero-back:hover,
.collection-landing-page--mbchb:not(.collection-landing-page--branded-hero) .collection-hero--ems-split:not(.collection-hero--branded) .collection-hero-back:focus-visible,
.collection-landing-page--mbchb:not(.collection-landing-page--branded-hero) .collection-hero--ems-split:not(.collection-hero--branded) .collection-back-link:hover,
.collection-landing-page--mbchb:not(.collection-landing-page--branded-hero) .collection-hero--ems-split:not(.collection-hero--branded) .collection-back-link:focus-visible {
  color: var(--collection-hero-accent, #d50032);
}

.collection-landing-page--mbchb:not(.collection-landing-page--branded-hero) .collection-hero--ems-split:not(.collection-hero--branded) .collection-hero-image img {
  object-position: 74% 24%;
}

.collection-landing-page--mbchb:not(.collection-landing-page--branded-hero) .collection-hero--ems-split:not(.collection-hero--branded) .collection-hero-image::after {
  background: rgba(0, 0, 0, 0.06);
}

/* Staff / DB branded collection preview — honour selected branding colours */
.collection-landing-page--branded-hero .collection-hero--branded {
  background: var(--collection-hero-bg, #003d58);
}

.collection-landing-page--branded-hero .collection-hero--branded .collection-hero-text,
.collection-landing-page--branded-hero .collection-hero--branded .collection-hero-text-panel {
  background: var(--collection-hero-bg, #003d58);
  color: var(--collection-hero-text, #ffffff);
}

.collection-landing-page--branded-hero .collection-hero--branded .collection-meta-icon,
.collection-landing-page--branded-hero .collection-hero--branded .collection-hero-meta-icon {
  color: var(--collection-hero-accent, #d50032);
}

.collection-landing-page--branded-hero .collection-hero--branded .collection-hero-back:hover,
.collection-landing-page--branded-hero .collection-hero--branded .collection-hero-back:focus-visible,
.collection-landing-page--branded-hero .collection-hero--branded .collection-back-link:hover,
.collection-landing-page--branded-hero .collection-hero--branded .collection-back-link:focus-visible {
  color: var(--collection-hero-accent, #d50032);
}

.collection-detail-page .site-main {
  padding-top: 0;
  overflow-x: hidden;
  max-width: 100%;
}

/* EMS split hero — full-width pillarbox banner */
.collection-hero--ems-split,
.collection-hero--ems-split .collection-hero-inner,
.collection-hero--ems-split .collection-hero-text,
.collection-hero--ems-split .collection-hero-image,
.collection-hero--ems-split .collection-hero-image img {
  border-radius: 0;
}

.collection-landing-page--split-hero.collection-page,
.collection-landing-page--ems300.collection-page {
  min-height: 0;
  padding-bottom: 2rem;
}

.collection-hero--ems-split,
.collection-hero--branded {
  width: 100%;
  overflow: hidden;
  border: 0;
  border-bottom: none;
  box-shadow: none;
  background: var(--collection-hero-bg, var(--ems-blue, #004f71));
  margin: 0;
}

.collection-hero--branded .collection-hero-title,
.collection-hero--branded .collection-hero-subtitle,
.collection-hero--branded .collection-meta-item {
  color: var(--collection-hero-text, #fff);
}

.collection-hero--ems-split .collection-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: 0;
}

@media (min-width: 900px) {
  .collection-hero--ems-split .collection-hero-inner {
    grid-template-columns: 62% 38%;
    align-items: stretch;
    height: clamp(210px, 18vw, 260px);
    max-height: 260px;
  }

  .collection-hero--ems-split .collection-hero-text {
    height: 100%;
  }

  .collection-hero--ems-split .collection-hero-text-inner {
    flex: 1;
    min-height: 100%;
  }
}

.collection-hero--ems-split .collection-hero-text,
.collection-hero--branded .collection-hero-text,
.collection-hero-text-panel {
  display: flex;
  align-items: flex-start;
  background: var(--collection-hero-bg, linear-gradient(135deg, #003d58 0%, #004f71 100%));
  color: var(--collection-hero-text, var(--ems-white, #fff));
  padding: 12px 0 14px;
  min-height: 0;
}

.collection-hero--ems-split .collection-hero-text-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.collection-hero--ems-split .collection-meta-row {
  margin-top: auto;
  margin-bottom: 1rem;
  padding-top: 0;
}

@media (max-width: 899px) {
  .collection-hero--ems-split .collection-meta-row {
    margin-top: 22px;
    margin-bottom: 0;
    padding-top: 0;
  }
}

.collection-hero-text-inner {
  width: 100%;
  padding-right: var(--landing-pad, 16px);
  padding-left: max(
    var(--landing-pad, 16px),
    calc((100vw - var(--landing-max, 1280px)) / 2 + var(--landing-pad, 16px))
  );
}

.collection-hero--ems-split .collection-hero-back,
.collection-hero--ems-split .collection-back-link {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: var(--ems-white, #fff);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.collection-hero--ems-split .collection-hero-utility .collection-hero-back,
.collection-hero--ems-split .collection-hero-utility .collection-back-link {
  margin: 0;
}

.collection-hero--ems-split .collection-hero-back:hover,
.collection-hero--ems-split .collection-hero-back:focus-visible,
.collection-hero--ems-split .collection-back-link:hover,
.collection-hero--ems-split .collection-back-link:focus-visible,
.collection-hero--branded .collection-hero-back:hover,
.collection-hero--branded .collection-hero-back:focus-visible,
.collection-hero--branded .collection-back-link:hover,
.collection-hero--branded .collection-back-link:focus-visible {
  color: var(--collection-hero-accent, var(--ems-yellow, #f2a900));
  text-decoration: underline;
  text-underline-offset: 0.18em;
  outline: none;
  opacity: 1;
}

.collection-hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--ems-white, #fff);
  text-wrap: balance;
}

.collection-hero-subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ems-white, #fff);
  max-width: 36rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collection-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ems-white, #fff);
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 0;
}

.collection-meta-icon,
.collection-hero-meta-icon {
  display: inline-flex;
  color: var(--collection-hero-accent, var(--ems-yellow, #f2a900));
  flex-shrink: 0;
}

.collection-tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--collection-accent-soft, var(--ps-accent-soft));
  border: 1px solid rgba(0, 79, 113, 0.18);
  color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  font-size: 0.82rem;
  font-weight: 600;
}

.collection-hero-image {
  position: relative;
  min-height: 180px;
  background: var(--collection-hero-bg, #003d58);
  overflow: hidden;
}

@media (min-width: 900px) {
  .collection-hero--ems-split .collection-hero-image {
    min-height: 0;
    height: 100%;
  }
}

.collection-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.collection-hero-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: var(--hero-image-x, 50%) var(--hero-image-y, 50%);
  transform: scale(var(--hero-image-zoom, 1));
  transform-origin: center center;
  display: block;
}

.collection-page--split-hero .site-main,
.collection-detail-page .site-main {
  padding-top: 0;
}

.collection-landing-page--split-hero .collection-landing-tabs-wrap,
.collection-landing-page--ems300 .collection-landing-tabs-wrap {
  margin-top: 0;
  padding-top: 12px;
  background: var(--surface, #fff);
  border-bottom: none;
}

.collection-landing-tabs-wrap {
  background: var(--surface, #fff);
  border-bottom: none;
}

.collection-landing-tabs-wrap > .landing-container {
  display: block;
  padding-block: 0;
  border-bottom: 1px solid var(--border, var(--ps-border, #d8e0ea));
}

.collection-landing-page--split-hero .collection-landing-tabs,
.collection-landing-page--ems300 .collection-landing-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.collection-landing-page--split-hero .collection-landing-tabs::-webkit-scrollbar,
.collection-landing-page--ems300 .collection-landing-tabs::-webkit-scrollbar {
  display: none;
  height: 0;
}

.collection-landing-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.collection-landing-tabs__tab {
  position: relative;
  flex: 0 0 auto;
  padding: 0.85rem 1.15rem;
  text-decoration: none;
  color: var(--ps-navy, #002147);
  font-weight: 600;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.collection-landing-tabs__tab:hover,
.collection-landing-tabs__tab:focus-visible {
  color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
}

.collection-landing-tabs__tab.is-active {
  color: var(--ps-navy, #002147);
  border-bottom-color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
}

.collection-landing-tabs__tab:focus-visible {
  outline: 2px solid var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  outline-offset: 2px;
}

.collection-landing-content {
  padding-bottom: 2rem;
}

.collection-landing-filters {
  padding-top: 0;
}

.collection-filter-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px 220px;
  gap: 16px;
  align-items: center;
  margin: 28px 0 32px;
}

.collection-filter-row .collection-search {
  display: flex;
  min-width: 0;
}

.collection-filter-row .collection-search__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 44px;
  border: 1px solid var(--ps-border, #d8e0ea);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 0 1rem;
  font: inherit;
  background: var(--ps-surface, #fff);
  color: var(--ps-text, #0b1f33);
}

.collection-filter-row .collection-search__input:focus {
  outline: none;
  border-color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  box-shadow: 0 0 0 3px var(--collection-accent-soft, var(--ps-accent-soft, #e8f2f5));
  z-index: 1;
}

.collection-filter-row .collection-search__button,
.collection-filter-row .collection-search-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 44px;
  padding: 0 0.85rem;
  background: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  color: #fff;
  border: 1px solid var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

.collection-filter-row .collection-search__button:hover,
.collection-filter-row .collection-search-button:hover,
.collection-filter-row .collection-search__button:focus-visible,
.collection-filter-row .collection-search-button:focus-visible {
  filter: brightness(0.92);
  background: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  border-color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
}

.collection-filter-row .collection-search__button:focus-visible,
.collection-filter-row .collection-search-button:focus-visible {
  outline: 3px solid var(--collection-accent-soft, var(--ps-accent-soft, #e8f2f5));
  outline-offset: 2px;
  box-shadow: none;
}

.collection-filter-select {
  width: 100%;
  height: 44px;
  padding: 0 2rem 0 0.85rem;
  border: 1px solid var(--ps-border, #d8e0ea);
  border-radius: 8px;
  background-color: var(--ps-surface, #fff);
  font: inherit;
  color: var(--ps-text, #0b1f33);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6775' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}

.collection-filter-select:focus-visible {
  outline: none;
  border-color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  box-shadow: 0 0 0 3px var(--collection-accent-soft, var(--ps-accent-soft, #e8f2f5));
}

.collection-detail-page .collection-detail-featured {
  padding-top: 0;
}

.collection-detail-page .collection-detail-all-posters,
.collection-detail-presentations,
.collection-detail-blogs,
.collection-detail-about {
  padding-top: 1.5rem;
}

.collection-detail-page .collection-detail-all-posters {
  padding-bottom: 2rem;
}

.collection-detail-all-posters__head {
  align-items: flex-end;
  gap: 1rem;
}

.collection-detail-all-posters-grid {
  margin-bottom: 0;
}

.collection-detail-pagination {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  margin-top: 32px;
  width: 100%;
}

.collection-detail-pagination__controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  width: max-content;
  max-width: 100%;
}

.collection-detail-pagination__pages {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.collection-detail-pagination__pages--compact {
  display: none;
}

.collection-detail-pagination__nav.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: auto;
  min-width: 5.5rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.collection-detail-pagination__slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.35rem;
  min-width: 2.35rem;
  max-width: 2.35rem;
  min-height: 2.1rem;
  padding: 0;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.collection-detail-pagination__ellipsis {
  color: var(--ps-muted, var(--muted, #5b6775));
  font-weight: 600;
  line-height: 1;
  user-select: none;
}

.collection-detail-pagination__page.btn-secondary {
  width: 2.35rem;
  min-width: 2.35rem;
  max-width: 2.35rem;
  min-height: 2.1rem;
  padding: 0;
}

.collection-detail-pagination__page.is-active,
.collection-detail-pagination__page[aria-current="page"] {
  background: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  border-color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  color: #fff;
}

.collection-detail-pagination__page.is-active:hover,
.collection-detail-pagination__page[aria-current="page"]:hover,
.collection-detail-pagination__page.is-active:focus-visible,
.collection-detail-pagination__page[aria-current="page"]:focus-visible {
  background: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  border-color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  color: #fff;
}

.collection-detail-pagination__nav:focus-visible,
.collection-detail-pagination__page:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--collection-accent-soft, var(--ps-accent-soft, #e8f2f5));
}

.collection-detail-page .landing-featured-row .poster-card--preview,
.collection-landing-page .landing-featured-row .poster-card--preview {
  height: 100%;
}

.collection-landing-page .poster-card__featured,
.collection-detail-page .poster-card__featured {
  background: var(--collection-highlight, var(--ps-burgundy));
}

.collection-landing-presentations-grid {
  margin-top: 0.25rem;
}

.collection-presentation-card__duration {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 33, 71, 0.82);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.collection-presentation-card__media {
  position: relative;
}

.collection-presentation-card__cta {
  margin-top: auto;
  padding-top: 0.65rem;
  color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  font-size: 0.92rem;
  font-weight: 700;
}

.collection-presentation-card:hover .collection-presentation-card__cta,
.collection-presentation-card:focus-within .collection-presentation-card__cta {
  text-decoration: underline;
}

.collection-landing-blogs-grid {
  margin-top: 0.25rem;
}

.collection-about-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .collection-about-grid {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.75fr);
    align-items: start;
    gap: 1.5rem;
  }
}

.collection-about-panel {
  padding: 1.25rem 1.35rem;
}

.collection-about-panel h2,
.collection-about-panel h3 {
  margin: 0 0 0.75rem;
  color: var(--collection-primary, var(--ps-navy));
  font-size: 1.15rem;
}

.collection-about-lead {
  margin: 0 0 1rem;
  color: var(--ps-text);
  font-size: 1rem;
  line-height: 1.6;
}

.collection-about-copy {
  max-width: none;
  color: var(--ps-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.collection-about-sidebar {
  display: grid;
  gap: 1rem;
}

.collection-about-stats {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.collection-about-stats div {
  display: grid;
  gap: 0.15rem;
}

.collection-about-stats dt {
  margin: 0;
  color: var(--ps-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.collection-about-stats dd {
  margin: 0;
  color: var(--ps-text);
  font-weight: 600;
}

.collection-about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collection-about-tags .collection-tag-pill {
  background: var(--collection-accent-soft, var(--ps-accent-soft));
  border-color: rgba(0, 79, 113, 0.18);
  color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
}

.collection-about-share-label {
  margin: 0 0 0.35rem;
  color: var(--ps-muted);
  font-size: 0.88rem;
}

.collection-about-share-link {
  color: var(--collection-accent-dark, var(--ps-accent-dark, #004f71));
  font-weight: 600;
  word-break: break-word;
}

@media (max-width: 767px) {
  .collection-detail-all-posters__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .collection-detail-pagination {
    align-items: flex-end;
    width: 100%;
    margin-top: 24px;
  }

  .collection-detail-pagination__controls {
    gap: 0.25rem;
  }

  .collection-detail-pagination__pages--default {
    display: none;
  }

  .collection-detail-pagination__pages--compact {
    display: flex;
  }

  .collection-detail-pagination__nav.btn-secondary {
    min-width: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
  }

  .collection-detail-pagination__slot {
    width: 2.1rem;
    min-width: 2.1rem;
    max-width: 2.1rem;
  }

  .collection-detail-pagination__page.btn-secondary {
    width: 2.1rem;
    min-width: 2.1rem;
    max-width: 2.1rem;
  }

  .collection-branded .collection-toolbar,
  .collection-branded .collection-toolbar--no-theme,
  .collection-filter-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 20px 0;
  }
}
