/* The scheduling screens: cards for the pages, the editor beside its preview,
   and the weekday table. Same hairlines and same components as module 1. */

.cards {
  display: grid;
  /* Cards keep the size they were drawn at rather than stretching across a
     wide screen: three of them on the design, and the fourth wraps. */
  grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  row-gap: 14px;
  padding: 20px;
  border: 1px solid var(--c-neutral-3);
  border-radius: 12px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 12px;
}

.card-head h2 {
  font: var(--t-h8-500);
  color: var(--c-white);
  margin: 0;
}

.card-facts {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  margin: 0;
}

.card-facts > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  column-gap: 12px;
}

.card-facts dt {
  font: var(--t-body-small-300);
  color: var(--c-neutral-9);
}

.card-facts dd {
  font: var(--t-body-small-300);
  color: var(--c-white);
  margin: 0;
}

.card-actions {
  display: flex;
  column-gap: 8px;
  flex-wrap: wrap;
}

.next-up {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-neutral-3);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-head h2 {
  font: var(--t-h8-500);
  color: var(--c-white);
  margin: 0;
}

/* Text, whether it is an anchor or a button. Left to the browser, a button
   with this class kept its grey operating-system box. */
.link {
  color: var(--c-blue);
  font: var(--t-body-small-300);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.summary-link {
  font: var(--t-code-300);
  color: var(--c-blue-lighter);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.summary-link:hover {
  text-decoration: underline;
}

.link-danger {
  color: var(--c-red);
}

/* The failure that breaks availability quietly: a calendar that stopped
   answering. It gets a banner, not a log line. */
.banner {
  padding: 16px;
  border: 1px solid var(--c-red);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  row-gap: 6px;
}

.checkbox {
  display: flex;
  align-items: center;
  column-gap: 10px;
  font: var(--t-body-small-300);
  color: var(--c-white);
}

/* A tick and a dot, at the size they are drawn at. Left alone a browser sizes
   them from the font of whatever box they land in, and inside a card that is
   enormous. */
.checkbox input[type="checkbox"],
.choice-card input[type="radio"] {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 0;
  accent-color: var(--c-blue);
}

/* S9: the two cards that decide what a page is. The chosen one carries the
   border and the wash, so the answer is visible without reading the radio. */
.choice-card {
  display: flex;
  align-items: flex-start;
  /* The dot sits on the first line of the title, not in the middle of the
     card. */
  padding-top: 18px;
  column-gap: 12px;
  padding: 16px;
  border: 1px solid var(--c-neutral-3);
  border-radius: 10px;
  cursor: pointer;
}

.choice-card > span {
  display: flex;
  flex-direction: column;
  row-gap: 6px;
  min-width: 0;
}

.choice-card strong {
  font: var(--t-body-primary-400);
  color: var(--c-white);
  display: flex;
  align-items: center;
  column-gap: 8px;
}

.choice-card:has(input:checked) {
  border-color: var(--c-blue);
  background: var(--grad-card-hover-fill);
}

.badge-team {
  font-style: normal;
  color: var(--c-violet-light);
  border-color: var(--c-violet);
}
