/* Match Maker Arm Station's compact hero without changing its page or shared styles. */
.mm-metal-station-hero,
.mm-metal-station-hero *,
.mm-metal-station-hero *::before,
.mm-metal-station-hero *::after { box-sizing: border-box; }
.mm-metal-station-hero .hr-page { width: 100%; max-width: 1328px; }
.mm-metal-station-hero .hr-body-lg { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; }
.mm-metal-station-hero .mm-station-hero-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title actions" "subtitle price"; align-items: end; gap: var(--space-4) var(--space-6); text-align: left; }
.mm-metal-station-hero .hr-display-xl { grid-area: title; font-size: clamp(2.5rem, 6.1vw, 6rem); line-height: 1.05; white-space: nowrap; text-wrap: nowrap; }
.mm-metal-station-hero .mm-station-hero-line { grid-area: subtitle; max-width: none; margin: 0; }
.mm-metal-station-hero .mm-station-price-line { grid-area: price; margin: 0; text-align: right; color: var(--ink-2); white-space: nowrap; }
.mm-metal-station-hero .mm-hero-cta { grid-area: actions; margin: 0; text-align: right; }
.mm-metal-station-hero .mm-station-cta-row { justify-content: flex-end; flex-wrap: nowrap; }
@media (min-width: 1488px) {
  .mm-metal-station-hero .hr-media { margin-inline: calc(50% - 640px); }
  .mm-metal-station-hero .hr-media.is-bleed { margin-inline: 0; }
}
@media (max-width: 800px) {
  .mm-metal-station-hero .mm-station-hero-head { grid-template-columns: 1fr; grid-template-areas: "title" "subtitle" "actions" "price"; text-align: center; }
  .mm-metal-station-hero .hr-display-xl { max-width: none; font-size: clamp(1.75rem, 8.5vw, 4.5rem); }
  .mm-metal-station-hero .mm-hero-cta { margin-top: var(--space-2); }
  .mm-metal-station-hero .mm-station-cta-row { justify-content: center; }
  .mm-metal-station-hero .mm-station-price-line { text-align: center; }
}

/* Ask: Maker Arm Station's world action model card. One light card holds the Duo and its caption; the request
   sits top left of the footage, clear of the arms, bottle and tray. */
.mm-metal-ask .hr-story-card { max-width: none; margin: 0; background: var(--ground-raised); }
.mm-metal-ask-duo { margin: var(--space-3) var(--space-3) 0; }
.mm-metal-ask-duo .hr-media { border-radius: var(--radius-sm); }
.mm-metal-ask .hr-story-copy { min-height: 0; text-align: left; }
.mm-metal-ask .hr-story-copy > p { margin-top: var(--space-2); }
.mm-metal-ask-duo > .hr-duo + .hr-prompt { align-items: flex-start; text-align: left; pointer-events: none; }
.mm-metal-ask-duo .hr-prompt-ask { font-size: 20px; padding: var(--space-3) var(--space-4); }
@media (min-width: 721px) {
  .mm-metal-ask-duo > .hr-duo + .hr-prompt { top: var(--space-4); left: var(--space-4); bottom: auto; transform: none; width: auto; max-width: calc(78% - 2 * var(--space-4)); }
}
@media (max-width: 720px) {
  .mm-metal-ask-duo { display: flex; flex-direction: column; }
  .mm-metal-ask-duo > .hr-duo + .hr-prompt { order: -1; margin: 0 0 var(--space-3); }
  .mm-metal-ask-duo .hr-prompt-ask { font-size: 18px; }
  .mm-metal-ask .hr-story-copy { padding: var(--space-5); }
}

/* Payload: the whole arm, shoulder to gripper, in a 4:3 frame. */
.mm-metal-payload-photo { max-width: calc(var(--container) * 2 / 3); margin-inline: auto; }
.mm-metal-payload-photo .hr-media { aspect-ratio: 4 / 3; }

/* Drive it by hand: Maker Arm Station's split, copy beside the teleoperation clip. */
.mm-metal-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: clamp(var(--space-5), 4vw, var(--space-8)); align-items: center; }
.mm-metal-split > * { min-width: 0; }
.mm-metal-split video { object-fit: contain; }
.mm-metal-copy > .hr-eyebrow { margin-bottom: var(--space-4); }
.mm-metal-copy > .hr-body-lg { margin-top: var(--space-5); color: var(--ink-2); max-width: 36ch; }
@media (max-width: 800px) {
  .mm-metal-split { grid-template-columns: 1fr; }
  .mm-metal-copy > .hr-body-lg { max-width: 48ch; }
}

/* Simulation: the Maker Arm page's row, a smaller viewer with its copy beside it. */
.mm-metal-sim-row { grid-template-columns: minmax(0, 1fr) var(--measure-narrow); }
.mm-metal-sim-row > * { min-width: 0; }
.mm-metal-sim-copy .hr-eyebrow { margin-bottom: var(--space-4); }
@media (max-width: 960px) {
  .mm-metal-sim-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .mm-metal-sim-copy { max-width: var(--measure); }
}

/* Simulation: a first-use cue over the viewer, a hand and what dragging does. sim-viewer.js shows
   it for two visible seconds once the model is ready, and drops it on the first press. */
.mm-metal-sim-intro { left: 50%; top: 50%; transform: translate(-50%, -50%); height: auto; width: max-content; max-width: calc(100% - var(--space-6)); box-sizing: border-box; gap: var(--space-3); padding: var(--space-3) var(--space-5) var(--space-3) var(--space-4); white-space: normal; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--duration-fast) var(--ease-out); }
.is-drag-intro .mm-metal-sim-intro { opacity: 1; }
.mm-metal-sim-intro svg { flex: none; width: var(--space-5); height: var(--space-5); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.is-drag-intro .mm-metal-sim-intro svg { animation: mm-metal-drag-cue 0.9s ease-in-out infinite alternate; }
@keyframes mm-metal-drag-cue { from { transform: translateX(calc(var(--space-1) * -1)); } to { transform: translateX(var(--space-1)); } }
@media (prefers-reduced-motion: reduce) {
  .mm-metal-sim-intro { transition: none; }
  .is-drag-intro .mm-metal-sim-intro svg { animation: none; }
}

/* MakerMods Lab on a dark band: the capture is in the app's dark theme, so its frame takes a
   hairline to read as the app window, and the command sits on the raised ground. */
.mm-metal-lab .mm-arm-lab-demo .hr-media { box-sizing: border-box; border: 1px solid var(--line); background: var(--ground-sunken); }
.mm-metal-lab .mm-arm-install-command { background: var(--ground-raised); border: 1px solid var(--line); }

/* What's in the box: the open box is a portrait photo, shown whole at a narrow width. */
.mm-metal-box-photo { max-width: var(--measure-narrow); }
.mm-metal-box-photo .hr-media { aspect-ratio: 3 / 4; }

/* Python SDK: the Maker Arm page's reversed row, the copy on the left and the code card beside it. */
.mm-metal-sdk-row { grid-template-columns: var(--measure-narrow) minmax(0, 1fr); }
.mm-metal-sdk-row > * { min-width: 0; }
.mm-metal-sdk-row > .hr-code { grid-column: 2; grid-row: 1; }
.mm-metal-sdk-row > .mm-metal-sdk-copy { grid-column: 1; grid-row: 1; }
.mm-metal-sdk-copy .hr-eyebrow { margin-bottom: var(--space-4); }
.mm-metal-icon { display: inline-block; width: 1.2em; height: 1.2em; margin-right: var(--space-2); flex-shrink: 0; vertical-align: middle; }
@media (max-width: 960px) {
  .mm-metal-sdk-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .mm-metal-sdk-row > .hr-code, .mm-metal-sdk-row > .mm-metal-sdk-copy { grid-column: auto; grid-row: auto; }
  .mm-metal-sdk-copy { max-width: var(--measure); }
}
