/* ============================================================
   ANNOUNCEMENTS CSS — layered on top of shared.css
   ============================================================ */

.announcement-badge {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border: 1px solid #c8dfff;
  border-radius: 20px;
  background: #e8f1ff;
  color: #0077cc;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.announcement-badge--important {
  background: #fff4e5;
  border-color: #ffd29b;
  color: #a55200;
}

.announcement-section {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.announcement-section--intro {
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

.announcement-summary-card {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.announcement-summary-card h2 {
  color: #0a3d62;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.announcement-summary-copy {
  margin-bottom: 1.25rem;
}

.announcement-summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0.9rem;
}

.announcement-summary-stat {
  border: 1px solid #e3ebf3;
  border-radius: 10px;
  padding: 0.95rem 1rem;
  background: #fbfdff;
}

.announcement-summary-stat strong {
  display: block;
  color: #0a3d62;
  font-size: 1rem;
  line-height: 1.3;
}

.announcement-summary-stat span {
  display: block;
  color: #666;
  font-size: 0.84rem;
  margin-top: 0.2rem;
  line-height: 1.5;
}

.announcement-featured-block {
  max-width: 980px;
  margin: 1.25rem auto 0;
}

.announcement-important-grid {
  max-width: 980px;
  margin: 1.25rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.announcement-featured-block__actions {
  margin-top: 1rem;
  align-items: center;
}

.announcement-archive {
  max-width: 980px;
  margin: 1.25rem auto 0;
}

.announcement-filter-card {
  max-width: 980px;
  margin: 1.25rem auto 0;
  text-align: center;
}

.announcement-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.announcement-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border: 1px solid #c8dfff;
  border-radius: 20px;
  background: #e8f1ff;
  color: #0a3d62;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.announcement-filter:hover,
.announcement-filter.is-active {
  background: #0077cc;
  color: #fff;
  border-color: #0077cc;
}

.announcement-filter-status {
  margin: 0.95rem 0 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
}

.announcement-archive__year-row {
  margin: 1.8rem 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #dfe7ef;
}

.announcement-archive__year-row:first-child {
  margin-top: 0;
}

.announcement-archive__year {
  color: #0a3d62;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
}

.announcement-card {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}

.announcement-card--featured {
  padding: 1.15rem 1.2rem;
}

.announcement-card--important {
  border-color: #ffd29b;
}

.announcement-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  margin-bottom: 0.8rem;
}

.announcement-card__published {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  min-width: 0;
  color: #666;
  font-size: 0.88rem;
  line-height: 1.6;
}

.announcement-card__published-label {
  color: #777;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.announcement-card__published time {
  color: #0a3d62;
  font-weight: 600;
}

.announcement-card__badges,
.announcement-detail-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.announcement-card__body {
  min-width: 0;
}

.announcement-card__title {
  color: #0a3d62;
  line-height: 1.35;
  margin: 0;
}

.announcement-card__title a,
.announcement-read-more {
  color: #0a3d62;
  text-decoration: none;
}

.announcement-card__title a:hover,
.announcement-read-more:hover {
  color: #0077cc;
}

.announcement-card__title {
  font-size: 1.05rem;
}

.announcement-card--featured .announcement-card__title {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.announcement-card__description,
.announcement-detail-summary {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
}

.announcement-card__description {
  margin: 0.45rem 0 0;
}

.announcement-card__tags {
  margin: 0.55rem 0 0;
  color: #666;
  font-size: 0.85rem;
  line-height: 1.6;
}

.announcement-card__updated {
  margin: 0.55rem 0 0;
  color: #666;
  font-size: 0.85rem;
  line-height: 1.6;
}

.announcement-card__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.announcement-read-more {
  display: inline-block;
  margin-top: 0;
  font-weight: 600;
  color: #0077cc;
}

.announcement-empty-state {
  max-width: 820px;
  margin: 1.25rem auto 0;
  text-align: center;
}

.announcement-empty-state--filtered {
  max-width: 980px;
}

.announcement-empty-state h3 {
  color: #0a3d62;
  margin-bottom: 0.45rem;
}

.announcement-breadcrumb {
  margin-bottom: 0;
}

.announcement-detail-hero {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: clamp(1.75rem, 4vw, 2.5rem) 1rem;
  text-align: center;
}

.announcement-detail-title {
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  font-weight: 700;
  color: #0a3d62;
  line-height: 1.3;
  max-width: 860px;
  margin: 0 auto;
}

.announcement-detail-meta {
  color: #666;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.announcement-detail-summary {
  max-width: 760px;
  margin: 0.8rem auto 0;
}

.announcement-detail-hero__badges {
  justify-content: center;
  margin-bottom: 0.8rem;
}

.announcement-detail-hero__actions {
  justify-content: center;
}

.announcement-container {
  padding: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.announcement-detail-info-card {
  max-width: 780px;
  margin: 0 auto 1.25rem;
}

.announcement-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 1rem;
}

.announcement-detail-info-label {
  display: block;
  color: #777;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.announcement-detail-info-grid p {
  margin: 0;
  color: #0a3d62;
  font-size: 0.94rem;
  line-height: 1.6;
}

.announcement-detail-article {
  max-width: 780px;
  margin-inline: auto;
}

.announcement-detail-article > *:first-child {
  margin-top: 0;
}

.announcement-detail-article p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.announcement-detail-article h2 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  color: #0a3d62;
  margin-top: 2.25rem;
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.announcement-detail-article h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: #0a3d62;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.announcement-detail-article h4 {
  font-size: 1.05rem;
  color: #0a3d62;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.announcement-detail-article ul,
.announcement-detail-article ol {
  margin-left: 1.4rem;
  margin-bottom: 1rem;
}

.announcement-detail-article li {
  margin: 0.4rem 0;
  line-height: 1.75;
  color: #333;
}

.announcement-detail-article a {
  color: #0077cc;
}

.announcement-detail-article hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

.announcement-detail-article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border: 1px solid #ddd;
  border-radius: 12px;
}

.announcement-detail-article table {
  width: 100%;
  margin: 1.25rem 0;
}

.announcement-table-wrap {
  margin: 1.25rem 0;
}

.announcement-table-wrap table {
  margin: 0;
}

.announcement-detail-article details {
  margin: 1rem 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  padding: 0.85rem 1rem;
}

.announcement-detail-article summary {
  cursor: pointer;
  color: #0a3d62;
  font-weight: 600;
}

.announcement-detail-article p,
.announcement-detail-article li,
.announcement-detail-article a,
.announcement-detail-article blockquote,
.announcement-detail-article pre,
.announcement-detail-article code,
.announcement-detail-article table,
.announcement-detail-article th,
.announcement-detail-article td,
.announcement-card__description,
.announcement-card__tags,
.announcement-card__title a,
.announcement-detail-pagination a {
  overflow-wrap: break-word;
  word-break: break-word;
}

.announcement-detail-pagination {
  max-width: 780px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.announcement-detail-pagination__card {
  height: 100%;
}

.announcement-cta-section {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}

.announcement-cta-card {
  max-width: 980px;
  padding: clamp(1.25rem, 3vw, 1.65rem);
  gap: 0.9rem;
}

.announcement-cta-card .cta-card__content {
  max-width: 700px;
}

.announcement-cta-card .cta-card__actions {
  justify-content: center;
}

@media (max-width: 767px) {
  .announcement-summary-stats,
  .announcement-detail-info-grid {
    grid-template-columns: 1fr;
  }

  .announcement-card,
  .announcement-card--featured {
    padding: 1rem;
  }

  .announcement-card__meta-row {
    align-items: flex-start;
  }

  .announcement-featured-block,
  .announcement-important-grid,
  .announcement-archive,
  .announcement-summary-card {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .announcement-card,
  .announcement-summary-card,
  .announcement-detail-info-card,
  .announcement-featured-block > .announcement-card {
    border-radius: 10px;
  }

  .announcement-card__published {
    font-size: 0.85rem;
  }

  .announcement-filter-bar {
    justify-content: stretch;
  }

  .announcement-filter {
    width: 100%;
  }

  .announcement-card__actions .announcement-read-more,
  .announcement-featured-block__actions .btn,
  .announcement-detail-hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .announcement-cta-card .cta-card__actions .btn {
    width: 100%;
  }
}
