@font-face {
    font-family: AlbertaSans;
    src: url('/css/fonts/AlbertaSans/AlbertSans-Regular.ttf') format('truetype');
    font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body.embed-demo { margin: 0; color: var(--files-text); background: #fff; font: 16px/1.6 AlbertaSans, Arial, sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, pre:focus-visible { outline: 3px solid var(--files-btn-blue); outline-offset: 5px; }
.demo-header, main, .demo-footer { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.demo-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--files-gray-2); }
.demo-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; line-height: 1.3; }
.demo-brand img { padding: 6px; box-sizing: content-box; background: var(--files-outline-red); border-radius: 12px; }
.demo-brand small { display: block; margin-top: 4px; color: var(--files-gray-6); font-size: 12px; font-weight: 400; }
.demo-header nav { display: flex; gap: 28px; flex-wrap: wrap; }
.demo-header nav a { text-decoration: none; font-size: 14px; }
.demo-header nav a:hover, .demo-footer a:hover { color: var(--files-btn-red-h); }
.demo-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding-block: 64px 40px; }
.demo-eyebrow { margin: 0 0 12px; color: var(--files-btn-red-h); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.025em; }
.demo-lead { color: var(--files-gray-6); font-size: 18px; margin: 24px 0; max-width: 540px; }
.demo-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 13px 22px; border-radius: 10px; background: var(--files-btn-red); color: #fff; text-decoration: none; font-weight: 700; }
.demo-button:hover { background: var(--files-btn-red-h); }
.intro-image { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--files-gray-1); }
.intro-image img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.intro-image span { position: absolute; bottom: 16px; left: 16px; right: 16px; width: fit-content; padding: 7px 12px; border-radius: 8px; background: #fff; color: var(--files-grey); font-size: 12px; }
.demo-note { border-left: 3px solid var(--files-btn-blue); padding: 14px 20px; background: var(--files-info-bg); color: var(--files-info-text); font-size: 14px; }
.demo-note a { display: inline-block; margin-left: 6px; font-weight: 700; }
.intro-code { margin-top: 12px; font-size: 13px; color: var(--files-gray-6); }
.demo-section { padding-block: 56px; border-bottom: 1px solid var(--files-gray-2); }
.section-heading { margin-bottom: 26px; max-width: 760px; }
.section-heading > p:last-child { margin: 0; color: var(--files-gray-6); }
.embed-example { min-width: 0; }
.embed-example + .embed-example { margin-top: 32px; }
.embed-example-label { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--files-gray-1); border-radius: 12px 12px 0 0; font-size: 13px; }
.embed-example-label span { font-weight: 700; }
.embed-example-label a { white-space: nowrap; color: var(--files-gray-6); }
.embed-live { position: relative; min-height: 80px; width: 100%; }
.embed-live > iframe { display: block; max-width: 100%; }
.embed-loading { padding: 24px; margin: 0; color: var(--files-gray-6); background: var(--files-gray-1); font-size: 14px; }
.embed-live[data-loaded] > .embed-loading { display: none; }
.embed-code { background: var(--files-gray-1); margin-top: 8px; border-radius: 8px; overflow: hidden; }
summary { cursor: pointer; }
.embed-code > summary, .embed-alternative > summary { padding: 12px 16px; font-size: 13px; }
.embed-code > summary span { margin-left: 8px; color: var(--files-gray-6); }
.embed-code-toolbar { display: flex; align-items: center; gap: 12px; padding: 4px 16px; font-size: 12px; }
.embed-code-toolbar button { padding: 6px 12px; background: #fff; border: 1px solid var(--files-btn-gray-border); border-radius: 6px; font-size: 12px; }
.embed-code pre { margin: 8px 16px 16px; padding: 14px; overflow: auto; background: #fff; color: var(--files-grey); border: 1px solid var(--files-gray-2); border-radius: 6px; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.embed-alternative { margin-top: 10px; border: 1px solid var(--files-gray-2); border-radius: 8px; }
.embed-alternative[open] { padding-bottom: 8px; }
.more-layouts { margin-top: 24px; border: 1px solid var(--files-gray-2); border-radius: 12px; }
.more-layouts > summary { padding: 16px 20px; font-size: 14px; font-weight: 700; }
.more-layouts[open] { padding-bottom: 20px; }
.more-layouts > .embed-example { margin: 24px 20px 0; }
.layout-intro { margin: 0 20px; color: var(--files-gray-6); font-size: 14px; }
.slideshow-example .embed-live { height: 440px; }
.slideshow-example .embed-live > iframe { height: 100%; }
.media-columns { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
.video-example .embed-live { min-height: 320px; }
.audio-column { background: var(--files-info-bg); border-radius: 12px; overflow: hidden; }
.audio-art { padding: 28px 24px 12px; }
.audio-art img { opacity: .6; }
.audio-art p { font-size: 25px; line-height: 1.25; max-width: 260px; margin: 10px 0; }
.audio-example .embed-live { padding: 12px 18px; }
.example-caption { font-size: 12px; color: var(--files-gray-6); padding: 0 18px 16px; }
.document-example .embed-live { background: var(--files-gray-1); }
.demo-next { margin-block: 48px; padding: 32px; background: var(--files-info-bg); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.demo-next h2 { font-size: 28px; }
.demo-next p { color: var(--files-gray-6); margin: 0; max-width: 640px; }
.demo-next .demo-button { flex-shrink: 0; font-size: 14px; }
.demo-footer { border-top: 1px solid var(--files-gray-2); padding-block: 24px 40px; display: flex; justify-content: space-between; gap: 24px; font-size: 12px; color: var(--files-gray-6); }
@media (max-width: 760px) {
    .demo-header, main, .demo-footer { width: calc(100% - 32px); }
    .demo-header { align-items: flex-start; flex-direction: column; gap: 18px; }
    .demo-header nav { gap: 12px 22px; }
    .demo-intro { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
    .intro-image img { aspect-ratio: 16 / 10; }
    .demo-lead { font-size: 16px; }
    .demo-section { padding-block: 36px; }
    .media-columns { grid-template-columns: 1fr; gap: 24px; }
    .video-example .embed-live { min-height: 200px; }
    .slideshow-example .embed-live { height: 320px; }
    .more-layouts > .embed-example { margin-inline: 10px; }
    .embed-example-label { flex-wrap: wrap; gap: 4px 12px; }
    .demo-next, .demo-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
    .demo-next { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
