/* The authoring studio. Builds on src/ui/style.css — ASU maroon and gold. */

.wrap {
  max-width: 1120px;
}

.crumb {
  opacity: 0.85;
  font-size: 0.9rem;
}

button.small,
.btn.small {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  margin: -0.2rem 0 1.4rem;
  max-width: 62ch;
}

.actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ doors */

.door {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 0 0 1rem;
}
.door.primary {
  border-left: 5px solid var(--maroon);
}
.door-n {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
}
.door.primary .door-n {
  color: var(--maroon);
}
.door h2 {
  margin: 0 0 0.25rem;
}
.door .hint {
  max-width: 60ch;
}
.door label {
  margin-top: 1rem;
}

.door .btn {
  text-decoration: none;
}

.dropzone {
  margin-top: 0.9rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: #fcfcfc;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.dropzone:hover,
.dropzone.over {
  border-color: var(--maroon);
  background: #fdf6f8;
}
.dropzone .hint {
  margin: 0;
}
.dropzone .hint.small {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ------------------------------------------------------------------ digest */

.two-pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .two-pane {
    grid-template-columns: 1fr;
  }
}

.block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem 1rem;
  margin: 0 0 1rem;
}
.block h2 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
}
.block .note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
  max-width: 58ch;
}

ul.traces {
  list-style: none;
  margin: 0;
  padding: 0;
}
.trace + .trace {
  border-top: 1px solid #eee;
}

button.trace-btn {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-weight: 400;
  padding: 0.4rem 0.3rem;
  border-radius: 4px;
  cursor: pointer;
}
button.trace-btn:hover {
  background: #fdf6f8;
}
.trace-text {
  flex: 1;
}
.trace .badge {
  flex: 0 0 auto;
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--maroon);
  background: #f4e7eb;
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
}
.trace .line {
  flex: 0 0 auto;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* The source document, with the line an item came from highlighted. */
.source {
  position: sticky;
  top: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem 1rem;
}
.source h2 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
}
ol.srclines {
  margin: 0;
  padding: 0 0 0 3.2rem;
  max-height: 68vh;
  overflow: auto;
  background: #fbfbfb;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.5;
}
ol.srclines li {
  color: #aaa;
  padding: 0 0.4rem;
  border-left: 1px solid #eee;
}
ol.srclines code {
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.78rem;
}
ol.srclines li.hit {
  background: var(--gold);
  color: var(--ink);
}
ol.srclines li.hit code {
  font-weight: 600;
}

/* ------------------------------------------------------------------ options */

.why {
  background: #fdf6f8;
  border-left: 4px solid var(--maroon);
  padding: 0.7rem 0.9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.25rem;
  max-width: 78ch;
}

.options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  /* Stretch, so the three "cannot assess" boxes and the three buttons line up. Comparing
     options is the whole job of this screen, and ragged cards make that harder. */
  align-items: stretch;
  margin-bottom: 1.5rem;
}
@media (max-width: 980px) {
  .options {
    grid-template-columns: 1fr;
  }
}

.option {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
}
.option.rec {
  border: 2px solid var(--maroon);
}
.option header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}
.option header h2 {
  margin: 0;
  flex: 1 0 auto;
  font-size: 1.1rem;
}
.option .verb {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 0.6rem;
}
.option p {
  margin: 0 0 0.7rem;
}

button.evidence {
  display: block;
  width: 100%;
  text-align: left;
  background: #fbfbfb;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-weight: 400;
  font-size: 0.85rem;
  padding: 0.5rem 0.6rem;
  border-radius: 4px;
  margin: 0 0 0.8rem;
  cursor: pointer;
}
button.evidence:hover {
  background: #fdf6f8;
}
.ev-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}

.covers {
  margin-bottom: 0.3rem !important;
}
ul.tight {
  margin: 0 0 0.8rem;
  padding-left: 1.1rem;
  font-size: 0.87rem;
}
ul.tight li {
  margin-bottom: 0.18rem;
}

.cannot {
  background: #fdf7ef;
  border: 1px solid #f0e2cc;
  border-radius: 4px;
  padding: 0.6rem 0.7rem 0.1rem;
  margin: 0 0 0.8rem;
}
.cannot h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--warn);
}

.cost {
  font-size: 0.88rem;
}
.runtime {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid #eee;
  padding-top: 0.6rem;
  margin-top: auto !important;
}
.option .actions {
  margin-top: 0.9rem;
}
.option .actions button {
  width: 100%;
}
