/* Demo site styles. Not part of the plugin. */
:root {
  --bg: #ffffff;
  --ink: #101418;
  --muted: #667085;
  --line: #e4e7ec;
  --soft: #f7f8fa;
  --accent: #2f6df6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand .mark {
  width: 24px; height: 24px; border-radius: 7px; background: var(--accent); position: relative; flex: none;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 5px 11px; background: #fff; border-radius: 2px;
}
.site-header nav { display: flex; gap: 18px; font-size: 14px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 90px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
}

article { max-width: 720px; }

article h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

article .lede { font-size: 19px; color: var(--muted); margin: 0 0 26px; }

article h2 {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 46px 0 12px;
  scroll-margin-top: 90px;
}

article h3 {
  font-size: 19px;
  margin: 28px 0 8px;
  scroll-margin-top: 90px;
}

article p { margin: 0 0 16px; }

article ul { margin: 0 0 18px; padding-left: 22px; }
article li { margin-bottom: 6px; }

article figure { margin: 26px 0; }
article figure img { width: 100%; border-radius: 12px; display: block; }
article figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

article blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  border-radius: 0 10px 10px 0;
  color: #344054;
}

article code {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 14px;
}

aside.side { position: relative; align-self: stretch; }
.layout > article { align-self: start; }

.builder {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 90px;
}

.builder .panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--soft);
}

.builder h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.builder p.sub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field select, .field input[type="text"] {
  width: 100%; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 14px;
}
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

pre.snippet {
  background: #0e1116;
  color: #cfd6de;
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 24px 60px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .inner {
  max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 26px; padding-top: 24px; }
  aside.side { order: -1; }
}
