/* Hollybrook shared demonstration — CW-WEB-8 slice B.
   Palette: --cw-violet #300950, --cw-purple #7540F5, --cw-persimmon #ED6942,
   --cw-bone #F7F4ED, --violet-tint #B9A9F2 (site stylesheet loaded first). */

.demo-body { margin: 0; background: var(--cw-bone); }
.demo-inner { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.demo-hero {
  /* CW-DESIGN-FOUNDATIONS-1: shared restrained demo surface token. */
  background: var(--grad-surface-demo);
  color: var(--cw-bone);
  padding: 84px 0 72px;
}
.demo-eyebrow {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--violet-tint);
}
.demo-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05; letter-spacing: -0.015em;
  max-width: 16ch;
}
.demo-lede { font-size: clamp(16px, 1.7vw, 20px); line-height: 1.6; max-width: 58ch; opacity: .92; }
.demo-honesty {
  display: inline-block; margin-top: 22px; padding: 8px 16px;
  border: 1px solid rgba(185,169,242,.5); border-radius: 999px;
  font-size: 13.5px; opacity: .9;
}

.demo-section { padding: 72px 0; }
.demo-section-dark { background: var(--cw-violet); color: var(--cw-bone); }
.demo-section-head { max-width: 720px; margin-bottom: 36px; }
.demo-section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 10px; line-height: 1.15; }
.demo-section-head p { margin: 0; font-size: 16.5px; line-height: 1.6; opacity: .85; }

/* filters */
.demo-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.demo-chip {
  border: 1.5px solid var(--violet-tint); background: transparent;
  color: var(--cw-violet); border-radius: 999px; padding: 7px 16px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.demo-chip.on { background: var(--cw-violet); color: var(--cw-bone); border-color: var(--cw-violet); }
.demo-chip:focus-visible { outline: 2px solid var(--cw-persimmon); outline-offset: 2px; }

/* organisation cards */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.demo-card {
  text-align: left; cursor: pointer;
  /* CW-DESIGN-FOUNDATIONS-1: shared quiet-card tokens (restrained ops). */
  background: #fff; border: 1px solid var(--line-card); border-radius: var(--radius);
  padding: 22px 22px 20px; border-top: 4px solid var(--violet-tint);
  font: inherit; color: var(--cw-violet);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.demo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1-hover); }
.demo-card:focus-visible { outline: 3px solid var(--cw-persimmon); outline-offset: 2px; }
.demo-card.kind-gateway { border-top-color: var(--cw-persimmon); }
.demo-card-kind {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cw-purple); margin-bottom: 10px;
}
.demo-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; }
.demo-card p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: rgba(48,9,80,.82); }
.demo-card-loc { font-size: 13px !important; color: rgba(48,9,80,.6) !important; }
.demo-card-cap { font-size: 13px !important; color: var(--cw-purple) !important; font-weight: 600; }

/* accessibility */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 3D network graph — CW-WEB-10C-2A */
.net-toolbar {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.net-search { position: relative; min-width: 240px; flex: 1 1 300px; max-width: 460px; }
.net-search-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--violet-tint); margin-bottom: 8px;
}
#net-q {
  width: 100%; box-sizing: border-box;
  background: rgba(247,244,237,.08); color: var(--cw-bone);
  border: 1.5px solid rgba(185,169,242,.6); border-radius: 10px;
  padding: 10px 14px; font: inherit; font-size: 15px;
}
#net-q::placeholder { color: rgba(247,244,237,.5); }
#net-q:focus-visible { outline: 3px solid var(--cw-persimmon); outline-offset: 2px; }
.net-q-results {
  position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none;
  background: var(--cw-bone); color: var(--cw-violet);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(21,3,38,.45);
  max-height: 260px; overflow-y: auto;
}
.net-q-results li { margin: 0; }
.net-q-results button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 9px 12px; border-radius: 7px; font: inherit; font-size: 14.5px;
  color: var(--cw-violet); cursor: pointer;
}
.net-q-results button:hover, .net-q-results button:focus-visible {
  background: rgba(117,64,245,.12); outline: none;
}
.net-q-results .qk {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cw-purple); margin-left: 8px;
}
.net-actions { display: flex; gap: 10px; }
.net-btn { color: var(--cw-bone); border-color: rgba(185,169,242,.7); }
.net-btn.on { background: var(--cw-persimmon); border-color: var(--cw-persimmon); }
.net-btn:focus-visible { outline: 2px solid var(--cw-persimmon); outline-offset: 2px; }

/* CW-WEB-VISUAL-R1 · graph surface: legible violet-gradient field — a
   vibrant-purple luminosity at the crown fading into deep violet, so bone
   labels and edges stay distinguishable. Not a flat bright fill. */
.net-stage {
  position: relative; height: min(62vh, 560px); min-height: 380px;
  border-radius: 16px; overflow: hidden;
  /* CW-DESIGN-FOUNDATIONS-1: shared graph-surface gradient + shadow. */
  background: var(--grad-graph);
  border: 1px solid rgba(185,169,242,.35);
  box-shadow: var(--light-top-quiet), var(--shadow-graph);
}
#net-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#net-canvas:active { cursor: grabbing; }
#net-canvas:focus-visible { outline: 3px solid var(--cw-persimmon); outline-offset: -3px; }
.net-stage.no-webgl #net-canvas { display: none; }

/* Expanded full-viewport presentation mode — same canvas, same state. */
.net-stage.net-x {
  position: fixed; inset: 0; z-index: 70;
  height: auto; min-height: 0; border-radius: 0; border: 0;
}
.net-x-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  border: 1.5px solid rgba(185,169,242,.75); background: rgba(48,9,80,.78);
  color: var(--cw-bone); border-radius: 999px; padding: 9px 18px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.net-x-close:hover { background: rgba(48,9,80,.95); }
.net-x-close:focus-visible { outline: 3px solid var(--cw-persimmon); outline-offset: 2px; }
body.net-lock { overflow: hidden; }

.net-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  list-style: none; margin: 14px 0 0; padding: 0;
}
.net-legend li { display: flex; align-items: center; gap: 7px; font-size: 13px; opacity: .9; }
.net-legend .sw {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(247,244,237,.45); flex: none;
}
.demo-net-legend { margin: 10px 0 0; font-size: 13.5px; opacity: .7; }

/* accessible list alternative / no-WebGL fallback */
.net-alt { margin-top: 18px; }
.net-alt summary {
  cursor: pointer; font-weight: 700; font-size: 15px;
  color: var(--cw-bone); padding: 6px 0;
}
.net-alt summary:focus-visible { outline: 3px solid var(--cw-persimmon); outline-offset: 3px; }
.net-alt h4 {
  margin: 18px 0 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--violet-tint);
}
.net-alt ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.net-alt button {
  border: 1.5px solid rgba(185,169,242,.6); background: rgba(247,244,237,.06);
  color: var(--cw-bone); border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: 14px; cursor: pointer;
}
.net-alt button:hover { background: rgba(185,169,242,.25); }
.net-alt button:focus-visible { outline: 2px solid var(--cw-persimmon); outline-offset: 2px; }
.net-alt button .qk { font-size: 11px; opacity: .75; margin-left: 6px; }

/* forum proposals */
.demo-proposals { display: grid; gap: 16px; }
.demo-prop {
  background: #fff; border: 1px solid #E4DCF6; border-left: 5px solid var(--violet-tint);
  border-radius: 12px; padding: 22px 24px;
}
.demo-prop-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.demo-prop-by { font-size: 13px; color: rgba(48,9,80,.6); }
.demo-prop h3 { margin: 0 0 8px; font-size: 20px; color: var(--cw-violet); }
.demo-prop p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: rgba(48,9,80,.85); }
.demo-prop-dec { color: var(--cw-violet); }
.demo-prop-rel { font-size: 13px !important; color: rgba(48,9,80,.6) !important; }
.demo-forum-cta { margin-top: 26px; font-size: 15.5px; line-height: 1.6; max-width: 62ch; }

/* proposal journey steps */
.demo-steps {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 14px 0 12px; padding: 0;
}
.demo-steps li {
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  padding: 4px 12px; border-radius: 999px;
  border: 1.5px dashed #C9BEE9; color: rgba(48,9,80,.45);
}
.demo-steps li.done {
  border-style: solid; border-color: var(--cw-purple);
  background: var(--cw-purple); color: var(--cw-bone);
}

/* advanced views */
.demo-adv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.demo-adv {
  display: block; padding: 20px 22px; border-radius: 12px;
  background: var(--cw-purple); color: var(--cw-bone); text-decoration: none;
  font-weight: 700; font-size: 16px; line-height: 1.3;
  transition: transform .15s ease, background .15s;
}
.demo-adv span { display: block; font-weight: 500; font-size: 13px; margin-top: 6px; opacity: .85; }
.demo-adv:hover { transform: translateY(-3px); background: #8455f7; }
.demo-adv:focus-visible { outline: 3px solid var(--cw-persimmon); outline-offset: 2px; }

/* drawer */
.demo-drawer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(21,3,38,.5);
  display: none;
}
.demo-drawer.open { display: block; }
.demo-drawer-inner {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(480px, 92vw);
  background: var(--cw-bone); color: var(--cw-violet);
  padding: 30px 28px; overflow-y: auto;
  box-shadow: -8px 0 30px rgba(21,3,38,.3);
  animation: drawer-in .22s ease-out;
}
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.demo-drawer-close {
  float: right; font-size: 28px; line-height: 1; border: 0; background: none;
  cursor: pointer; color: var(--cw-violet); padding: 4px 10px;
}
.demo-drawer-kind {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cw-purple); margin: 0 0 8px;
}
.demo-drawer h3 { font-size: 24px; margin: 0 0 12px; line-height: 1.2; }
.demo-drawer h4 { margin: 22px 0 8px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--cw-purple); }
.demo-drawer p { font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.demo-maplink {
  display: inline-block; font-weight: 700; font-size: 14.5px;
  color: var(--cw-purple); text-decoration: none;
  border-bottom: 2px solid var(--cw-persimmon); padding-bottom: 2px;
}
.demo-maplink:hover { color: var(--cw-violet); }
.demo-maplink:focus-visible { outline: 3px solid var(--cw-persimmon); outline-offset: 2px; }
.demo-drawer ul { margin: 0; padding-left: 20px; }
.demo-drawer li { font-size: 14.5px; line-height: 1.55; margin-bottom: 6px; }
.demo-err { color: #8a1c1c; }

@media (max-width: 720px) {
  .demo-inner { padding: 0 18px; }
  .demo-hero { padding: 56px 0 48px; }
  .demo-section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-drawer-inner { animation: none; }
  .demo-card, .demo-adv { transition: none; }
}
