/* V12. Phases and deliverables share the white service card. */
#astra-migration .am-offer .am-section {
    display: block;
    margin-top: calc(1.75 * var(--am-unit));
    padding: calc(1.75 * var(--am-unit)) 0 0;
    border: 0;
    border-top: 1px solid var(--am-line);
    border-radius: 0;
    background: transparent;
    color: var(--am-ink);
    box-shadow: none;
}
#astra-migration .am-project-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: calc(.75 * var(--am-unit)) calc(2 * var(--am-unit)); margin-bottom: calc(1.25 * var(--am-unit)); }
#astra-migration .am-project-heading > p { max-width: calc(31 * var(--am-unit)); }
#astra-migration .am-stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--am-unit); }
#astra-migration .am-stage { display: block; padding: var(--am-unit); border: 0; border-radius: var(--am-control-radius); background: var(--am-surface-soft); }
#astra-migration .am-stage-top { display: flex; align-items: center; gap: calc(.75 * var(--am-unit)); margin-bottom: calc(.65 * var(--am-unit)); }
#astra-migration .am-stage .am-step-no { width: calc(2.25 * var(--am-unit)); min-width: calc(2.25 * var(--am-unit)); max-width: calc(2.25 * var(--am-unit)); height: calc(2.25 * var(--am-unit)); min-height: calc(2.25 * var(--am-unit)); max-height: calc(2.25 * var(--am-unit)); margin: 0; border: 0; outline: 0; box-shadow: none; }
#astra-migration .am-stage h3 { margin: 0; }
#astra-migration .am-stage p { margin-left: calc(3 * var(--am-unit)); }
#astra-migration .am-stage-label { color: var(--am-red); font-weight: 700; }
#astra-migration .am-stage-optional .am-step-no { background: var(--am-surface-raised); color: var(--am-muted); }
#astra-migration .am-stage-optional .am-step-number { color: inherit; }
#astra-migration .am-deliverables { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(1.5 * var(--am-unit)); }
#astra-migration .am-deliverables article { position: relative; }
#astra-migration .am-deliverables .am-line-icon { width: calc(1.5 * var(--am-unit)); height: calc(1.5 * var(--am-unit)); margin-bottom: calc(.75 * var(--am-unit)); color: var(--am-red); }
#astra-migration .am-deliverables h3 { margin-bottom: calc(.5 * var(--am-unit)); }
#astra-migration .am-service-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: calc(1.5 * var(--am-unit)); margin-top: calc(1.5 * var(--am-unit)); padding: calc(1.25 * var(--am-unit)); border-radius: var(--am-control-radius); background: var(--am-surface-soft); }
#astra-migration .am-service-action h3 { margin-bottom: calc(.5 * var(--am-unit)); }
#astra-migration .am-service-action p { max-width: 75ch; }
#astra-migration .am-service-action button.am-button { align-self: center; }
#astra-migration .am-service-note { margin-top: var(--am-unit); }
@container am-page (max-width: 1179px) {
    #astra-migration .am-stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #astra-migration .am-stage p { margin-left: 0; }
}
@container am-page (max-width: 959px) {
    #astra-migration .am-stage-grid, #astra-migration .am-deliverables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #astra-migration .am-project-heading { align-items: flex-start; flex-direction: column; }
    #astra-migration .am-project-heading > p { max-width: none; }
    #astra-migration .am-service-action { grid-template-columns: minmax(0, 1fr); }
    #astra-migration .am-service-action button.am-button { justify-self: start; }
}
@container am-page (max-width: 639px) {
    #astra-migration .am-offer .am-section { margin-top: calc(1.5 * var(--am-unit)); padding-top: calc(1.5 * var(--am-unit)); }
    #astra-migration .am-stage-grid, #astra-migration .am-deliverables { grid-template-columns: minmax(0, 1fr); }
    #astra-migration .am-stage { padding: var(--am-unit); }
    #astra-migration .am-stage p { margin-left: 0; }
    #astra-migration .am-deliverables article { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: calc(.4 * var(--am-unit)) calc(.75 * var(--am-unit)); }
    #astra-migration .am-deliverables article .am-line-icon { grid-row: span 2; margin: 0; }
    #astra-migration .am-deliverables article h3 { margin: 0; }
    #astra-migration .am-deliverables article p { grid-column: 2; }
    #astra-migration .am-service-action { padding: var(--am-unit); }
    #astra-migration .am-service-action button.am-button { width: 100%; }
}

/* Project boundaries. Native details work without JavaScript. */
#astra-migration .am-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(1.5 * var(--am-unit)); }
#astra-migration .am-scope-grid > article {
    padding: calc(2 * var(--am-unit));
    border: 1px solid var(--am-line);
    border-radius: var(--am-card-radius);
    background: var(--am-white);
}
#astra-migration .am-scope-grid h3 { margin-bottom: calc(1.25 * var(--am-unit)); }
#astra-migration .am-project-list { display: grid; gap: calc(.8 * var(--am-unit)); margin: 0; padding: 0; list-style: none; }
#astra-migration .am-project-list > li { position: relative; padding-left: calc(1.2 * var(--am-unit)); color: var(--am-muted); }
#astra-migration .am-project-list > li::before {
    content: "";
    display: block;
    position: absolute;
    width: calc(.3 * var(--am-unit));
    height: calc(.3 * var(--am-unit));
    top: .65em;
    left: 0;
    border-radius: 50%;
    background: var(--am-red);
}
#astra-migration .am-scope-details { margin-top: calc(2 * var(--am-unit)); border-top: 1px solid var(--am-line); }
#astra-migration :is(.am-scope-details, .am-expert-competencies) .am-faq-content { padding-right: 0; }
#astra-migration .am-faq-content p + p { margin-top: var(--am-unit); }
#astra-migration .am-resources-scroll { width: 100%; overflow-x: auto; margin: calc(1.25 * var(--am-unit)) 0; scrollbar-width: thin; }
#astra-migration .am-resources-scroll:focus-visible { outline: 2px solid var(--am-red); outline-offset: 2px; }
#astra-migration .am-resources {
    width: 100%;
    min-width: calc(34 * var(--am-unit));
    border-spacing: 0;
    border-collapse: collapse;
    font: inherit;
    color: var(--am-ink);
    text-align: left;
}
#astra-migration .am-resources caption { padding: 0 0 var(--am-unit); font: inherit; color: var(--am-muted); text-align: left; }
#astra-migration .am-resources :is(th, td) { padding: var(--am-unit); border: 0; border-bottom: 1px solid var(--am-line); font: inherit; text-align: left; vertical-align: top; }
#astra-migration .am-resources thead th { font-weight: 700; background: var(--am-surface-raised); }
#astra-migration .am-resources tbody th { font-weight: 700; }
#astra-migration .am-resources tr:nth-child(even) { background: var(--am-white); }
#astra-migration .am-scope-note { margin-top: calc(1.5 * var(--am-unit)); }

/* One team block, same geometry and accent as the offer. No invented quote. */
#astra-migration .am-expert-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: calc(2.5 * var(--am-unit)); align-items: start; }
#astra-migration .am-expert-person {
    overflow: hidden;
    border: 1px solid var(--am-line);
    border-radius: var(--am-card-radius);
    background: var(--am-white);
    box-shadow: var(--am-shadow);
}
#astra-migration .am-expert-person img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
#astra-migration .am-expert-person figcaption { display: block; margin: 0; padding: calc(1.6 * var(--am-unit)); font: inherit; color: inherit; }
#astra-migration .am-expert-person .am-eyebrow { margin-bottom: calc(.7 * var(--am-unit)); }
#astra-migration .am-expert-person h3 { margin: 0 0 calc(.7 * var(--am-unit)); text-wrap: initial; }
#astra-migration .am-expert-copy { padding: calc(.5 * var(--am-unit)) 0; }
#astra-migration .am-expert-copy > h3 { margin-bottom: calc(1.25 * var(--am-unit)); max-width: calc(36 * var(--am-unit)); }
#astra-migration .am-expert-copy > p + p { margin-top: var(--am-unit); }
#astra-migration .am-expert-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--am-unit);
    padding-top: calc(1.5 * var(--am-unit));
    margin-top: calc(1.75 * var(--am-unit));
    border-top: 1px solid var(--am-line);
}
#astra-migration .am-expert-stats > div + div { padding-left: var(--am-unit); border-left: 1px solid var(--am-line); }
#astra-migration .am-expert-stats .am-value { display: block; color: var(--am-red); white-space: nowrap; margin-bottom: calc(.6 * var(--am-unit)); font-variant-numeric: tabular-nums; }
#astra-migration .am-expert-stats p { color: var(--am-ink); font-weight: 700; margin-bottom: calc(.5 * var(--am-unit)); }
#astra-migration .am-expert-stats .am-caption { display: block; color: var(--am-muted); }
#astra-migration .am-expert-action { display: flex; flex-wrap: wrap; align-items: center; gap: var(--am-unit) calc(1.5 * var(--am-unit)); margin-top: calc(2 * var(--am-unit)); }
#astra-migration .am-expert-approach {
    margin-top: calc(2.5 * var(--am-unit));
    padding: calc(2 * var(--am-unit));
    border: 1px solid var(--am-line);
    border-left: calc(.2 * var(--am-unit)) solid var(--am-red);
    border-radius: var(--am-card-radius);
    background: var(--am-white);
}
#astra-migration .am-expert-approach .am-eyebrow { margin-bottom: calc(.7 * var(--am-unit)); }
#astra-migration .am-expert-flow { display: flex; flex-wrap: wrap; gap: calc(.75 * var(--am-unit)) 0; margin: calc(1.5 * var(--am-unit)) 0; }
#astra-migration .am-expert-flow li { display: inline-flex; align-items: center; color: var(--am-ink); font-weight: 700; }
#astra-migration .am-expert-flow li:not(:last-child)::after { content: "→"; display: inline-block; color: var(--am-red); padding: 0 calc(.75 * var(--am-unit)); }
#astra-migration .am-expert-competencies { margin-top: calc(2.5 * var(--am-unit)); scroll-margin-top: calc(8 * var(--am-unit)); }
#astra-migration .am-expert-competencies > h3 { margin-bottom: calc(1.5 * var(--am-unit)); }
#astra-migration .am-competency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 calc(2.5 * var(--am-unit)); align-items: start; border-top: 1px solid var(--am-line); }
#astra-migration .am-competency summary { min-height: calc(6.5 * var(--am-unit)); }
#astra-migration .am-tech-list { display: grid; gap: calc(1.5 * var(--am-unit)); }
#astra-migration .am-tech-list h3 { margin-bottom: calc(.5 * var(--am-unit)); }
#astra-migration .am-product-scope { display: block; margin: 0 0 calc(1.5 * var(--am-unit)); padding-left: var(--am-unit); border-left: calc(.2 * var(--am-unit)) solid var(--am-line); color: var(--am-muted); }
#astra-product .am-product-feature-note { margin-top: var(--am-unit); padding-top: var(--am-unit); border-top: 1px solid var(--am-line); }

@container am-page (max-width: 1179px) {
    #astra-migration .am-expert-layout { gap: calc(2 * var(--am-unit)); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    #astra-migration .am-expert-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(.8 * var(--am-unit)); }
    #astra-migration .am-expert-stats > div + div { padding-left: calc(.8 * var(--am-unit)); }
}
@container am-page (max-width: 959px) {
    #astra-migration .am-expert-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: calc(1.5 * var(--am-unit)); }
    #astra-migration .am-expert-stats { grid-template-columns: minmax(0, 1fr); gap: var(--am-unit); }
    #astra-migration .am-expert-stats > div { display: grid; grid-template-columns: calc(6 * var(--am-unit)) minmax(0, 1fr); gap: calc(.3 * var(--am-unit)) var(--am-unit); }
    #astra-migration .am-expert-stats > div + div { border-left: 0; padding-left: 0; }
    #astra-migration .am-expert-stats .am-value { grid-row: span 2; }
    #astra-migration .am-expert-stats p { margin-bottom: 0; }
    #astra-migration .am-expert-stats .am-caption { grid-column: 2; }
    #astra-migration .am-scope-grid > article { padding: calc(1.5 * var(--am-unit)); }
}
@container am-page (max-width: 639px) {
    #astra-migration .am-scope-grid, #astra-migration .am-expert-layout, #astra-migration .am-competency-grid { grid-template-columns: minmax(0, 1fr); }
    #astra-migration .am-scope-grid { gap: var(--am-unit); }
    #astra-migration .am-scope-grid > article { padding: calc(1.5 * var(--am-unit)); }
    #astra-migration .am-expert-layout { gap: calc(2 * var(--am-unit)); }
    #astra-migration .am-expert-person { max-width: calc(32 * var(--am-unit)); }
    #astra-migration .am-expert-copy { padding: 0; }
    #astra-migration .am-expert-stats { padding-top: calc(1.25 * var(--am-unit)); }
    #astra-migration .am-expert-stats > div { grid-template-columns: calc(5.5 * var(--am-unit)) minmax(0, 1fr); }
    #astra-migration .am-expert-action { align-items: stretch; }
    #astra-migration .am-expert-action .am-button { width: 100%; }
    #astra-migration .am-expert-approach { padding: calc(1.5 * var(--am-unit)); margin-top: calc(2 * var(--am-unit)); }
    #astra-migration .am-competency summary { min-height: 0; }
    #astra-migration .am-expert-flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
    #astra-migration .am-expert-flow li { display: block; }
    #astra-migration .am-expert-flow li:not(:last-child)::after { content: "↓"; display: block; padding: calc(.15 * var(--am-unit)) 0; }
    #astra-migration .am-product-scope { margin-bottom: calc(1.25 * var(--am-unit)); }
}
@media print {
    #astra-migration .am-resources-scroll { overflow: visible; }
    #astra-migration .am-expert-person { break-inside: avoid; }
}
