/*
 * fund.css – The look of the School Development Fund page only (the summary and the fund panels).
 * Used by: frontend/pages/fund.html.
 * How to edit: colours, blur and radii come from liquid-crystal.css. Change the sizes here.
 */

/* This is the summary card at the top: the biggest item on the page */
.fund-summary {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 24px;
}

/* This is the money in the fund, drawn large */
.fund-total {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
}

/* This is the currency word next to the total, drawn smaller */
.fund-currency {
  font-size: 1.1rem;
  font-weight: 500;
}

/* This is the row of smaller figures under the total: collected, spent, waiting and pending */
.fund-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* This is one small figure in the row */
.fund-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--colour-panel-solid);
}

/* This is the figure itself inside a small box */
.fund-stat strong {
  font-size: 1.25rem;
}

/* This is the box that holds the choice "collected now" or "collect later" */
.collect-choice {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--colour-edge);
  border-radius: 12px;
}

/* This is the style for the panels of each tab */
.fund-panel {
  margin-bottom: 16px;
}

/* This is the layout for the wide screen: the four figures sit in one row */
@media (min-width: 900px) {
  .fund-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
