/* Companion Experiences story (companion-mode.html). The text is a verbatim copy of the Microsoft
   Garage page; only the presentation is the site's. Uses the site tokens from style.css, so light and dark
   follow the rest of the site. */
.companion-page .ua-mag-header h1 { font-size: 2.1em; line-height: 1.2; margin-bottom: 10px; max-width: 24em; }
.companion-page .ua-mag-header .ua-subtitle { font-size: 1.25em; margin: 0; }

.cx-hero { margin: 1.5em 0; }
.cx-hero img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.cx-quote {
    margin: 0 0 40px; padding: 20px 28px;
    background: var(--bg-card); border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm);
}
.cx-quote p { margin: 0 0 10px; font-size: 1.3em; line-height: 1.5; font-style: italic; }
.cx-quote footer { color: var(--text-light); font-size: 0.95em; }

.cx-section { max-width: 44em; margin: 0 0 44px; }
.cx-section h2 { font-size: 1.5em; line-height: 1.3; margin: 0 0 16px; }
.cx-section p { line-height: 1.75; margin: 0 0 1em; }
.cx-section a { color: var(--primary); }
.cx-section a:hover { color: var(--primary-hover); }

.cx-features {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
    margin: 28px 0 0; max-width: 56em;
}
.cx-features figure, .cx-wide { margin: 0; }
.cx-features img, .cx-wide img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.cx-features figcaption, .cx-wide figcaption { margin-top: 8px; font-size: 0.92em; color: var(--text-light); line-height: 1.5; }
.cx-wide { margin: 24px 0; }

#video .pf-video-embed { max-width: 100%; border-radius: var(--radius); overflow: hidden; }

.cx-source { max-width: 44em; margin: 8px 0 40px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.9em; color: var(--text-light); line-height: 1.6; }
.cx-source a { color: var(--primary); }

@media (max-width: 640px) {
    .companion-page .ua-mag-header h1 { font-size: 1.7em; }
    .cx-features { grid-template-columns: 1fr; }
    .cx-quote { padding: 16px 18px; }
}

/* The "Video" heading is part of the original text; kept for screen readers, hidden because the video now sits under the title. */
.cx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#video { max-width: none; margin: 0 0 36px; }
