/* ==========================================================================
   DOWNLOAD YOUR MONEY RECEIPT  —  /receipts/
   --------------------------------------------------------------------------
   Two ways in, side by side, and a list of receipts once one of them answers.

   The two doors are the same size and sit in one row on a desktop because
   neither is the fallback: a student with their reference number and one
   without are equally expected, and making the second look like a last
   resort would send people to the accounts office instead of using it.
   ========================================================================== */

.rcl-section { background: var(--page-alt); }

.rcl-lede {
  max-width: 62ch;
  margin: 0 auto 26px;
  text-align: center;
  color: var(--ink-soft);
}

/* auto-fit, so the two boxes drop to one column on a phone with no
   breakpoint of their own. */
.rcl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.rcl-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.rcl-box__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}
.rcl-box__note {
  margin: 0 0 16px;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--muted);
}

.rcl-label {
  display: block;
  margin-bottom: 5px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rcl-input {
  width: 100%;
  padding: 11px 13px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}
.rcl-input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
/* A reference number is read off a screen and typed in character by
   character, so the ambiguous ones have to be told apart. */
.rcl-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .02em;
}

.rcl-box .btn { width: 100%; }

/* ---------------------------------------------------------------- results */
.rcl-found {
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--ink);
}

.rcl-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.rcl-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}
.rcl-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.rcl-card__no {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.rcl-card__amount {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

/* Label over value rather than beside it: a course name is long and a
   two-column row would leave the labels stranded against a wrapped line. */
.rcl-card__rows {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 18px;
}
.rcl-card__rows dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rcl-card__rows dd {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: .92rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rcl-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.rcl-card__actions .btn { padding: 9px 20px; font-size: .86rem; }
.rcl-card__print {
  font-size: .86rem;
  font-weight: 600;
  color: var(--blue);
}

.rcl-again { margin: 0; }

/* ----------------------------------------------------------------- notes */
.rcl-msg {
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.rcl-msg--bad {
  border-color: #f5c6cb;
  background: #fdecea;
}
.rcl-msg__title {
  margin: 0 0 6px;
  font-weight: 800;
  color: #9b2c2c;
}
.rcl-msg__note {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
  color: #7b2d2d;
}
.rcl-msg__note a { color: #7b2d2d; text-decoration: underline; }

.rcl-foot {
  margin: 26px 0 0;
  font-size: .86rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 575.98px) {
  .rcl-box { padding: 18px; }
  .rcl-card { padding: 15px 16px; }
}
