/* ---------- InDesign demo: Pimcore object -> catalogue page -> plugin panel ----------
   The frame follows the page theme through the colour tokens. The catalogue page is always a white sheet and the
   plugin panel is always dark, as in InDesign, so those two carry their own colours. */
/* The stage: a dark band with a yellow glow, whatever the theme of the page around it, so the example stands out.
   It sets the dark tokens itself; the screen of the laptop sets the light ones. */
.stage { color-scheme: dark; color: var(--fg); padding-bottom: 0; border-top: 0;
  --ink-0: #0B0B0C; --ink-1: #141414; --ink-2: #1B1B1E; --fg: #F4F3EF; --fg-2: rgba(244,243,239,0.72); --fg-3: rgba(244,243,239,0.5);
  --line: rgba(244,243,239,0.09); --line-2: rgba(244,243,239,0.18);
  background: radial-gradient(70% 60% at 50% 100% in oklab, rgba(254,168,0,0.42) 0%, rgba(254,168,0,0.2) 30%, rgba(254,168,0,0.06) 60%, rgba(254,168,0,0) 80%), #0B0B0C; }
.stage::after { content: none; }
.stage .head { margin-bottom: clamp(32px, 4vw, 56px); }
/* Four classes: the light theme's rule for accent words (bundle.css) is three classes and an element. */
.fd-light main .stage.sec .head .it { color: var(--yellow); }
@media (min-width: 1300px) { .fd-light main .stage.sec::before { border-inline-color: rgba(244,243,239,0.13); } }
/* Laptop: square-cornered lid around the example, and a base that is wider than the page column, so on most screens
   its ends run off the sides. The section cuts the base off at the bottom, as if the laptop stood on the next section. */
.lap { position: relative; margin-inline: -18px; }
.lap__screen { position: relative; padding: 30px 18px 18px; background: linear-gradient(180deg, #2A2A2D, #1A1A1C); border: 1px solid #3A3A3E; border-bottom: 0; box-shadow: 0 -30px 120px -30px rgba(254,168,0,0.35), inset 0 1px 0 rgba(255,255,255,0.14); }
.lap__screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 6px; height: 6px; margin-left: -3px; background: #0B0B0C; border-radius: 50%; box-shadow: 0 0 0 1px #3A3A3E; }
.lap__base { position: relative; height: clamp(34px, 4vw, 56px); margin-inline: clamp(-140px, -9vw, -40px); background: linear-gradient(180deg, #D9D9DB 0, #A9A9AD 5px, #6E6E73 6px, #3A3A3E 14px, #232326 100%); box-shadow: inset 0 1px 0 #F2F2F2; }
.lap__base i { position: absolute; top: 0; left: 50%; width: min(220px, 24%); height: 9px; transform: translateX(-50%); background: linear-gradient(180deg, #8C8C91, #5A5A5F); }
.demo { color-scheme: light; color: var(--fg); background: var(--ink-0); border: 0;
  --ink-0: #FFFFFF; --ink-1: #F4F4F1; --ink-2: #F7F7F4; --fg: #141414; --fg-2: rgba(20,20,20,0.74); --fg-3: rgba(20,20,20,0.66);
  --line: rgba(20,20,20,0.12); --line-2: rgba(20,20,20,0.24); }
.demo .btn--line { border-color: rgba(20,20,20,0.4); color: #141414; }
.demo .btn--line:hover:not(:disabled) { border-color: #141414; }
.demo__bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-xs); color: var(--fg-2); }
.demo__bar b { font-family: var(--f-display); font-size: 12px; text-transform: uppercase; color: var(--fg); }
.demo__steps { list-style: none; margin: 0; padding: 0; display: flex; border-bottom: 1px solid var(--line-2); }
.demo__steps li { flex: 1; padding: 16px 18px; font-size: var(--fs-sm); color: var(--fg-2); border-right: 1px solid var(--line); }
.demo__steps li:last-child { border-right: 0; }
.demo__steps li[aria-current] { background: var(--yellow); color: #141414; font-weight: 700; }
.demo__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 0.95fr); }
.demo__col { padding: 20px; min-width: 0; }
.demo__col + .demo__col { border-left: 1px solid var(--line-2); }
.demo__lab { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 16px; font-family: var(--f-display); font-size: 11px; text-transform: uppercase; }
.demo__lab span + span { color: var(--fg-3); }
.demo [data-act].is-next { outline: 3px solid var(--yellow); outline-offset: 3px; }
.demo__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: var(--fs-xs); color: var(--fg-2); }
.demo__foot button { background: none; border: 0; padding: 0; font: inherit; color: var(--fg); text-decoration: underline; cursor: pointer; }

.pim { display: grid; gap: 12px; }
.pim label, .pim__f { display: grid; gap: 5px; font-size: var(--fs-xs); color: var(--fg-2); }
.pim select, .pim .val { font: inherit; font-size: var(--fs-sm); line-height: 1.45; color: var(--fg); padding: 9px 11px; border: 1px solid var(--line-2); background: var(--ink-1); min-height: 40px; transition: background .3s, border-color .3s; }
.pim select { width: 100%; }
.pim .val.changed { background: var(--yellow); border-color: var(--yellow); color: #141414; }
.pim__asset { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); }
.pim__thumb { width: 64px; height: 48px; object-fit: cover; background: #fff; border: 1px solid var(--line-2); flex: none; }
.pim__thumb--2, .pim__asset.v2 .pim__thumb--1 { display: none; }
.pim__asset.v2 .pim__thumb--2 { display: block; }
.pim .btn { --h: 44px; justify-self: start; padding: 0 14px; font-size: 13px; margin-top: 4px; }
.pim .btn:disabled { opacity: 0.4; cursor: default; }

.demo__page { background: var(--ink-1); display: grid; place-items: center; }
.sheet { width: 100%; max-width: 440px; aspect-ratio: 210 / 260; background: #fff; color: #141414; border: 1px solid rgba(20,20,20,0.14); padding: 7% 8%; display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 12px; }
.sheet__folio { display: flex; justify-content: space-between; font-size: 10px; color: rgba(20,20,20,0.66); text-transform: uppercase; letter-spacing: 0.06em; }
.sheet__img { position: relative; overflow: hidden; min-height: 0; display: grid; place-items: center; border: 1px dashed rgba(20,20,20,0.5); }
.sheet__img.filled { border-style: solid; border-color: rgba(20,20,20,0.14); }
.sheet__img.filled .ph { display: none; }
.sheet__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease-out); }
.sheet__img.filled:not(.v2) .sheet__ph--1, .sheet__img.filled.v2 .sheet__ph--2 { opacity: 1; }
.ph { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: rgba(20,20,20,0.66); background: repeating-linear-gradient(90deg, #F2F2F2 0 6px, transparent 6px 8px); }
.sheet__title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.04em; font-size: clamp(16px, 1.8vw, 24px); line-height: 1; }
.sheet__desc { font-size: 12px; line-height: 1.5; min-height: 3em; }
.sheet__price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #141414; padding-top: 8px; font-size: 12px; }
.sheet__price b { font-family: var(--f-display); font-size: 20px; letter-spacing: -0.04em; }
.fill { transition: background .6s var(--ease-out); }
.fill.flash { background: var(--yellow); }
.sheet__img.flash::after { content: ""; position: absolute; inset: 0; background: rgba(254,168,0,0.55); }

.demo__panel { background: #232323; color: #fff; }
.demo__panel .demo__lab span + span { color: #BBB; }
.idp { background: #2C2C2C; color: #E8E8E8; font-size: 12px; border: 1px solid #3A3A3A; }
.idp__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #3A3A3A; }
.idp__tabs span { padding: 9px 0; text-align: center; color: #A0A0A0; }
.idp__tabs span.on { color: #fff; box-shadow: inset 0 -2px 0 var(--yellow); }
.idp__body { padding: 10px; display: grid; gap: 8px; }
.idp__upd { display: grid; gap: 8px; }
.idp__row { padding: 9px; background: #333; border: 1px solid #444; display: grid; gap: 3px; }
.idp__row b { font-size: 13px; }
.idp__row small { color: #9A9A9A; font-size: 11px; }
.idp__old { color: #8A8A8A; text-decoration: line-through; }
.idp__new { color: #fff; }
.idp__badge { justify-self: start; font-size: 10px; font-weight: 700; padding: 1px 6px; background: var(--yellow); color: #141414; }
.idp button { width: 100%; min-height: 38px; border: 1px solid #5A5A5A; background: #3A3A3A; color: #fff; font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; cursor: pointer; transition: background .12s, color .12s; }
.idp button:hover:not(:disabled) { background: var(--yellow); color: #141414; border-color: var(--yellow); }
.idp button.primary { background: var(--yellow); color: #141414; border-color: var(--yellow); }
.idp button.primary:hover:not(:disabled) { background: #fff; border-color: #fff; }
.idp button:disabled { opacity: 0.35; cursor: default; }
.idp__msg { min-height: 2.8em; color: #CFCFCF; font-size: 11px; line-height: 1.45; }

@media (max-width: 960px) {
  /* Stacked columns make the example tall: the lid thins to a frame and the base goes. */
  .lap { margin-inline: 0; }
  .lap__screen { padding: 8px; border-bottom: 1px solid #3A3A3E; }
  .lap__screen::before, .lap__base { display: none; }
  .stage { padding-bottom: var(--sp-sec); }
  .demo__grid { grid-template-columns: minmax(0, 1fr); }
  .demo__col + .demo__col { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 600px) { .demo__steps li { padding: 12px 8px; font-size: 12px; } }
