/* RelaxitsPrototype local CSS.
   StartHDS supplies the app/prototype components. This file only styles the
   prototype runner chrome, the YAML editor overlay, and a few fixture/debug
   helpers that are not part of StartHDS. */

.fixture-link-list {
  columns: 2 18rem;
  padding-inline-start: 1.25rem;
}

.prototype-chrome {
  position: sticky;
  top: 0;
  z-index: 10000;
  overflow: visible;
  border-block-end: 1px solid #27272a;
  color: #f9fafb;
  background: #050505;
  font-size: 0.875rem;
}

.prototype-chrome a,
.prototype-chrome button,
.prototype-chrome summary { color: inherit; }

.prototype-chrome-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.5rem;
  width: min(100%, calc(100% - 1rem));
  margin-inline: auto;
}

.prototype-chrome-back,
.prototype-chrome-control {
  border-radius: 0.35rem;
  padding: 0.3rem 0.55rem;
}

.prototype-chrome-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  min-height: 2.1rem;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  background: #18181b;
}

.prototype-chrome-control {
  border: 1px solid #3f3f46;
  background: #18181b;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.prototype-pages { position: relative; z-index: 10010; }
.prototype-pages summary { list-style: none; }
.prototype-pages summary::-webkit-details-marker { display: none; }

.prototype-pages-menu {
  position: absolute;
  inset-block-start: calc(100% + 0.35rem);
  inset-inline-start: 0;
  min-width: min(22rem, calc(100vw - 1rem));
  padding: 0.5rem;
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  background: #111113;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
  z-index: 10020;
}

.prototype-pages-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.prototype-pages-menu a {
  display: inline-block;
  border-radius: 0.4rem;
  padding: 0.35rem 0.55rem;
  color: #f9fafb;
  text-decoration: none;
}
.prototype-pages-menu a[aria-current="page"] { background: #facc15; color: #111827; }

.prototype-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
}
.prototype-editor-backdrop[hidden] { display: none !important; }

.prototype-editor-modal {
  width: min(72rem, calc(100vw - 2rem));
  max-height: min(84vh, 54rem);
  display: grid;
  gap: 1rem;
  overflow: auto;
  background: #ffffff;
  color: #111827;
}

.prototype-editor-header,
.prototype-editor-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.prototype-editor-header h2 { margin: 0; }
.prototype-editor-header p { margin: 0.25rem 0 0; color: #4b5563; }

.prototype-editor-textarea {
  width: 100%;
  min-height: 26rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.45;
}

.prototype-editor-status { min-height: 1.5rem; margin: 0; font-weight: 700; }
.prototype-editor-status[data-state="error"] { color: #b91c1c; }
.prototype-editor-status[data-state="success"] { color: #15803d; }

.app-navbar { position: relative; z-index: 100; }
.app-navbar .hds-site-nav__links a.active,
.app-navbar .hds-site-nav__links a[aria-current="page"] {
  background: var(--hds-color-primary, #2457d6);
  color: var(--hds-color-primary-contrast, #ffffff);
}

.spec-metadata { margin-block: var(--hds-space-4, 1rem); }
.spec-metadata dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: var(--hds-space-3, .75rem);
  margin: 0;
}
.spec-metadata dt { font-weight: 800; }
.spec-metadata dd { margin: 0; }


.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 10030;
}
.skip-link:focus {
  left: 0.5rem;
  color: #111827;
  background: #ffffff;
  padding: 0.5rem;
}

