/* ============================================================
   SWIFT WEB DESIGN — the demo notice on /examples/* (2.16.4)
   A bar fixed to the bottom of the screen and a closing note above each demo's footer.
   Only the four demo pages load this file. Everything is prefixed swd- so it never
   collides with a demo's own styles.
   ============================================================ */
@font-face{font-family:'SWD Vietnam';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-n400.woff2) format('woff2')}
@font-face{font-family:'SWD Vietnam';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-n600.woff2) format('woff2')}
@font-face{font-family:'SWD Vietnam';font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/be-vietnam-pro-n800.woff2) format('woff2')}

:root { --swd-onyx: #0B0B0B; --swd-paper: #ECEAE0; --swd-red: #D43A1A; --swd-red-bright: #E86A45; }
body { padding-bottom: 64px; }

/* the bar */
.swd-demo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: flex; align-items: center; gap: 20px; min-height: 64px; padding: 10px max(20px, calc((100vw - 1200px) / 2));
  background: var(--swd-onyx); color: var(--swd-paper); border-top: 1px solid rgba(236,234,224,.14);
  font: 600 14px/1.4 'SWD Vietnam', system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: 0; text-transform: none;
  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
}
.swd-demo * { box-sizing: border-box; }
.swd-demo a { text-decoration: none; }
.swd-demo-logo { flex-shrink: 0; font-weight: 800; font-size: 22px; letter-spacing: -.04em; color: var(--swd-paper); }
.swd-demo-logo span { color: var(--swd-red); }
.swd-demo-txt { margin: 0; flex: 1; min-width: 0; color: rgba(236,234,224,.72); font-weight: 600; }
.swd-demo-txt strong { color: var(--swd-paper); font-weight: 800; }
.swd-demo-more { flex-shrink: 0; color: var(--swd-paper); border-bottom: 1px solid rgba(236,234,224,.35); padding-bottom: 1px; }
.swd-demo-more:hover { border-color: var(--swd-paper); }
.swd-demo-cta, .swd-note-cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; background: var(--swd-red); color: #fff;
  font-weight: 800; font-size: 14px; padding: 11px 18px; border-radius: 999px; transition: background .2s;
}
.swd-demo-cta:hover, .swd-note-cta:hover { background: #B8301A; }
.swd-demo-cta svg, .swd-note-cta svg { width: 14px; height: 14px; }
.swd-demo a:focus-visible, .swd-note a:focus-visible { outline: 2px solid var(--swd-red-bright); outline-offset: 3px; }

/* the closing note */
.swd-note {
  background: var(--swd-onyx); color: var(--swd-paper); padding: 88px 24px;
  font: 400 17px/1.65 'SWD Vietnam', system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: 0; text-transform: none; text-align: left;
  scroll-margin-top: 80px;
}
.swd-note * { box-sizing: border-box; }
.swd-note-in { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px 72px; align-items: start; }
.swd-note-by { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-weight: 600; font-size: 14px; color: rgba(236,234,224,.6); }
.swd-note-by b { font-weight: 800; font-size: 24px; letter-spacing: -.04em; color: var(--swd-paper); }
.swd-note-by b span { color: var(--swd-red); }
.swd-note h2 { margin: 0 0 20px; font: 800 clamp(30px, 4vw, 46px)/1.02 'SWD Vietnam', system-ui, sans-serif; letter-spacing: -.035em; color: var(--swd-paper); text-transform: none; }
.swd-note-lede { margin: 0 0 32px; color: rgba(236,234,224,.74); max-width: 520px; }
.swd-note-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.swd-note-cta { font-size: 15px; padding: 14px 22px; }
.swd-note-link { color: var(--swd-paper); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(236,234,224,.35); padding-bottom: 1px; }
.swd-note-link:hover { border-color: var(--swd-paper); }
.swd-note-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(236,234,224,.14); }
.swd-note-list li { padding: 22px 0; border-bottom: 1px solid rgba(236,234,224,.14); color: rgba(236,234,224,.7); font-size: 15.5px; }
.swd-note-list b { display: block; margin-bottom: 4px; color: var(--swd-paper); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }

@media (max-width: 860px) {
  .swd-note { padding: 64px 20px; }
  .swd-note-in { grid-template-columns: 1fr; gap: 36px; }
  .swd-demo-more, .swd-demo-txt span { display: none; }
}
@media (max-width: 520px) {
  body { padding-bottom: 60px; }
  .swd-demo { gap: 12px; min-height: 60px; padding: 8px 14px; font-size: 13px; }
  .swd-demo-logo { font-size: 19px; }
  .swd-demo-cta { padding: 10px 14px; font-size: 13px; }
}
