/*
 * PASHA's Tool 1 self-assessment — one client's own ten-item Likert survey,
 * shown once between a key being spent and the interview itself.
 *
 * ⚠ ITS OWN SHEET, not more of interview.css. That file is already past
 * where CLAUDE.md flags a CSS file, and this is a different shape of screen
 * besides: a form to fill in, not the conversation room, and it wants real
 * width and a page that scrolls — the room's fixed two-column, no-scroll
 * layout was never built to hold one.
 */

/* The room's two columns are hidden while this is open, not resized around
   it: ten items need the whole viewport, and a sliver of the wave behind them
   would only compete for the eye. */
body.assessment-open > .sea,
body.assessment-open > .paper {
  display: none;
}

#assessment-step {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 2rem;
}

.assessment__intro,
#assessment-form {
  width: 100%;
  max-width: 46rem;
}

.assessment__intro {
  margin-bottom: 1.4rem;
}

.assessment__intro .wordmark {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.assessment__intro h2 {
  font-size: var(--fs-display);
  margin-bottom: 0.5rem;
}

.assessment__intro .muted {
  max-width: 62ch;
  text-wrap: pretty;
}

.assessment__section {
  border: none;
  border-top: 1px solid var(--rule);
  padding: 1.3rem 0;
  margin: 0;
}

.assessment__section legend {
  padding: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
}

.assessment__item {
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.assessment__item:first-of-type { border-top: none; padding-top: 0; }

.assessment__statement {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.65rem;
  text-wrap: pretty;
}

.assessment__scale {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.assessment__option {
  position: relative;
  flex: 1 1 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.55rem 0.4rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-input);
  background: #ded3b9;
  font-size: var(--fs-small);
  color: #25362f;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.assessment__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.assessment__option:has(input:checked) {
  border-color: #157c72;
  background: #157c72;
  color: #fff8e8;
  font-weight: 700;
}

.assessment__option:has(input:focus-visible) {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.assessment__actions {
  position: sticky;
  bottom: 0;
  padding: 1.3rem 0 0.3rem;
  margin-top: 0.5rem;
  background: linear-gradient(to top, var(--paper) 55%, transparent);
}

@media (max-width: 640px) {
  .assessment__option { flex-basis: 30%; }
}
/* Pasha admission has two short explanations and the access controls. */
.pasha-survey #asking,
.pasha-survey #admit-heading,
.pasha-survey #claim > p:first-child,
.pasha-survey #admit-form > .notice { display: none; }

.pasha-survey:has(#admit-step:not([hidden])) { grid-template-columns: 1fr; }
.pasha-survey:has(#admit-step:not([hidden])) > .paper { display: none; }

.pasha-survey #manual-key { margin-top: 1rem; }
.pasha-survey .pane--boundary { border-top: 0; padding-top: 0; }
.pasha-survey .done-banner {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
}
.pasha-survey .draft {
  border: 0;
  padding: 0;
  background: transparent;
  max-height: none;
  overflow: visible;
}
.pasha-survey #pasha-summary {
  min-height: 12rem;
  border: 1px solid var(--rule);
  background: var(--paper-deep);
}
.pasha-survey #pasha-summary:focus-visible {
  border-color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.pasha-survey .question-answer { margin: 0 0 1.4rem; }
.pasha-survey .question-answer label {
  display: block;
  margin-bottom: .6rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}
.pasha-survey .question-answer textarea { width: 100%; border: 1px solid var(--rule); background: var(--paper-deep); }
.pasha-survey .question-answer textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.pasha-survey #type-form { flex-wrap: wrap; }
.pasha-survey #type-form > .typed-question,
.pasha-survey #type-form > p { flex-basis: 100%; }
.pasha-survey #typed-question { width: 100%; }
.pasha-survey #typed { flex: 1; min-width: 0; }
