.latest-announcement {
  display: grid;
  grid-template-columns: max-content auto 1fr;
  align-items: center;
  width: min(1320px, calc(100% - 80px));
  min-height: 44px;
  margin: 12px auto 4px;
  border: 0;
  border-radius: 10px;
  background: #f3f7fa;
  color: #173a57;
  overflow: hidden;
  box-shadow: 0 4px 14px rgb(17 52 78 / 4%);
}
.latest-announcement strong {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 16px;
  color: #173f5f;
  font-size: 15.6px;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
}
.latest-announcement strong::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #6f9fbd;
  box-shadow: 0 0 0 4px rgb(111 159 189 / 12%);
}
.latest-announcement strong::after {
  content: '';
  width: 1px;
  height: 16px;
  margin-left: 4px;
  background: #cfdae2;
}
.latest-announcement time {
  padding: 0 14px;
  color: #607587;
  font-size: 15.6px;
  white-space: nowrap;
}
.latest-announcement p {
  margin: 0;
  padding: 9px 18px 9px 0;
  color: #263f54;
  font-size: 16.9px;
  line-height: 1.5;
}
.announcement-admin {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #d9e2e8;
}
.announcement-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.announcement-heading h3 { margin: 0 0 5px; color: #102f49; }
.announcement-heading p { margin: 0; color: #6d7f8d; }
.announcement-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.announcement-fields label { display: grid; gap: 8px; color: #536b7c; }
.announcement-fields input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cfdae2;
  border-radius: 10px;
  background: #fff;
  color: #102f49;
  font: inherit;
}
.announcement-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.announcement-switch input { position: absolute; opacity: 0; pointer-events: none; }
.announcement-switch span {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #bac8d1;
  transition: background .2s ease;
}
.announcement-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(11 37 57 / 20%);
  transition: transform .2s ease;
}
.announcement-switch input:checked + span { background: #173f5f; }
.announcement-switch input:checked + span::after { transform: translateX(20px); }
.announcement-switch input:focus-visible + span { outline: 3px solid #9dc3dc; outline-offset: 2px; }
.announcement-switch b { color: #173f5f; font-size: 14px; }
@media (max-width: 720px) {
  .latest-announcement {
    grid-template-columns: auto 1fr;
    width: calc(100% - 24px);
    min-height: 38px;
    margin-top: 8px;
    border-radius: 9px;
  }
  .latest-announcement strong { margin: 0; padding: 7px 8px 7px 10px; font-size: 14.3px; }
  .latest-announcement strong::before { width: 5px; height: 5px; flex-basis: 5px; box-shadow: 0 0 0 3px rgb(111 159 189 / 12%); }
  .latest-announcement time { padding: 0 10px; font-size: 14.3px; }
  .latest-announcement p { grid-column: 1 / -1; padding: 7px 10px 10px; border: 0; font-size: 15.6px; line-height: 1.55; }
  .announcement-heading { align-items: flex-start; flex-direction: column; }
  .announcement-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-switch span, .announcement-switch span::after { transition: none; }
}
