/* Catalog and publishing programme — v2 */
.concept-2 .site-header {
  border-bottom: 0;
}

/* Newsletter and privacy — v2.2 */
.contact-inner form {
  border-bottom: 0;
  grid-template-columns: 1fr;
  gap: 14px;
}

.newsletter-fields {
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.contact-inner .newsletter-email {
  width: 100%;
}

.contact-inner button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.newsletter-consent {
  color: rgba(255, 255, 255, 0.84);
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  text-align: left;
  font-size: 10px;
  line-height: 1.55;
}

.contact-inner .newsletter-consent input {
  border: 0;
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--navy-deep);
  cursor: pointer;
}

.newsletter-consent a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.newsletter-consent a:hover,
.newsletter-consent a:focus-visible {
  border-color: #fff;
}

.website-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-status.is-success {
  color: #fff;
}

.form-status.is-error {
  color: #311109;
  opacity: 1;
}

.legal-page {
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper-light);
}

.legal-header {
  min-height: 92px;
  color: #fff;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(22px, 5vw, 82px);
}

.legal-header .text-link {
  color: #fff;
}

.legal-content {
  width: min(860px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0;
}

.legal-content .section-kicker {
  margin-bottom: 18px;
}

.legal-content h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.legal-updated {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-intro {
  margin: 42px 0 54px;
  padding: 24px 26px;
  color: #fff;
  background: var(--navy);
  font-size: 15px;
  line-height: 1.75;
}

.legal-section {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.legal-section h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.legal-section p,
.legal-section li {
  color: #4f5b65;
  font-size: 14px;
  line-height: 1.8;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.legal-section a {
  color: var(--navy);
  border-bottom: 1px solid rgba(8, 43, 80, 0.35);
}

.legal-footer {
  min-height: 120px;
}

[hidden] {
  display: none !important;
}

#courses,
#books,
#contacts {
  scroll-margin-top: 90px;
}

.catalog-section .section-shell {
  padding-bottom: clamp(72px, 8vw, 116px);
}

.product-card[hidden] {
  display: none !important;
}

.catalog-toggle-wrap {
  margin-top: clamp(32px, 4vw, 52px);
}

.catalog-toggle {
  width: 100%;
  color: rgba(255, 255, 255, 0.83);
  cursor: pointer;
  background: transparent;
  border: 0;
  display: grid;
  grid-template-columns: minmax(30px, 1fr) auto auto 25px minmax(30px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 750;
}

.catalog-toggle-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.18s ease;
}

.catalog-toggle-count {
  color: var(--orange-soft);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  white-space: nowrap;
}

.catalog-toggle-icon {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.catalog-toggle:hover,
.catalog-toggle:focus-visible {
  color: #fff;
  outline: none;
}

.catalog-toggle:hover .catalog-toggle-line,
.catalog-toggle:focus-visible .catalog-toggle-line {
  background: var(--orange-soft);
}

.books-section {
  color: var(--ink);
  background: #f5f0e8;
  border-top: 1px solid rgba(17, 27, 37, 0.12);
}

.books-section .section-shell {
  padding-top: clamp(76px, 8vw, 122px);
  padding-bottom: clamp(76px, 8vw, 122px);
}

.books-heading {
  margin-bottom: clamp(35px, 4vw, 54px);
}

.books-heading h2 {
  max-width: 900px;
}

.book-carousel-stage {
  min-height: 490px;
}

.book-carousel-stage .book-showcase {
  margin-top: 0;
  box-shadow: 0 26px 70px rgba(6, 27, 49, 0.12);
  animation: book-enter 0.3s ease-out;
}

.book-carousel-controls {
  width: fit-content;
  margin: 25px 0 0 auto;
  display: grid;
  grid-template-columns: 42px minmax(76px, auto) 42px;
  align-items: center;
  border: 1px solid rgba(8, 43, 80, 0.2);
  background: rgba(255, 255, 255, 0.56);
}

.book-carousel-controls button {
  width: 42px;
  height: 40px;
  color: var(--navy);
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 15px;
  transition: color 0.18s ease, background 0.18s ease;
}

.book-carousel-controls button:hover:not(:disabled),
.book-carousel-controls button:focus-visible:not(:disabled) {
  color: #fff;
  background: var(--navy);
  outline: none;
}

.book-carousel-controls button:disabled {
  cursor: default;
  opacity: 0.28;
}

.book-carousel-counter {
  padding: 0 17px;
  color: var(--navy);
  border-inline: 1px solid rgba(8, 43, 80, 0.15);
  text-align: center;
  letter-spacing: 0.16em;
  font-size: 9px;
  font-weight: 750;
}

.catalog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 12px;
}

@keyframes book-enter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 820px) {
  .book-carousel-stage {
    min-height: 0;
  }

  .catalog-toggle {
    grid-template-columns: minmax(20px, 1fr) auto auto 25px minmax(20px, 1fr);
    gap: 10px;
  }
}

@media (max-width: 560px) {
  /* Reset the tablet card height so the course cover cannot cover its text. */
  .product-card {
    width: 100%;
    max-width: 100%;
  }

  .product-cover {
    height: auto;
  }

  .newsletter-fields {
    border-bottom: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-inner .newsletter-email {
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  }

  .contact-inner .newsletter-fields button {
    width: fit-content;
    padding: 8px 0;
  }

  .legal-header {
    min-height: 78px;
    padding: 15px 20px;
  }

  .legal-header .brand-name {
    display: none;
  }

  .legal-content {
    width: min(100% - 40px, 860px);
  }

  .catalog-toggle {
    grid-template-columns: 1fr auto auto;
  }

  .catalog-toggle-line {
    display: none;
  }

  .book-carousel-controls {
    margin-right: auto;
  }
}
