/* Plans, notes from the guidance, details of an entry, and the pages added with them. */

.rail {
  overflow-y: auto;
}

/* --- rows that open ------------------------------------------------------------- */

.entry[role="button"] {
  cursor: pointer;
}

.entry[role="button"]:hover {
  background: var(--sunk);
}

.entry[role="button"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.entry-plain .entry-verdict {
  color: var(--ink-2);
}

.entry-plain.is-late .entry-verdict {
  color: var(--late);
}

.status .btn + .btn {
  margin-left: 0;
}

.pad {
  padding: 0 22px 14px;
}

/* --- notes from the guidance ------------------------------------------------------- */

.tag-note {
  background: var(--soon-tint);
  color: var(--soon);
  vertical-align: 1px;
}

.notes {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--soon-tint);
  color: #5d410b;
  border: 1px solid #e6d3a6;
}

.notes-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 4px;
}

.notes ul {
  margin: 0;
  padding-left: 22px;
  font-size: 13px;
}

.notes li + li {
  margin-top: 4px;
}

/* --- a plan ------------------------------------------------------------------------- */

.plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.plan-head .section-title {
  margin: 2px 0 0;
}

.plan-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px 20px;
  margin: 0 0 14px;
}

.facts dt {
  font-size: 12px;
  color: var(--ink-3);
  text-align: left;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  text-align: left;
}

.facts-tight {
  grid-template-columns: 1fr 1fr;
}

.plan-apps {
  margin: 6px -22px -20px;
  border-top: 1px solid var(--line-soft);
}

/* --- the detail of one entry ---------------------------------------------------------- */

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* --- fields: the edit button sits over the card's corner -------------------------------- */

.field-wrap {
  position: relative;
}

.field-wrap .field-card {
  width: 100%;
}

.field-edit {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* --- a newer program is ready ------------------------------------------------------------------- */

.update-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 16px;
  border-radius: var(--radius);
  /* Amber running to red: an update left for later is a warning, not good news. */
  background: linear-gradient(100deg, var(--soon-tint), var(--late-tint));
  color: #6f2615;
  border: 1px solid #e3bfa2;
  font-weight: 600;
}

.update-bar .icon {
  color: var(--late);
  flex: none;
}

.update-bar .btn {
  margin-left: auto;
}

.mini-title {
  font-size: 13px;
  margin: 16px 0 6px;
}

.plain-list {
  margin: 0 0 12px;
  padding-left: 20px;
}

progress {
  width: 100%;
  height: 10px;
  accent-color: var(--brand);
}

.btn-wide {
  padding-left: 22px;
  padding-right: 22px;
}
