/* Landing page — hybrid full-bleed backgrounds + 1280px contained content */

.page-home,
.page-blogs,
.page-search,
.page-collections,
.collection-detail-page,
.collection-page-layout,
.collection-branded {
  /* Inherits PosterPeer tokens from .site-brand-app */
  --uoe-neutral-bg: var(--ps-surface-soft);
  --card-border: var(--ps-border);
  --card-radius: 12px;
  --card-shadow: 0 4px 14px rgba(0, 33, 71, 0.06);
  --card-shadow-hover: 0 8px 24px rgba(0, 33, 71, 0.1);
  --surface: var(--ps-surface);
  --bg: var(--ps-surface);
  --landing-max: 1280px;
  --landing-pad: 16px;
  --prose-max: 42rem;
}

.page-home {
  background: var(--surface);
}

.page-collections {
  background: var(--surface);
}

.page-collections .site-main {
  padding: 0;
  background: var(--surface);
}

.page-collections-section {
  padding: 2rem 0 2.5rem;
  background: var(--surface, var(--ps-surface));
}

.page-collections-section .landing-section-head h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0;
}

.page-collections-lead {
  margin: 0 0 1.5rem;
  max-width: 42rem;
}

.collections-index-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 2rem;
  align-items: center;
}

.collections-index-controls__field {
  min-width: min(100%, 220px);
  flex: 1 1 220px;
  max-width: 280px;
}

.collections-index-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;
}

.collections-index-select:focus-visible {
  outline: none;
  border-color: var(--ps-accent-dark, #004f71);
  box-shadow: 0 0 0 3px var(--ps-accent-soft, #e8f2f5);
}

.collections-index-row {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .collections-index-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .collections-index-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.collections-index-pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 0;
}

.collections-index-pagination .collection-detail-pagination {
  width: auto;
  margin-top: 32px;
}

@media (max-width: 767px) {
  .collections-index-pagination .collection-detail-pagination,
  .page-abstracts-pagination .collection-detail-pagination {
    margin-top: 24px;
  }
}

/* Homepage header inherits UoE colours */
.page-home.site-brand-app {
  --border: var(--ps-border);
}

@media (min-width: 768px) {
  .page-home,
  .page-blogs,
  .page-collections,
  .collection-detail-page {
    --landing-pad: 24px;
  }
}

@media (min-width: 1024px) {
  .page-home,
  .page-blogs,
  .page-collections,
  .collection-detail-page {
    --landing-pad: 32px;
  }
}

.page-home .site-main,
.page-search .site-main {
  padding: 0;
}

/* Prevent any horizontal scrolling on the landing page */
.page-home,
.page-search {
  overflow-x: clip;
}

.page-home .nav-login {
  padding: 0.55rem 1.25rem;
  background: var(--navy);
  color: #fff !important;
  border-radius: 6px;
  border-bottom: none !important;
  font-weight: 600;
  white-space: nowrap;
}

.page-home .nav-login:hover,
.page-home .nav-login:focus {
  background: var(--navy-hover);
  color: #fff !important;
}

/* Hero — full-bleed background, content aligned to landing-container */
.landing-hero {
  position: relative;
  width: 100%;
  padding: 2.5rem 0 3rem;
  background: var(--surface);
  overflow: hidden;
}

.landing-hero--blend {
  padding: 3rem 0 3.25rem;
  min-height: min(44vh, 445px);
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: 74% 24%;
  background-repeat: no-repeat;
}

.landing-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.9) 32%,
    rgba(255, 255, 255, 0.55) 52%,
    rgba(255, 255, 255, 0.1) 72%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.landing-hero--blend .landing-hero-bg::after {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.02) 50%,
      rgba(255, 255, 255, 0.72) 88%,
      #ffffff 100%
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.9) 32%,
      rgba(255, 255, 255, 0.55) 52%,
      rgba(255, 255, 255, 0.1) 72%,
      rgba(255, 255, 255, 0) 100%
    );
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
}

/* Hero copy — text sits on the gradient, no card/box */
.landing-hero-text,
.landing-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--prose-max);
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.landing-hero-text h1,
.landing-hero-content h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 1rem;
}

.landing-hero-lead,
.landing-hero-content p {
  color: var(--text-body);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 0 1.35rem;
}

.landing-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 40rem;
}

.landing-browse-types {
  margin: 0;
}

.landing-browse-types__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ps-muted, var(--text-muted, #5b6775));
  margin: 0 0 0.45rem;
}

.landing-browse-types__list,
.search-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.landing-browse-types__link {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--ps-border, var(--border));
  background: var(--ps-surface, var(--surface));
  color: var(--ps-text, var(--text-body));
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  max-width: 100%;
}

.landing-browse-types__link:hover,
.landing-browse-types__link:focus-visible {
  border-color: var(--ps-accent, var(--accent));
  color: var(--ps-accent-dark, var(--navy));
  background: var(--ps-accent-soft, #e8f2f5);
  outline: none;
}

.landing-browse-types__link.is-active {
  background: var(--ps-accent-soft, #e8f2f5);
  border-color: var(--ps-accent, var(--accent));
  color: var(--ps-accent-dark, var(--navy));
}

.search-type-filters {
  margin: 0.9rem 0 0;
}

.page-search-section {
  padding-top: 1.5rem;
}

.page-search-section h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 1rem;
}

.search-result-group {
  margin-top: 1.75rem;
}

.search-result-group + .search-result-group {
  margin-top: 2.25rem;
}

.landing-search {
  display: flex;
  width: 100%;
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(4, 30, 66, 0.06);
}

.landing-search input {
  flex: 1;
  border: none;
  padding: 0.9rem 1rem;
  font: inherit;
  min-width: 0;
}

.landing-search input:focus {
  outline: none;
}

.landing-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  background: var(--navy);
  border: none;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.landing-search-btn:hover,
.landing-search-btn:focus {
  background: var(--navy-hover);
}

.landing-search-btn svg {
  display: block;
}

.btn-landing-primary {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1.35rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-landing-primary:hover,
.btn-landing-primary:focus {
  background: var(--navy-hover);
  color: #fff;
}

/* Sections — consistent vertical rhythm */
.landing-section {
  width: 100%;
  background: var(--surface);
}

.page-home .landing-section {
  padding: 1.75rem 0 2rem;
}

.page-home .landing-section:first-of-type {
  padding-top: 1.25rem;
}

.page-blogs-section {
  padding: 2rem 0 2.5rem;
  background: var(--surface, var(--ps-surface));
}

.collection-detail-blogs .featured-blogs-grid,
.collection-blogs-section .featured-blogs-grid,
.collection-landing-blogs-grid {
  margin-top: 0;
}

.page-blogs-section .landing-section-head h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0;
}

.page-blogs-lead {
  margin: 0 0 2rem;
  max-width: 42rem;
}

.page-home .site-footer--public {
  margin-top: 2.5rem;
}

.landing-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.landing-section-head h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0;
}

.landing-section-head a {
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
}

.landing-link-warm {
  color: var(--link-accent);
}

.landing-link-warm:hover,
.landing-link-warm:focus {
  text-decoration: underline;
}

.landing-link-cool {
  color: var(--link-accent);
}

.landing-link-cool:hover,
.landing-link-cool:focus {
  text-decoration: underline;
}

.landing-placeholder-note {
  margin: 0 0 1rem;
  padding: 0.5rem 0.85rem;
  background: var(--uoe-neutral-bg);
  border-left: 3px solid var(--ps-accent);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Featured posters — responsive grid across full container width */
.landing-featured-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  align-items: stretch;
}

@media (min-width: 768px) {
  .landing-featured-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .landing-featured-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Featured presentations — one row of four */
:is(.page-home, .page-search) .landing-featured-row--presentations {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  :is(.page-home, .page-search) .landing-featured-row--presentations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1024px) {
  :is(.page-home, .page-search) .landing-featured-row--presentations {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}


/* Shared homepage card elevation — collection cards */
.collection-card-home {
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.collection-card-home:hover,
.collection-card-home:focus,
.collection-card-home:focus-visible {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.landing-featured-row .poster-card--preview {
  height: 100%;
}

:is(.page-home, .page-search, .collection-detail-page) .landing-featured-row .poster-card__featured {
  display: none;
}

/* Featured posters — framed poster preview panel */
:is(.page-home, .page-search, .collection-detail-page) .landing-featured-row .poster-card__image-area {
  height: 210px;
  background: #f3f6f8;
  padding: 12px;
  overflow: hidden;
  border-bottom: 1px solid #d8dee6;
  box-sizing: border-box;
  box-shadow: none;
}

:is(.page-home, .page-search, .collection-detail-page) .landing-featured-row .poster-card__image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: 1px solid #bfc9d4;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(4, 30, 66, 0.14);
  box-sizing: border-box;
}

@media (min-width: 768px) and (max-width: 1023px) {
  :is(.page-home, .page-search, .collection-detail-page) .landing-featured-row .poster-card__image-area {
    height: 200px;
  }
}

/* Featured card body — even spacing and aligned titles */
:is(.page-home, .page-search, .collection-detail-page) .landing-featured-row .poster-card__body {
  flex: 1;
  padding: 16px 18px 18px;
  min-height: 136px;
}

:is(.page-home, .page-search, .collection-detail-page) .landing-featured-row .poster-card__title {
  margin: 0 0 5px;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:is(.page-home, .page-search, .collection-detail-page) .landing-featured-row .poster-card__authors {
  margin: 0;
  flex: 1;
  min-height: 1.35rem;
  color: var(--uoe-spruce);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.presentation-card-home {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.presentation-card-home:hover,
.presentation-card-home:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.presentation-card-home__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.presentation-card-home__link:focus-visible {
  outline: 2px solid var(--ps-accent-dark);
  outline-offset: 2px;
}

.presentation-card-home__media {
  position: relative;
  flex-shrink: 0;
  height: 160px;
  background: #0f233e;
  overflow: hidden;
}

.presentation-card-home__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.presentation-card-home__play {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ps-accent-dark, #004f71);
  font-size: 0.75rem;
}

.presentation-card-home__duration {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(4, 30, 66, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.presentation-card-home__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
  padding-right: 2rem;
  min-width: 0;
}

.presentation-card-home__type {
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ps-accent-dark, #004f71);
}

.presentation-card-home__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--uoe-navy, var(--ps-navy));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}

.presentation-card-home__authors {
  margin: 0;
  color: var(--uoe-spruce, #333f48);
  font-size: 0.9rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.presentation-card-home__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 14px;
  color: var(--ps-accent-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.presentation-card-home__cta::after {
  content: "→";
}

.presentation-card-home__link:hover .presentation-card-home__cta,
.presentation-card-home__link:focus-visible .presentation-card-home__cta {
  color: var(--ps-accent);
}

/* Featured blogs */
.featured-blogs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  align-items: stretch;
}

@media (min-width: 768px) {
  .featured-blogs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }

  .page-home .featured-blogs-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .featured-blogs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .page-home .featured-blogs-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.blog-card__image {
  position: relative;
  display: block;
  height: 160px;
  background: var(--uoe-neutral-bg);
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
  padding-right: 2rem;
  min-width: 0;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.5rem;
  color: var(--uoe-muted-blue, var(--ps-accent-dark));
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.blog-card__category::after {
  content: "·";
  margin-left: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.blog-card__reading-time:only-child,
.blog-card__category:only-child::after {
  content: none;
  margin: 0;
}

.blog-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.blog-card__title a {
  color: var(--uoe-navy);
  text-decoration: none;
}

.blog-card__excerpt {
  margin: 0 0 12px;
  color: var(--uoe-spruce);
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  color: var(--ps-accent-dark);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card__link::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
  color: currentColor;
}

.blog-card:hover .blog-card__link,
.blog-card:focus-within .blog-card__link,
.blog-card__link:hover,
.blog-card__link:focus-visible {
  color: var(--ps-accent);
}

@media (max-width: 767px) {
  .blog-card__image {
    height: 150px;
  }
}

/* Collection cards */
.landing-collections-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 768px) {
  .landing-collections-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .landing-collections-row {
    gap: 1.5rem;
  }
}

.landing-collections-row {
  align-items: stretch;
}

.collection-card-home {
  --collection-accent: var(--ps-accent-dark, #004f71);
  --collection-accent-soft: var(--ps-accent-soft, #e8f2f5);
  --collection-accent-text: var(--ps-accent-dark, #004f71);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  text-decoration: none;
  color: var(--uoe-navy, var(--ps-navy, #002147));
  min-height: 200px;
  min-width: 0;
  border-radius: var(--card-radius, 12px);
  background: #fafbfc;
  border: 1px solid #eceff3;
  overflow: hidden;
}

.collection-card-home::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  flex-shrink: 0;
  background: var(--collection-accent);
}

.collection-card-home--medical,
.collection-card-home--ems,
.collection-card-home--conference,
.collection-card-home--showcase {
  --collection-accent: var(--ps-accent-dark, #004f71);
  --collection-accent-soft: var(--ps-accent-soft, #e8f2f5);
  --collection-accent-text: var(--ps-accent-dark, #004f71);
}

.collection-card-home:focus-visible {
  outline: 2px solid var(--ps-accent-dark, #004f71);
  outline-offset: 2px;
}

.collection-card-home__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.05rem 1.1rem 1.05rem;
  padding-right: 2rem;
}

.collection-card-home__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  align-items: center;
  margin: 0 0 0.7rem;
}

.collection-card-home__category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.14rem 0.78rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border-radius: 999px;
  background: #fff;
  color: var(--collection-accent-text);
  border: 1px solid color-mix(in srgb, var(--collection-accent) 28%, transparent);
}

.collection-card-home__title,
.collection-card-home h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--uoe-navy, var(--ps-navy, #002147));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.56rem;
}

.collection-card-home .collection-card__description,
.collection-card-home .home-collection-card__description,
.collection-card-home .collection-card-home__description,
.collection-card-home p.collection-description {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ps-muted, #5b6775);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.4em * 2);
  line-height: 1.4;
  min-width: 0;
  min-height: 0;
}

.collection-card-home-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
  min-height: 0;
  font-size: 0.88rem;
}

.collection-card-home__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ps-accent-dark, #004f71);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.collection-card-home__cta::after {
  content: "→";
}

.collection-card-home:hover .collection-card-home__cta,
.collection-card-home:focus-visible .collection-card-home__cta {
  color: var(--ps-accent, #007fa3);
}

.collection-card-home.is-placeholder {
  opacity: 0.92;
}

/* Homepage featured collections — clean 60/40 split cards */
.page-home .landing-collections-row {
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .page-home .landing-collections-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 1200px) {
  .page-home .landing-collections-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.collection-card-home--featured {
  --cc-primary: var(--ps-teal, #0d7a6f);
  --cc-secondary: transparent;
  display: block;
  min-height: 150px;
  height: 100%;
  max-height: none;
  padding: 0;
  background: #fff;
  border: 1px solid var(--card-border, #d8dee6);
  border-radius: var(--card-radius, 12px);
  color: var(--uoe-navy, var(--ps-navy, #002147));
  box-shadow: var(--card-shadow, 0 2px 8px rgba(0, 33, 71, 0.06));
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.collection-card-home--featured::before {
  display: none;
}

.collection-card-home--featured .content-type-icon {
  right: 10px;
  bottom: 10px;
  z-index: 2;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.35));
}

.collection-card-home--featured .content-type-icon--on-dark {
  color: #f5f8fb;
  filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.55));
}

.collection-card-home--featured .content-type-icon--on-light {
  color: #002147;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.55));
}

.collection-card-home__featured-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) auto minmax(0, 2fr);
  grid-template-rows: minmax(150px, auto);
  height: 100%;
  min-height: 150px;
}

.collection-card-home__featured-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  min-height: 0;
  padding: 0.95rem 1rem 1rem 1.05rem;
  background: #fff;
  position: relative;
  z-index: 1;
}

.collection-card-home--featured .collection-card-home__title,
.collection-card-home--featured h3 {
  margin: 0;
  color: var(--uoe-navy, var(--ps-navy, #002147));
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.28;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-card-home--featured .collection-card-home__cta {
  margin-top: auto;
  padding-top: 0.35rem;
  color: var(--ps-accent, #007fa3);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  flex-shrink: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.collection-card-home--featured .collection-card-home__cta::after {
  content: none;
}

.collection-card-home--featured:hover .collection-card-home__cta,
.collection-card-home--featured:focus-visible .collection-card-home__cta {
  color: var(--ps-accent-dark, #004f71);
  text-decoration: none;
}

.collection-card-home__featured-divider {
  width: 6px;
  min-width: 6px;
  align-self: stretch;
  background: var(--cc-primary);
  flex-shrink: 0;
}

.collection-card-home__featured-divider--dual {
  width: 8px;
  min-width: 8px;
  background:
    linear-gradient(
      to right,
      var(--cc-primary) 0,
      var(--cc-primary) 6px,
      var(--cc-secondary) 6px,
      var(--cc-secondary) 8px
    );
}

.collection-card-home__featured-visual {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: var(--cc-primary);
  border-radius: 0 var(--card-radius, 12px) var(--card-radius, 12px) 0;
  aspect-ratio: auto;
}

.collection-card-home__featured-visual::before {
  display: none;
}

.collection-card-home__featured-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.25s ease;
}

.collection-card-home__featured-visual--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: color-mix(in srgb, var(--cc-primary) 88%, #fff 12%);
}

.collection-card-home__featured-logo {
  position: relative;
  z-index: 1;
  max-width: min(72%, 140px);
  max-height: 56%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.collection-card-home__featured-visual--colour {
  background: var(--cc-primary);
}

.collection-card-home--featured:hover,
.collection-card-home--featured:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover, 0 8px 20px rgba(0, 33, 71, 0.12));
}

.collection-card-home--featured:focus-visible {
  outline: 2px solid var(--ps-accent-dark, #004f71);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .collection-card-home--featured:hover .collection-card-home__featured-image {
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-card-home--featured,
  .collection-card-home__featured-image {
    transition: none;
  }

  .collection-card-home--featured:hover,
  .collection-card-home--featured:focus-visible {
    transform: none;
  }

  .collection-card-home--featured:hover .collection-card-home__featured-image {
    transform: none;
  }
}

@media (max-width: 1199px) {
  .collection-card-home__featured-inner {
    min-height: 150px;
  }
}

@media (max-width: 767px) {
  .collection-card-home--featured {
    min-height: 148px;
  }

  .collection-card-home__featured-inner {
    grid-template-columns: minmax(0, 1.7fr) auto minmax(88px, 0.9fr);
    min-height: 148px;
  }

  .collection-card-home__featured-content {
    padding: 0.85rem 0.8rem 0.9rem 0.95rem;
    gap: 0.65rem;
  }

  .collection-card-home--featured .collection-card-home__title,
  .collection-card-home--featured h3 {
    font-size: 1.05rem;
  }

  .collection-card-home__featured-image {
    min-height: 148px;
  }
}

@media (max-width: 360px) {
  .collection-card-home__featured-inner {
    grid-template-columns: minmax(0, 1.75fr) auto minmax(72px, 0.85fr);
  }

  .collection-card-home__featured-divider {
    width: 5px;
    min-width: 5px;
  }

  .collection-card-home__featured-divider--dual {
    width: 7px;
    min-width: 7px;
    background:
      linear-gradient(
        to right,
        var(--cc-primary) 0,
        var(--cc-primary) 5px,
        var(--cc-secondary) 5px,
        var(--cc-secondary) 7px
      );
  }
}

@media (max-width: 767px) {
  .collection-card-home {
    min-height: 0;
  }

  .collection-card-home__body {
    padding: 1rem 1.05rem 1.05rem;
    padding-right: 2rem;
  }
}

.landing-mobile-toggle {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  /* Hero: image-led mobile — skeleton visible above, text on soft lower gradient */
  .landing-hero--blend {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 480px;
    padding: 0 0 1.5rem;
  }

  .landing-hero--blend .landing-hero-text,
  .landing-hero--blend .landing-hero-content {
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
  }

  .landing-hero-text h1,
  .landing-hero-content h1 {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem);
    line-height: 1.12;
  }

  .landing-hero-lead,
  .landing-hero-content p {
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 500;
    color: var(--text-body);
  }

  .landing-hero-actions {
    max-width: none;
  }

  .btn-landing-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.35rem;
  }

  .landing-section-head {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  /* Mobile collapsible sections — extra cards hidden when collapsed */
  .page-home.has-mobile-section-toggles .landing-mobile-toggle {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    min-height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--navy);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
  }

  .page-home.has-mobile-section-toggles .landing-mobile-toggle:hover,
  .page-home.has-mobile-section-toggles .landing-mobile-toggle:focus-visible {
    background: var(--uoe-neutral-bg);
    border-color: var(--navy);
  }

  .landing-featured-row.mobile-collapsed > :nth-child(n + 2),
  .landing-collections-row.mobile-collapsed > :nth-child(n + 2) {
    display: none;
  }

  .landing-hero-bg {
    background-size: cover;
    background-position: 80% 12%;
  }

  .landing-hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(255, 255, 255, 0.06) 22%,
      rgba(255, 255, 255, 0.35) 50%,
      rgba(255, 255, 255, 0.82) 72%,
      rgba(255, 255, 255, 0.9) 100%
    );
  }
}

/* Small phones */
@media (max-width: 480px) {
  .landing-hero--blend {
    min-height: 480px;
  }

  .landing-hero-bg {
    background-position: 82% 10%;
  }
}

@media (min-width: 768px) {
  .landing-mobile-toggle {
    display: none !important;
  }

  .landing-featured-row.mobile-collapsed > :nth-child(n + 2),
  .landing-collections-row.mobile-collapsed > :nth-child(n + 2) {
    display: revert;
  }
}

/* Tablet — compact nav, no wrapping, slightly shorter hero */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-home .header-nav-links {
    flex-wrap: nowrap;
    gap: 1.25rem;
  }

  .page-home .header-nav-links a {
    white-space: nowrap;
  }

  .page-home .logo--landing-brand .brand-wordmark {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-left: 1.15rem;
    padding-left: 1rem;
  }

  .page-home .site-logo--landing {
    height: 44px;
  }

  .landing-hero--blend {
    min-height: min(40vh, 380px);
    padding: 2.5rem 0 3rem;
  }
}
