/* SchoolDay v222 additions. Loaded last so these rules win over v207-v221. */

/* --- Notice Board -------------------------------------------------- */
.notice-board-admin-controls-v222 { display: flex; align-items: center; gap: .6rem; }
.notice-board-off-notice-v222 {
  border: 1px solid #e2c98a;
  background: #fff9e8;
  border-radius: .6rem;
  padding: .55rem .7rem;
  margin: 0 0 .75rem;
}
.notice-board-composer-v222 {
  border: 1px solid #d4dfe7;
  border-radius: .7rem;
  background: #f8fafc;
  padding: .55rem .7rem;
  margin-bottom: 1rem;
}
.notice-board-composer-v222[open] { padding-bottom: .8rem; }
.notice-board-composer-v222 > summary { cursor: pointer; font-weight: 800; }
.notice-colour-fieldset-v222 {
  border: 1px solid #d4dfe7;
  border-radius: .55rem;
  padding: .5rem .6rem;
  margin-top: .55rem;
}
.notice-colour-fieldset-v222 legend { font-weight: 800; font-size: .85rem; padding: 0 .3rem; }
.notice-colour-swatches-v222 { display: flex; flex-wrap: wrap; gap: .45rem; }
.notice-colour-swatch-v222 {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0 !important;
  border: 2px solid #81909b !important;
  border-radius: 6px !important;
}
.notice-colour-swatch-v222.selected {
  outline: 3px solid var(--admin-header-border, #f5c542);
  outline-offset: 2px;
}

/* Every notice is the same size, five across on a wide screen. */
.notice-board-list-v222 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .8rem;
  align-items: stretch;
}
@media (min-width: 1100px) {
  .notice-board-list-v222 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.notice-card-v222 {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-height: 190px;
  border: 1px solid rgba(20, 40, 60, .16);
  border-radius: .8rem;
  padding: .7rem .75rem 2rem;
  box-shadow: 0 6px 16px rgba(20, 40, 60, .12);
  overflow: hidden;
  word-break: break-word;
}
.notice-card-title-v222 { margin: 0; font-size: 1rem; line-height: 1.25; color: #16324a; }
.notice-card-body-v222 { margin: 0; font-size: .86rem; line-height: 1.35; color: #24405a; }
.notice-card-image-v222 {
  width: 100%;
  max-height: 96px;
  object-fit: cover;
  border-radius: .45rem;
}
.notice-card-link-v222 { font-size: .84rem; font-weight: 700; color: #144f8c; }
.notice-card-author-v222 {
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .55rem;
  margin: 0;
  font-size: .74rem;
  color: rgba(20, 40, 60, .62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-card-delete-v222 {
  position: absolute;
  top: .35rem;
  right: .35rem;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(20, 40, 60, .25);
  background: rgba(255, 255, 255, .85);
  color: #6b2020;
  font-size: 1.05rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

/* --- Phonics selector: same-sound buckets --------------------------- */
.phonic-sound-bucket-v222 {
  border: 1px dashed rgba(20, 79, 140, .3);
  border-radius: .5rem;
  padding: .3rem .4rem .35rem;
  margin-top: .35rem;
}
.phonic-sound-bucket-label-v222 {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  color: rgba(40, 71, 94, .55);
  margin-bottom: .2rem;
  letter-spacing: .01em;
}
