/* Text-driven hero cards and director message, independent of Ladi coordinates. */
html body[data-migration-template="48"] :is(#SECTION1.migration-hero,#SECTION5.migration-message) {
  position: static; width: 100%; height: auto !important; min-height: 0;
  padding: 48px 0; overflow: visible; box-sizing: border-box;
  color: #05224a; font: 400 16px/1.65 Inter, system-ui, sans-serif;
}
html body[data-migration-template="48"] #SECTION1.migration-hero { background: #cbf0f5; }
html body[data-migration-template="48"] #SECTION5.migration-message { background: #f4f9ff; }
.migration-hero *, .migration-message * { box-sizing: border-box; }
.migration-hero-inner, .migration-message-inner { width: min(100%, 1000px); padding: 0 20px; margin: 0 auto; }
.migration-hero-intro { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 28px; align-items: center; }
.migration-hero-copy { min-width: 0; }
.migration-hero-logo { display: inline-flex; max-width: 100%; padding: 14px 20px; background: #ffffffbf; border: 1px solid #fff; border-radius: 16px; }
.migration-hero-logo-image { display: block; width: 340px; max-width: 100%; height: auto; }
.migration-hero h1 { margin: 20px 0 0; font-size: clamp(28px, 3vw, 34px); line-height: 1.4; font-weight: 700; color: #061d2d; overflow-wrap: anywhere; }
.migration-hero-subtitle { margin: 24px 0 0; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; font-weight: 700; color: #061d2d; }
.migration-hero-visual { display: block; width: 100%; height: auto; }
.migration-hero-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; list-style: none; margin: 32px 0 0; padding: 0; }
.migration-hero-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 16px; border: 2px solid #ffffffb3; border-radius: 12px; background: #ffffff61; }
.migration-hero-card-heading { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: start; }
.migration-hero-number { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: linear-gradient(140deg,#1dcc66,#009caa); font-size: 28px; font-weight: 700; line-height: 1; }
.migration-hero-card h2 { margin: 0; padding-top: 4px; font-size: 16px; line-height: 1.6; font-weight: 700; color: #005363; overflow-wrap: anywhere; }
.migration-hero-card-image { display: block; width: 100%; height: auto; margin-top: auto; }
.migration-message-inner { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,7fr); gap: 32px; align-items: start; }
.migration-message-profile { display: grid; gap: 16px; }
.migration-message-portrait { display: block; width: 100%; height: auto; }
.migration-message-cta { display: block; padding: 12px 16px; border-radius: 6px; background: #00a63c; color: #fff; text-decoration: none; text-align: center; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.migration-message-cta:hover, .migration-message-cta:focus-visible { background: #008531; }
.migration-message-copy { min-width: 0; }
.migration-message h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.5; color: #071e30; text-align: right; overflow-wrap: anywhere; }
.migration-message-body { display: grid; gap: 24px; margin-top: 28px; }
.migration-message-body p { margin: 0; color: #111; line-height: 1.65; text-align: right; overflow-wrap: anywhere; }
.migration-message-signature { display: grid; gap: 4px; margin-top: 24px; text-align: right; }
.migration-message-signature p { margin: 0; font-size: 14px; line-height: 1.6; }
.migration-message-signature .migration-message-name { font-size: 18px; font-weight: 700; color: #005bac; }
@media (max-width: 767px) {
  html body[data-migration-template="48"] :is(#SECTION1.migration-hero,#SECTION5.migration-message) { padding: 32px 0; }
  .migration-hero-inner, .migration-message-inner { padding: 0 16px; }
  .migration-hero-intro, .migration-hero-cards, .migration-message-inner { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .migration-hero-visual { max-width: 480px; margin: 0 auto; }
  .migration-hero-logo { padding: 12px 16px; }
  .migration-hero-card-image { width: min(100%,300px); align-self: center; }
  .migration-message-profile { width: min(100%,300px); margin: 0 auto; }
  .migration-message h2, .migration-message-body p, .migration-message-signature { text-align: left; }
}
/* The legacy features banner starts 62px above SECTION3 on desktop. Give it
   its own space so it cannot cover the new hero's naturally sized cards. */
@media (min-width: 768px) {
  body[data-migration-template="48"] #SECTION3 { margin-top: 64px; }
}
.migration-message .migration-message-cta { color: #fff; }
