/*
 * 2.22.0 – Editorial home sections, topic tiles, footer social links and
 * small accessibility fixes. Loads after app.css.
 */

:root {
  --sc-cream: #f1ede4;
  --sc-sand: #e6dfd2;
  --sc-sage: #d7e5dc;
  --sc-gold: #c69b4e;
  --sc-ink: #192321;
  --sc-teal: #14777a;
  --sc-teal-dark: #0c575a;
  --sc-terracotta: #a65646;
}

/* ---------- Shared ---------- */

.cser-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cser-btn--primary {
  background: var(--sc-teal);
  color: #fff !important;
}

.cser-btn--primary:hover,
.cser-btn--primary:focus-visible {
  background: var(--sc-teal-dark);
}

.cser-btn--ghost {
  border-color: rgba(25, 35, 33, 0.35);
  color: var(--sc-ink) !important;
}

.cser-btn--ghost:hover,
.cser-btn--ghost:focus-visible {
  border-color: var(--sc-ink);
  background: var(--sc-ink);
  color: #fff !important;
}

.cser-btn--light {
  border-color: rgba(241, 237, 228, 0.55);
  color: var(--sc-cream) !important;
}

.cser-btn--light:hover,
.cser-btn--light:focus-visible {
  background: var(--sc-cream);
  color: var(--sc-ink) !important;
}

.cser-home-intro,
.cser-upcoming,
.cser-topics,
.cser-quotes,
.cser-spotlight__inner,
.cser-gift-row {
  box-sizing: border-box;
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}

/* ---------- Intro (H1) ---------- */

.cser-home-intro {
  padding: 64px 40px 56px;
}

.cser-home-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  gap: 64px;
  align-items: end;
}

.cser-home-intro__eyebrow,
.cser-spotlight__eyebrow,
.cser-gift-card__eyebrow {
  margin: 0 0 18px;
  color: var(--sc-teal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cser-home-intro__title {
  margin: 0 0 22px;
  color: var(--sc-ink);
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.cser-home-intro__lead {
  max-width: 640px;
  margin: 0 0 30px;
  color: rgba(25, 35, 33, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.cser-home-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cser-home-intro__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  list-style: none;
}

.cser-home-intro__facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cser-home-intro__facts strong {
  color: var(--sc-ink);
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.1;
}

.cser-home-intro__facts span {
  color: rgba(25, 35, 33, 0.7);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* ---------- Upcoming books ---------- */

.cser-upcoming {
  padding: 56px 40px 64px;
  border-top: 1px solid var(--border-color);
}

.cser-upcoming__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cser-upcoming__item {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  background: var(--sc-cream);
}

.cser-upcoming__cover img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 14px 26px -12px rgba(25, 35, 33, 0.5);
}

.cser-upcoming__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cser-upcoming__date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cser-upcoming__date span {
  color: rgba(25, 35, 33, 0.7);
}

.cser-upcoming__date time {
  color: var(--sc-ink);
  font-weight: 700;
}

.cser-upcoming__date em {
  padding: 2px 7px;
  background: var(--sc-terracotta);
  color: #fff;
  font-style: normal;
}

.cser-upcoming__author {
  margin: 0 0 6px;
  color: var(--sc-teal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cser-upcoming__title {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.15;
}

.cser-upcoming__title a {
  color: var(--sc-ink);
  text-decoration: none;
}

.cser-upcoming__excerpt {
  margin: 0 0 18px;
  color: rgba(25, 35, 33, 0.78);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cser-upcoming__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: auto 0 0;
}

.cser-upcoming__price {
  font-weight: 700;
}

.cser-upcoming__price del {
  margin-right: 6px;
  color: rgba(25, 35, 33, 0.6);
  font-weight: 400;
}

.cser-upcoming__price ins {
  text-decoration: none;
}

/* ---------- Topic tiles ---------- */

.cser-topics {
  padding: 64px 40px 72px;
  border-top: 1px solid var(--border-color);
}

.cser-topics__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: 34px;
}

.cser-topics__head h2 {
  margin: 0;
  color: var(--sc-ink);
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.cser-topics__head p {
  max-width: 460px;
  margin: 0;
  color: rgba(25, 35, 33, 0.72);
  line-height: 1.6;
}

.cser-topics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cser-topic__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  color: var(--sc-ink) !important;
  text-decoration: none !important;
}

.cser-topic--tone-0 .cser-topic__link { background: var(--sc-sage); }
.cser-topic--tone-1 .cser-topic__link { background: var(--sc-cream); }
.cser-topic--tone-2 .cser-topic__link { background: var(--sc-sand); }
.cser-topic--tone-3 .cser-topic__link { background: #e3ebe9; }

.cser-topic__covers {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 190px;
}

.cser-topic__cover {
  position: absolute;
  bottom: -18px;
  left: 50%;
  width: 34%;
  transition: transform 0.3s ease;
}

.cser-topic__cover img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 12px 22px -10px rgba(25, 35, 33, 0.55);
}

.cser-topic__cover--0 {
  z-index: 3;
  transform: translateX(-50%);
}

.cser-topic__cover--1 {
  z-index: 2;
  transform: translateX(-112%) rotate(-8deg) scale(0.9);
}

.cser-topic__cover--2 {
  z-index: 1;
  transform: translateX(12%) rotate(8deg) scale(0.9);
}

.cser-topic__link:hover .cser-topic__cover--0,
.cser-topic__link:focus-visible .cser-topic__cover--0 {
  transform: translateX(-50%) translateY(-10px);
}

.cser-topic__link:hover .cser-topic__cover--1,
.cser-topic__link:focus-visible .cser-topic__cover--1 {
  transform: translateX(-122%) rotate(-12deg) scale(0.9);
}

.cser-topic__link:hover .cser-topic__cover--2,
.cser-topic__link:focus-visible .cser-topic__cover--2 {
  transform: translateX(22%) rotate(12deg) scale(0.9);
}

.cser-topic__text {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
}

.cser-topic__name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  line-height: 1.15;
}

.cser-topic__count {
  flex: 0 0 auto;
  color: var(--sc-teal);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cser-topic__link:focus-visible {
  outline: 3px solid var(--sc-teal);
  outline-offset: 3px;
}

/* Inside an ordinary page (e.g. Hobbi) */
.entry-content .cser-topics,
.page-content .cser-topics {
  padding-right: 0;
  padding-left: 0;
  border-top: 0;
}

/* ---------- Author spotlight ---------- */

.cser-spotlight {
  background: var(--sc-ink);
  color: var(--sc-cream);
}

.cser-spotlight__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  padding: 80px 40px;
}

.cser-spotlight .cser-spotlight__eyebrow {
  color: var(--sc-gold);
}

.cser-spotlight h2 {
  margin: 0 0 20px;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cser-spotlight__lead {
  margin: 0 0 24px;
  color: rgba(241, 237, 228, 0.86);
  font-size: 1.02rem;
  line-height: 1.7;
}

.cser-spotlight__quote {
  margin: 0 0 30px;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--sc-gold);
}

.cser-spotlight__quote p {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
}

.cser-spotlight__quote footer {
  color: var(--sc-gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cser-spotlight__books {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cser-spotlight__books li:nth-child(even) {
  margin-top: 44px;
}

.cser-spotlight__books a {
  display: block;
  color: var(--sc-cream) !important;
  text-decoration: none !important;
}

.cser-spotlight__books img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 20px 34px -14px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease;
}

.cser-spotlight__books a:hover img,
.cser-spotlight__books a:focus-visible img {
  transform: translateY(-6px);
}

.cser-spotlight__book-title {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.35;
}

/* ---------- Critics' quotes ---------- */

.cser-quotes {
  padding: 64px 40px 72px;
  border-top: 1px solid var(--border-color);
}

.cser-quotes__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cser-quote figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 30px 28px 24px;
  border-top: 3px solid var(--sc-gold);
  background: var(--sc-cream);
}

.cser-quote blockquote {
  flex: 1 1 auto;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.cser-quote blockquote p {
  margin: 0;
  color: var(--sc-ink);
  font-family: var(--font-title);
  font-size: 1.12rem;
  line-height: 1.55;
}

.cser-quote blockquote p::before {
  content: "„";
}

.cser-quote blockquote p::after {
  content: "”";
}

.cser-quote__book {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--sc-ink) !important;
  text-decoration: none !important;
}

.cser-quote__book img {
  flex: 0 0 auto;
  width: 46px;
  height: auto;
  box-shadow: 0 6px 12px -6px rgba(25, 35, 33, 0.5);
}

.cser-quote__book cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}

.cser-quote__source {
  display: block;
  margin-top: 3px;
  color: rgba(25, 35, 33, 0.7);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Gift row ---------- */

.cser-gift-row {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--border-color);
}

.cser-gift-row > .editorial-shelf-section {
  min-width: 0;
  max-width: none;
  margin: 0;
  border-top: 0 !important;
}

.cser-gift-card {
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 64px 0 40px 40px;
  padding: 36px 30px;
  background: var(--sc-sage);
}

.cser-gift-card__title {
  margin: 0 0 12px;
  color: var(--sc-ink);
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1.05;
}

.cser-gift-card__text {
  margin: 0 0 22px;
  color: rgba(25, 35, 33, 0.8);
  line-height: 1.6;
}

/* ---------- Footer ---------- */

.footer-logo img {
  width: auto !important;
  max-width: 100%;
  height: 72px !important;
  object-fit: contain;
}

.cser-footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.cser-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(241, 237, 228, 0.35);
  color: #f1ede4 !important;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.cser-footer-social a:hover,
.cser-footer-social a:focus-visible {
  background: #f1ede4;
  color: var(--sc-ink) !important;
}

/* ---------- Product page ---------- */

/* Headings typed into book descriptions ("VÁRHATÓ MEGJELENÉS: …") */
.cser-product-description-content h1,
.cser-product-description-content h2,
.cser-product-description-content h3,
.cser-product-description-content h4 {
  margin: 0 0 12px;
  color: var(--sc-ink);
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.cser-product-description-content h1 strong,
.cser-product-description-content h2 strong,
.cser-product-description-content h3 strong {
  font-weight: inherit;
}

/* Gift voucher hint link: 4.08:1 → 6:1 on the sage background */
.cser-gift-hint a {
  color: var(--sc-teal-dark) !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .cser-topics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cser-spotlight__inner,
  .cser-home-intro__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cser-quotes__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cser-home-intro {
    padding: 36px 20px 32px;
  }

  .cser-home-intro__lead {
    font-size: 1rem;
  }

  .cser-home-intro__facts li {
    padding: 16px 14px;
  }

  .cser-home-intro__facts strong {
    font-size: 1.15rem;
  }

  .cser-upcoming,
  .cser-topics,
  .cser-quotes {
    padding: 36px 20px 40px;
  }

  .cser-upcoming__list {
    grid-template-columns: 1fr;
  }

  .cser-upcoming__item {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .cser-upcoming__title {
    font-size: 1.25rem;
  }

  .cser-upcoming__excerpt {
    display: none;
  }

  .cser-topics__grid {
    gap: 10px;
  }

  .cser-topic__link {
    min-height: 220px;
  }

  .cser-topic__covers {
    min-height: 150px;
  }

  .cser-topic__text {
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
  }

  .cser-topic__name {
    font-size: 1.05rem;
  }

  .cser-spotlight__inner {
    padding: 48px 20px;
  }

  .cser-spotlight__books {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .cser-spotlight__books li:nth-child(even) {
    margin-top: 22px;
  }

  .cser-spotlight__book-title {
    display: none;
  }

  .cser-gift-row {
    grid-template-columns: 1fr;
  }

  .cser-gift-card {
    margin: 28px 20px 0;
    padding: 26px 22px;
  }

  .cser-footer-social {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cser-topic__cover,
  .cser-spotlight__books img {
    transition: none;
  }
}

@media (max-width: 760px) {
  .cser-editorial-home .cser-upcoming .cser-shelf-heading,
  .cser-editorial-home .cser-quotes .cser-shelf-heading {
    padding: 0 !important;
  }
}

@media (max-width: 760px) {
  .cser-topic__link {
    min-height: 0;
  }

  .cser-topic__covers {
    min-height: 0;
    height: 140px;
  }

  .cser-topic__cover {
    width: 40%;
    bottom: -14px;
  }
}

@media (max-width: 760px) {
  .cser-quotes__list {
    display: flex;
    gap: 12px;
    margin: 0 -20px;
    padding: 0 20px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .cser-quotes__list::-webkit-scrollbar {
    display: none;
  }

  .cser-quote {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }

  .cser-quote figure {
    padding: 22px 20px 18px;
  }

  .cser-quote blockquote p {
    font-size: 1rem;
  }
}

/* ---------- Ordinary pages (Rólunk, ÁSZF, Hobbi …) ---------- */

.cser-page-entry .entry-content > h2,
.cser-page-entry .entry-content > h3,
.cser-page-entry .entry-content .wp-block-column > h2,
.cser-page-entry .entry-content .wp-block-column > h3 {
  color: var(--sc-ink);
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cser-page-entry .entry-content > h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.cser-page-entry .entry-content > h3,
.cser-page-entry .entry-content .wp-block-column > h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.3rem;
}

.cser-page-entry .entry-content p a,
.cser-page-entry .entry-content li a {
  color: var(--sc-teal-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cser-page-entry .entry-content p a:hover,
.cser-page-entry .entry-content li a:hover {
  color: var(--sc-ink);
}

/* Struck-through original price: readable (≥4.5:1) on white and cream */
.price del,
.cser-upcoming__price del {
  color: #5c6462 !important;
  opacity: 1 !important;
}

.price del *,
.cser-upcoming__price del * {
  color: inherit !important;
}

.cser-gift-card .cser-gift-card__eyebrow {
  color: var(--sc-teal-dark);
}

/* The H1 stays on one line wherever it fits (tablet and desktop). */
.cser-home-intro__inner {
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
}

@media (min-width: 761px) {
  .cser-home-intro__title {
    font-size: clamp(2.4rem, 4.4vw, 4.2rem);
    white-space: nowrap;
  }
}

@media (max-width: 1100px) {
  .cser-home-intro__inner {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1101px) {
  .cser-home-intro__facts strong {
    font-size: 1.22rem;
  }
}

/* Webshopár: the permanent web-shop price, with the bookshop price beside it
   (not struck through, it is not a price reduction). */
.cser-webshop-price__amount {
  color: var(--app-teal, #1f6f68);
  font-weight: 700;
}

.cser-list-price {
  color: #5c6462;
  font-size: 0.74rem;
  font-weight: 400;
  white-space: nowrap;
}

.cser-list-price .woocommerce-Price-amount {
  color: inherit;
  font-weight: 400;
}

/* Cards: "Bolti ár 5 999 Ft" small above, the web-shop price below. */
.editorial-product-card .price-box .cser-list-price {
  order: -1;
}

.editorial-product-card .price-box .cser-webshop-price__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Product page. */
.cser-price-row .price .cser-webshop-price {
  display: inline-flex;
  flex-direction: column;
  margin-right: 14px;
  vertical-align: bottom;
}

.cser-price-row .price .cser-webshop-price__label {
  color: var(--sc-teal-dark, #17524d);
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cser-price-row .price .cser-list-price {
  font-size: 0.86rem;
}

.cser-webshop-note {
  margin: 6px 0 0;
  color: #5c6462;
  font-size: 0.82rem;
}

.cser-price-row .price .cser-list-price {
  align-self: flex-end;
  padding-bottom: 3px;
}

.cser-buybar__price .cser-webshop-price__label {
  font-size: 0.72em;
  font-weight: 600;
}

.cser-buybar__price .cser-list-price {
  display: block;
}

/* Upcoming cards: web-shop price on one line, bookshop price below it. */
.cser-upcoming__price .cser-webshop-price,
.cser-upcoming__price .cser-list-price {
  display: block;
}

.cser-upcoming__price .cser-list-price {
  margin-top: 4px;
  font-size: 0.82rem;
}

.cser-upcoming__buy .cser-btn {
  margin-left: auto;
}

/* Book subtitle ("Alcím") under the title. */
.cser-product-subtitle {
  margin: 0.3em 0 20px;
  color: #4f5a58;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.cser-upcoming__subtitle {
  display: -webkit-box;
  margin: -4px 0 12px;
  overflow: hidden;
  color: #4f5a58;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.editorial-product-subtitle,
ul.products li.product .editorial-product-subtitle {
  display: -webkit-box;
  margin: 2px 0 6px;
  overflow: hidden;
  color: #5c6462;
  font-size: 0.8rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Long titles never take over the card. */
.cser-upcoming__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cser-upcoming__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

/* ---------------------------------------------------------------------------
 * Mobile opening carousel (inc/mobile-hero.php)
 * ------------------------------------------------------------------------- */

.cser-mhero {
  display: none;
}

@media (max-width: 760px) {
  .has-mhero > .cser-smart-slider-section {
    display: none;
  }

  .cser-mhero {
    display: block;
  }

  .cser-mhero__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .cser-mhero__track::-webkit-scrollbar {
    display: none;
  }

  .cser-mhero__slide {
    position: relative;
    flex: 0 0 100%;
    box-sizing: border-box;
    height: min(112vw, 460px);
    min-height: 380px;
    padding: 26px 22px 24px;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(160deg, var(--mh-a, #1a7d7a), var(--mh-b, #0f4f4f));
  }

  /* A soft light behind the cover. */
  .cser-mhero__slide::before {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
  }

  .cser-mhero__slide::before {
    right: -34vw;
    bottom: -30vw;
    width: 118vw;
    height: 118vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 38%, rgba(255, 255, 255, 0) 66%);
  }

  .cser-mhero__bg {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .cser-mhero__bg img {
    position: absolute;
    left: -30%;
    top: -30%;
    width: 160%;
    height: 160%;
    max-width: none;
    object-fit: cover;
    filter: blur(26px);
    opacity: 0.26;
  }

  /* Keeps the text side calm so white type stays readable on any cover. */
  .cser-mhero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, var(--mh-a, #1a7d7a) 0%, transparent 62%);
    opacity: 0.55;
  }

  .cser-mhero__slide:nth-child(even) .cser-mhero__bg img {
    transform: rotate(180deg);
  }

  /* Generated textures (no image files): paper grain and brushed rings, alternating slide by slide. */
  .cser-mhero__tx {
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
  }

  .cser-mhero__tx--1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.1 0 0 0 -0.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
    opacity: 0.5;
  }

  .cser-mhero__tx--2 {
    background-image: repeating-radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.075) 0, rgba(255, 255, 255, 0.075) 1px, rgba(255, 255, 255, 0) 2px, rgba(0, 0, 0, 0.05) 7px, rgba(255, 255, 255, 0) 9px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='1' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.9 0 0 0 -0.36'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
    opacity: 0.75;
  }

  /* The rings again, centred in the opposite corner. */
  .cser-mhero__tx--3 {
    background-image: repeating-radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.075) 0, rgba(255, 255, 255, 0.075) 1px, rgba(255, 255, 255, 0) 2px, rgba(0, 0, 0, 0.05) 7px, rgba(255, 255, 255, 0) 9px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='1' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.9 0 0 0 -0.36'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
    opacity: 0.75;
  }

  .cser-mhero__slide:hover,
  .cser-mhero__slide:focus {
    color: #fff;
  }

  .cser-mhero__slide:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
  }

  .cser-mhero__text {
    position: relative;
    z-index: 2;
    display: block;
  }

  .cser-mhero__eyebrow,
  .cser-mhero__author {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-transform: uppercase;
  }

  .cser-mhero__eyebrow {
    opacity: 0.86;
  }

  .cser-mhero__author {
    margin-top: 16px;
  }

  .cser-mhero__title {
    display: block;
    max-width: 88%;
    margin-top: 6px;
    font-family: var(--font-title);
    font-size: clamp(2rem, 9.4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }

  .cser-mhero__eyebrow + .cser-mhero__title {
    margin-top: 12px;
  }

  .cser-mhero__title--long {
    font-size: clamp(1.55rem, 7.2vw, 1.95rem);
    line-height: 1.1;
  }

  .cser-mhero__tag {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 9px;
    background: #a8493c;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .cser-mhero__lead {
    display: block;
    max-width: 46%;
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.42;
  }

  .cser-mhero__slide--offer .cser-mhero__lead {
    max-width: 80%;
    font-size: 1.02rem;
  }

  .cser-mhero__btn {
    position: absolute;
    z-index: 3;
    left: 22px;
    bottom: 24px;
    padding: 13px 17px;
    background: #fff;
    color: #12393a;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .cser-mhero__covers {
    position: absolute;
    z-index: 1;
    right: 18px;
    bottom: 26px;
    display: block;
  }

  .cser-mhero__covers img {
    display: block;
    width: 38vw;
    max-width: 168px;
    height: auto;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
  }

  .cser-mhero__covers--one img {
    transform: rotate(4deg);
    transform-origin: bottom right;
  }

  .cser-mhero__covers--fan {
    right: 14px;
    width: 64vw;
    max-width: 280px;
    height: 46vw;
    max-height: 200px;
    bottom: 96px;
  }

  .cser-mhero__covers--fan img {
    position: absolute;
    bottom: 0;
    width: 27vw;
    max-width: 118px;
  }

  .cser-mhero__covers--fan img:nth-child(1) {
    left: 0;
    transform: rotate(-8deg) scale(0.9);
    transform-origin: bottom center;
  }

  .cser-mhero__covers--fan img:nth-child(2) {
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
  }

  .cser-mhero__covers--fan img:nth-child(3) {
    right: 0;
    transform: rotate(8deg) scale(0.9);
    transform-origin: bottom center;
  }

  .cser-mhero__covers--fan img:nth-child(2):last-child {
    left: auto;
    right: 0;
    transform: rotate(6deg);
  }

  .cser-mhero__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 4px;
  }

  .cser-mhero__dots button {
    position: relative;
    width: 26px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .cser-mhero__dots button::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;
    height: 3px;
    background: rgba(25, 35, 33, 0.2);
  }

  .cser-mhero__dots button[aria-current="true"]::before {
    background: var(--brand-teal);
  }
}
