/* Editorial rhythm for the homepage after the product tour. */
body[data-page="/"] {
  --editorial-sand: #f8f5ee;
  --editorial-sand-line: #e6e1d5;
  --editorial-teal: #00675d;
}

:root[data-theme="dark"] body[data-page="/"] {
  --editorial-sand: #172c3b;
  --editorial-sand-line: var(--line);
  --editorial-teal: #7bd9cb;
}

.editorial-solutions {
  padding-block: clamp(2.6rem, 5.7vw, 5.6rem);
}

.editorial-solutions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(1.5rem, 4.8vw, 4.4rem);
}

.editorial-solutions-photo {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #163540;
  box-shadow: 0 20px 45px #061b1d24;
}

.editorial-solutions-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.editorial-solutions-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.editorial-solutions-copy h2 {
  max-width: 15ch;
  margin: .2rem 0 1.15rem;
}

.editorial-solutions-copy .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(.6rem, 1.5vw, 1.4rem);
  margin: 0;
}

.editorial-solutions-copy .card-link {
  position: relative;
  min-height: 62px;
  padding: .55rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--text);
  font-size: .92rem;
  text-decoration: none;
  transition: color .18s ease;
}

.editorial-solutions-copy .card-link:hover,
.editorial-solutions-copy .card-link:focus-visible {
  color: var(--editorial-teal);
  transform: none;
}

.editorial-solutions-copy .card-link strong {
  line-height: 1.3;
}

.editorial-solutions-copy .icon-tile {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.editorial-solutions-copy .icon-tile svg {
  width: 18px;
  height: 18px;
}

.editorial-integrations {
  padding-block: 0 clamp(2.5rem, 5vw, 4.8rem);
}

.editorial-integrations .split {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--editorial-sand-line);
  border-radius: 20px;
  background: var(--editorial-sand);
}

.editorial-integrations .split > .card {
  padding: clamp(1rem, 3vw, 2.15rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.editorial-integrations .split > .card + .card {
  border-inline-start: 1px solid var(--editorial-sand-line);
}

.editorial-integrations .split > .card > .icon-tile {
  margin-bottom: .55rem;
}

.editorial-integration-types {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  padding: 0;
  margin: .85rem 0 1.05rem;
  list-style: none;
}

.editorial-integration-types li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .24rem .55rem;
  border: 1px solid var(--editorial-sand-line);
  border-radius: .38rem;
  background: var(--paper);
  color: var(--text);
  font-size: .78rem;
  font-weight: 750;
}

.editorial-integration-types .icon {
  width: 16px;
  height: 16px;
  color: var(--editorial-teal);
}

.editorial-packages {
  padding-block: clamp(2.5rem, 4.8vw, 4.5rem) clamp(1.2rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}

.editorial-packages > .feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 1.65rem;
  border-block-start: 1px solid var(--line);
}

.editorial-packages .catalogue-card {
  display: grid;
  grid-template-columns: auto minmax(0, .5fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.65rem, 2vw, 1.4rem);
  min-height: 74px;
  padding: .85rem .35rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: color .18s ease;
}

.editorial-packages .catalogue-card:hover,
.editorial-packages .catalogue-card:focus-visible {
  color: var(--editorial-teal);
  transform: none;
}

.editorial-packages .catalogue-card :is(.icon-tile, strong, p) {
  margin: 0;
}

.editorial-packages .catalogue-card p {
  font-size: .91rem;
}

.editorial-package-arrow {
  display: inline-grid;
  place-items: center;
  color: var(--editorial-teal);
}

.editorial-faq {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
  align-items: start;
  gap: clamp(1rem, 5vw, 4rem);
}

.editorial-faq > h2 {
  max-width: 13ch;
}

.editorial-faq .faq {
  display: grid;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.editorial-faq details {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.editorial-faq details summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .8rem;
  min-height: 53px;
  padding: .6rem .15rem;
  list-style: none;
  line-height: 1.38;
}

.editorial-faq details summary::-webkit-details-marker {
  display: none;
}

.editorial-faq details summary::after {
  content: "";
  display: block;
  width: .8rem;
  height: .8rem;
  color: var(--editorial-teal);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}

.editorial-faq details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.editorial-faq details p {
  margin: 0;
  padding: 0 1.4rem .9rem .15rem;
}

.editorial-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(1.5rem, 5vw, 4.5rem);
  background: radial-gradient(ellipse at 87% 8%, #215453, transparent 64%), #102a43;
}

.editorial-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(62%, 39rem);
  background:
    repeating-linear-gradient(34deg, transparent 0 11px, #9af5e92c 11px 12px, transparent 12px 18px),
    repeating-linear-gradient(145deg, transparent 0 11px, #9af5e922 11px 12px, transparent 12px 18px);
  mask-image: radial-gradient(ellipse at 72% 52%, #000 14%, transparent 69%);
  pointer-events: none;
}

.editorial-cta .primary {
  min-height: 48px;
}

@media (max-width: 900px) {
  .editorial-solutions-layout {
    gap: 1.45rem;
  }

  .editorial-solutions-copy .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .editorial-solutions-layout,
  .editorial-integrations .split,
  .editorial-faq {
    grid-template-columns: 1fr;
  }

  .editorial-solutions-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .editorial-solutions-copy h2,
  .editorial-faq > h2 {
    max-width: none;
  }

  .editorial-solutions-copy .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-solutions-photo {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16 / 10;
    box-shadow: none;
  }

  .editorial-integrations .split > .card + .card {
    border-inline-start: 0;
    border-top: 1px solid var(--editorial-sand-line);
  }

  .editorial-packages .catalogue-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .32rem .75rem;
    padding: .85rem .12rem;
  }

  .editorial-packages .catalogue-card .icon-tile {
    grid-row: span 2;
  }

  .editorial-packages .catalogue-card p {
    grid-column: 2;
    grid-row: 2;
  }

  .editorial-package-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .editorial-faq > h2 {
    margin-bottom: 0;
  }
}

@media (max-width: 540px) {
  .editorial-solutions-copy .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Three workspaces for the same example order. */
.product-gallery {
  padding-block: clamp(2rem, 4.4vw, 4.75rem);
  border-block: 1px solid var(--line);
}

.gallery-intro {
  max-width: 43rem;
  margin-bottom: 1.1rem;
}

.gallery-intro h2 { margin: .25rem 0 .4rem; }
.gallery-intro p:last-child { margin: 0; }

.gallery-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
  width: min(100%, 34rem);
  padding: .35rem;
  margin-bottom: .9rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-tint);
}

.gallery-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 44px;
  padding: .4rem .65rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gallery-tabs button[aria-selected=true] {
  border-color: var(--control-line);
  background: var(--paper);
  color: var(--teal);
  box-shadow: 0 2px 9px #16393c13;
}

.gallery-tabs button:hover { border-color: var(--teal); }
.gallery-tabs .icon { width: 20px; height: 20px; flex: none; color: var(--teal); }

.gallery-panels { display: grid; gap: .85rem; }

.gallery-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-photo {
  position: relative;
  min-width: 0;
  min-height: 15rem;
  margin: 0;
  background: var(--surface-tint);
}

.gallery-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-info {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2.4rem);
  align-self: center;
}

.gallery-info h3 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.85rem); }
.gallery-info p { margin: .42rem 0 1rem; }
.gallery-info .product-text-link { margin-top: .55rem; }
.gallery-example { padding: .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.gallery-example-top, .gallery-example-top strong { display: flex; align-items: center; gap: .35rem; }
.gallery-example-top { flex-wrap: wrap; justify-content: space-between; }
.gallery-example-top > span { color: var(--muted); font-size: .8125rem; font-weight: 700; }
.gallery-example-top strong { font-size: .875rem; }
.gallery-example-top .icon { width: 18px; height: 18px; flex: none; color: var(--teal); }

.gallery-example dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .4rem;
  margin: .65rem 0 0;
  padding-top: .5rem;
  border-top: 1px solid var(--line);
}

.gallery-example :is(dt,dd) { overflow-wrap: anywhere; font-size: .8125rem; }
.gallery-example dt { color: var(--muted); }
.gallery-example dd { margin: .12rem 0 0; font-weight: 760; }

@media (max-width: 700px) {
  .gallery-panel { grid-template-columns: 1fr; }
  .gallery-photo { min-height: 0; aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-tabs button { transition: background-color .15s ease, border-color .15s ease; }
}

.editorial-package-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1rem;
  padding: 1rem 0 0;
}

.editorial-package-footer p { margin: 0; }
.editorial-package-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .9rem; }
