/* demos/demo-frame.css
   ⚠️ NEW (Portfolio Demos)

   WHY THIS FILE EXISTS
   The four concept demos under /demos/ are deliberately four *different*
   websites, not one template themed four ways: each has its own type scale,
   layout system, palette and section rhythm, and none of them imports
   another's stylesheet. The only thing they legitimately share is the Apex
   attribution chrome — the strip that tells a visitor "this is a concept
   demo of a fictional business, and Apex built it" — because that message
   must read identically on all four and must never drift.

   So this file styles the CHROME AROUND a demo, never the demo itself. It
   deliberately contains no typography scale, no layout grid, no component
   any demo page composes with. If a rule here would change how the fictional
   business's own site looks, it belongs in that site's own stylesheet.

   Each demo supplies the five custom properties below on :root so the strip
   sits inside its host palette instead of fighting it.

   No inline <style>/<script> anywhere under /demos/ (D-003), so that route's
   CSP needs no hashes and these files can be edited freely.
*/

.apex-demo-strip {
  /* Fallbacks are deliberate: a demo that forgets to set its palette still
     renders a legible strip rather than transparent-on-transparent. */
  background: var(--apex-strip-bg, #101012);
  color: var(--apex-strip-ink-dim, #9b9ba3);
  border-bottom: 1px solid var(--apex-strip-line, rgba(255, 255, 255, 0.1));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 9px clamp(16px, 4vw, 40px);
}

.apex-demo-strip p {
  margin: 0;
  max-width: 76ch;
}

.apex-demo-strip strong {
  color: var(--apex-strip-ink, #f2f2f4);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

/* The visual is fine print by design, but the hit box is not allowed to
   be: this is the only route back to Apex from inside a demo, and it is
   tapped on a phone. Vertical padding takes it to ~31px without making
   the strip meaningfully taller. */
.apex-demo-strip a {
  color: var(--apex-strip-ink, #f2f2f4);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--apex-strip-accent, #3d5cff);
  padding: 6px 0 1px;
}

.apex-demo-strip a:hover {
  border-bottom-color: currentColor;
}

/* Focus rings are declared here rather than left to the browser default
   because several demos paint the strip on a near-black ground, where the
   default ring is close to invisible. */
.apex-demo-strip a:focus-visible {
  outline: 2px solid var(--apex-strip-accent, #3d5cff);
  outline-offset: 3px;
  border-radius: 2px;
}

/* The same disclosure, repeated in each demo's own footer, so it survives
   scrolling past the strip and is present in the part of the page people
   actually screenshot. */
.apex-demo-footnote {
  font-size: 12.5px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .apex-demo-strip {
    font-size: 11.5px;
    padding: 8px 16px;
  }
}
