/* Shared layout for catalog, documents, solutions and projects. */
.nav a { padding-inline: 10px }
.nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft) }
.drawer nav a[aria-current="page"] { font-weight: 600; text-decoration: underline }
.drawer { overflow-y: auto }
.drawer .btn { margin-top: 20px }
.page-intro { padding-block: clamp(44px, 7vw, 108px) }
.page-intro-inner { display: grid; align-items: center; gap: clamp(24px, 5vw, 76px) }
.page-intro-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) }
.page-intro-copy { max-width: 760px }
.page-intro .h1 { margin-block: 12px 20px; color: white; font-size: clamp(36px, 5vw, 66px) }
.page-intro-copy p { color: #e7eef8; max-width: 57ch }
.page-intro-photo > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg) }
.page-back { display: block; margin-bottom: 16px; text-underline-offset: 4px }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px }
.page-section { padding-block: clamp(44px, 6vw, 88px) }
.page-section .h2 { margin-bottom: 24px }
.page-section .lead + .lead, .project-story p + p { margin-top: 16px }
.migration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px }
.migration-card { border: 1px solid var(--line); border-radius: var(--r); background: white; min-width: 0 }
.migration-card > img, .project-card-link > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r) var(--r) 0 0; background: var(--mist) }
.project-card-link { display: block; border-radius: inherit; text-decoration: none }
.project-card-link:hover h3 { text-decoration: underline; text-underline-offset: 3px }
.migration-card-body { padding: clamp(16px, 2vw, 24px); display: grid; justify-items: start; gap: 9px }
.migration-card-body h3 { color: var(--blue); font-size: clamp(19px, 2vw, 24px); line-height: 1.24; overflow-wrap: anywhere }
.migration-card-body p { color: var(--grey) }
.migration-card-body small { color: var(--blue-ink); font-weight: 400 }
.migration-card-body > .btn { margin-top: 4px }
.migration-controls { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px }
.migration-controls label { display: grid; flex: 1 1 12rem; gap: 5px; min-width: 0; max-width: 24rem; font-weight: 500 }
.migration-controls input, .migration-controls select { width: 100%; min-height: 46px; background: white; color: var(--ink); border: 1px solid #aeb6c3; border-radius: var(--r-sm); padding: 8px 12px; font: inherit; font-weight: 400 }
#product-count, #document-count { margin-bottom: 18px; color: var(--grey) }
#product-more { margin-top: 24px }
.product-card > img { object-fit: contain; }
.product-card details { width: 100%; min-width: 0; color: var(--grey) }
.product-card summary { cursor: pointer; min-height: 44px; align-content: center; color: var(--blue); text-decoration: underline; text-underline-offset: 3px }
.product-detail { display: grid; gap: 10px; padding-bottom: 8px }
.product-detail img { width: 100%; border-radius: var(--r-sm) }
.product-detail dl { margin: 0 }
.product-detail dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; border-top: 1px solid var(--line); padding-block: 6px }
.product-detail dd { margin: 0; overflow-wrap: anywhere }
.product-detail .btn { justify-self: start }
.project-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: clamp(20px, 4vw, 56px) }
.project-story img { width: 100%; border-radius: var(--r); }
@media (max-width: 900px) {
  .migration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 650px) {
  .page-intro-photo, .project-story, .migration-grid { grid-template-columns: minmax(0, 1fr) }
  .page-intro-photo > img { aspect-ratio: 16 / 10 }
  .drawer nav a { font-size: clamp(18px, 6vw, 28px); padding-block: 8px }
}
.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.partner-logos li { display: grid; place-items: center; min-height: 94px; padding: 16px; background: white; border-radius: var(--r-sm) }
.partner-logos img { width: 100%; height: 58px; object-fit: contain }

/* Solution landing pages */
.solution-split, .solution-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 5vw, 64px);
}
.solution-video { display: block; width: 100%; max-width: 920px; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: var(--mist); }
.solution-proof { margin-top: 30px; }
.solution-proof h3 { color: var(--blue); margin-top: 18px; }
.solution-lead-form { margin: 0; }
.solution-lead-form .fgrid { margin-bottom: 18px; }
.solution-lead-form .f input, .solution-lead-form .f select, .solution-lead-form .f textarea { font-size: 16px; }
.page-section > .wrap > .lead + .migration-grid { margin-top: 20px; }
@media (max-width: 760px) {
  .solution-split, .solution-contact { grid-template-columns: minmax(0, 1fr); }
}
