/* Chemistry@BGS — Notices */

.home-notices-shell {
  max-width: 1180px;
  margin: 0px auto 0;
  padding: 0 40px;
}

.notice-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e6e6e6);
  border-left: 5px solid var(--red, #d71920);
  border-radius: 18px;
  padding: 13px 16px;
  box-shadow: 0 7px 22px rgba(0,0,0,.045);
}

.notice-strip__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff2f2;
  color: var(--red-dark, #a8161b);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.notice-strip__viewport {
  min-width: 0;
  overflow: hidden;
}

.notice-strip__body {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  will-change: transform, opacity;
}

.notice-strip__body--from-right {
  animation: notice-slide-in-right .38s ease both;
}

.notice-strip__body--from-left {
  animation: notice-slide-in-left .38s ease both;
}

@keyframes notice-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes notice-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notice-strip__title {
  color: var(--charcoal, #242424);
  font-size: .98rem;
  white-space: nowrap;
}

.notice-strip__summary {
  color: var(--muted, #666);
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-strip__read,
.notice-strip__all,
.notice-card__link {
  color: var(--red, #d71920);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.notice-strip__read {
  margin-left: auto;
  font-size: .88rem;
}

.notice-strip__read:hover,
.notice-strip__all:hover,
.notice-card__link:hover {
  text-decoration: underline;
}

.notice-strip__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.notice-strip__button {
  width: 31px;
  height: 31px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  background: #f7f7f8;
  border: 1px solid var(--line, #e1e1e1);
  color: var(--charcoal, #242424);
  font-size: 1.25rem;
  line-height: 1;
}

.notice-strip__button:hover {
  background: #fff2f2;
  color: var(--red-dark, #a8161b);
}

.notice-strip__all {
  margin-left: 5px;
  font-size: .82rem;
}

@media (prefers-reduced-motion: reduce) {
  .notice-strip__body--from-right,
  .notice-strip__body--from-left {
    animation: none;
  }
}

/* Notices page */

.notices-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 50px 40px 80px;
}

.notices-hero { margin-bottom: 28px; }

.notices-hero h2 {
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 5vw, 3rem);
}

.notices-hero p:last-child {
  max-width: 720px;
  color: var(--muted, #666);
  font-size: 1.05rem;
  line-height: 1.55;
}

.notices-list {
  display: grid;
  gap: 15px;
}

.notice-card,
.notices-empty,
.notice-detail {
  background: var(--card, #fff);
  border: 1px solid var(--line, #e5e5e5);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.notice-card { border-left: 5px solid #d7b650; }
.notice-card--important { border-left-color: var(--red, #d71920); }

.notice-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.notice-card__date {
  margin-left: auto;
  color: var(--muted, #666);
  font-size: .8rem;
  font-weight: 700;
}

.notice-card h3 {
  margin: 0 0 8px;
  color: var(--charcoal, #242424);
  font-size: 1.2rem;
}

.notice-card p {
  margin: 0 0 14px;
  color: var(--muted, #666);
  line-height: 1.5;
}

.notice-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.notice-detail h2 { margin: 0 0 14px; }
.notice-detail h3 { margin: 25px 0 7px; }
.notice-detail p,
.notice-detail li { line-height: 1.6; }

.notice-detail__placeholder {
  margin-top: 20px;
  padding: 14px 16px;
  background: #fff8df;
  border-left: 4px solid #d7b650;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .home-notices-shell { padding: 0 24px; }

  .notice-strip {
    grid-template-columns: 1fr auto;
  }

  .notice-strip__heading { grid-column: 1 / 2; }
  .notice-strip__viewport {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .notice-strip__controls {
    grid-column: 2;
    grid-row: 1;
  }

  .notice-strip__body {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .notice-strip__summary {
    flex-basis: 100%;
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .home-notices-shell,
  .notices-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .notice-strip {
    gap: 10px;
    padding: 12px 13px;
  }

  .notice-strip__all { display: none; }
  .notice-strip__title { white-space: normal; }

  .notice-card__date {
    width: 100%;
    margin-left: 0;
  }
}
