.planning-demos {
  display: grid;
  gap: 0.9rem;
  max-width: 58rem;
  margin-block: 1.75rem 0.5rem;
}
.planning-demo {
  border: 1px solid #514735;
  border-radius: 16px;
  background: var(--surface-dark);
}
.planning-demo[open] { border-color: #8d7047; }
.planning-demo summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
  padding: 1rem clamp(1rem, 3vw, 1.8rem);
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.planning-demo summary::-webkit-details-marker { display: none; }
.planning-demo summary > span:first-child { font: 700 1.3rem/1.3 var(--f-serif); }
.planning-demo .demo-subtitle { grid-column: 1; color: #d3cad6; font-size: 0.95rem; }
.planning-demo summary::after {
  content: "";
  grid-area: 1 / 2 / span 2;
  align-self: center;
  width: 0.65rem;
  height: 0.65rem;
  margin-inline: 0.25rem;
  border: solid var(--amber-light);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.planning-demo[open] summary::after { transform: rotate(225deg); }
.demo-body { max-width: 48rem; padding: 0 clamp(1rem, 3vw, 1.8rem) 1.5rem; }
.demo-purpose {
  margin-block: 1rem;
  padding-inline-start: 0.85rem;
  border-inline-start: 3px solid var(--teal);
}
.demo-purpose strong { color: #fff; margin-inline-end: 0.5rem; }
.demo-draft { margin-top: 1rem; }
.demo-draft strong { margin-inline-end: 0.4rem; color: #fff; }
.demo-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.75rem; }
.planning-demo button, .demo-select select {
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #796743;
  border-radius: 10px;
  padding: 0.6rem 0.95rem;
  color: #f8f2e8;
  background: #29232b;
  font: 600 1rem/1.4 var(--f-sans);
  cursor: pointer;
}
.planning-demo button:enabled:hover, .demo-select select:hover { border-color: var(--amber-light); }
.planning-demo [data-phrase] { background: var(--amber); color: #161017; border-color: var(--amber); }
.planning-demo button:disabled { opacity: 0.55; cursor: default; }
.planning-demo [hidden] { display: none !important; }
.demo-controls [data-reset], .planning-demo [data-read] { background: transparent; }
.demo-select { display: grid; gap: 0.35rem; width: fit-content; max-width: 100%; margin-top: 1rem; }
.demo-response {
  margin-block: 1rem;
  padding: 0.8rem 1.05rem;
  border: 1px solid #436969;
  border-radius: 12px;
  background: #152326;
}
.demo-response strong { color: #a6dcd3; }
.demo-response p { margin-top: 0.25rem; color: #fff; }
.demo-route { display: flex; margin-block: 1rem; list-style: none; }
.demo-route li {
  position: relative;
  flex: 1;
  padding-top: 1.45rem;
  text-align: center;
  font-weight: 600;
}
.demo-route li::before {
  position: absolute;
  z-index: 1;
  top: 0.3rem;
  left: calc(50% - 0.42rem);
  width: 0.84rem;
  height: 0.84rem;
  content: "";
  border: 2px solid #beaea0;
  border-radius: 50%;
  background: var(--surface-dark);
}
.demo-route li:not(:last-child)::after {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  width: 100%;
  height: 2px;
  content: "";
  background: #8a7f7a;
}
.demo-route [aria-current] { color: var(--amber-light); text-decoration: underline; text-underline-offset: 0.2em; }
.demo-route [aria-current]::before { background: var(--amber); border-color: var(--amber); }
html[data-a11y-contrast="inverted"] .planning-demo button,
html[data-a11y-contrast="inverted"] .demo-select select,
html[data-a11y-contrast="inverted"] .demo-response { background: #fff; color: #111; }
