/* ==========================================================================
   Notice board  —  /notices/
   Loaded ALONGSIDE page-head.css, which supplies the banner. This file is the
   card grid.

   Two across rather than a full-width table. A notice title is a sentence, not
   a field, and at full width it ran the whole shell with the date and the
   download button stranded at either end of it.
   ========================================================================== */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* A column, so the download button can be pushed to the foot with margin-top:
   auto and two cards side by side line their buttons up whatever the titles
   above them are doing. */
.notice-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.notice-card:hover { box-shadow: var(--shadow-sm); }
/* The spine is the only thing marking an important notice out at a glance,
   so it is the one that changes colour rather than the whole card. */
.notice-card.is-important { border-left-color: var(--red); }

.notice-card__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.notice-card__date {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.notice-card__title {
  margin: 0;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.5;
}
.notice-card__text {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.65;
}

/* margin-top: auto pins this to the foot of the card. */
.notice-card__foot { margin-top: auto; padding-top: 16px; }

/* "Read More" rather than a button. It opens the notice itself as a PDF, and
   the site already uses this shape - label, chevron, arrow nudging on hover -
   on the recognition cards. */
.notice-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.notice-more:hover { color: var(--ink); }
.notice-more svg {
  width: 12px; height: 12px;
  fill: currentColor;
  transition: transform var(--transition);
}
.notice-more:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------- responsive ----- */
/* One column below 768px. Two cards on a phone leave about 150px for a title
   that is a full sentence, which wraps to six or seven lines. */
@media (max-width: 767.98px) {
  .notice-grid { grid-template-columns: 1fr; gap: 16px; }
  .notice-card { padding: 18px; }
}
