.page-notices .page-body {
  background:
    linear-gradient(180deg, rgba(46, 99, 187, 0.08), rgba(46, 99, 187, 0) 22rem),
    #f5f8fd;
}

.notice-announcement-page {
  display: grid;
  gap: 1.35rem;
}

.notice-announcement-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 4.5vw, 4rem) clamp(1.1rem, 5vw, 4.8rem);
  background:
    radial-gradient(circle at 92% 8%, rgba(46, 99, 187, 0.13), transparent 28%),
    linear-gradient(135deg, #fbfdff 0%, #eef5ff 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 18px 48px rgba(17, 41, 82, 0.08);
}

.notice-hero-copy {
  min-width: 0;
}

.notice-hero-kicker {
  display: block;
  color: #31425c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-hero-copy h2 {
  margin: 0.75rem 0 0;
  color: var(--blue-700);
  font-size: clamp(2.3rem, 4.5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.notice-hero-copy p {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: #263750;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.notice-hero-media {
  min-width: 0;
}

.notice-hero-media img,
.notice-hero-placeholder {
  width: 100%;
  height: clamp(13rem, 24vw, 22rem);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(17, 41, 82, 0.24);
}

.notice-hero-media img {
  object-fit: cover;
}

.notice-hero-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(46, 99, 187, 0.95), rgba(22, 56, 101, 0.95)),
    #163865;
  color: #ffffff;
}

.notice-hero-placeholder span {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.notice-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding: 0 0.15rem;
}

.notice-toolbar h3 {
  margin: 0;
  color: #15233b;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1.1;
}

.notice-toolbar p {
  margin: 0.2rem 0 0;
  color: #516279;
  font-size: 0.9rem;
  font-weight: 600;
}

.notice-sort-form {
  display: grid;
  gap: 0.35rem;
  min-width: min(100%, 17rem);
}

.notice-sort-form label {
  color: #33425a;
  font-size: 0.75rem;
  font-weight: 800;
}

.notice-sort-form select {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid rgba(46, 99, 187, 0.26);
  border-radius: 8px;
  background: #ffffff;
  color: #1b2a42;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0 0.85rem;
}

.notice-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.45rem);
}

.notice-card,
.notice-empty-card {
  min-height: 13.2rem;
  background: #ffffff;
  border: 1px solid rgba(201, 213, 230, 0.95);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(17, 41, 82, 0.07);
  padding: 1.35rem;
}

.notice-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.notice-card:hover,
.notice-card:focus-visible {
  border-color: rgba(46, 99, 187, 0.4);
  box-shadow: 0 14px 32px rgba(17, 41, 82, 0.13);
  transform: translateY(-2px);
}

.notice-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef3fb;
  border: 1px solid rgba(201, 213, 230, 0.86);
  border-radius: 6px;
}

.notice-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notice-card-top,
.notice-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.priority-badge,
.notice-card-date,
.notice-date {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #24374e;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.priority-badge {
  gap: 0.45rem;
}

.priority-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.priority-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.priority-high {
  color: #d73332;
}

.priority-high .priority-icon {
  background: #fff0f0;
}

.priority-medium {
  color: #e88816;
}

.priority-medium .priority-icon {
  background: #fff4df;
}

.priority-low {
  color: #1d9b5a;
}

.priority-low .priority-icon {
  background: #eaf8ef;
}

.notice-card-date,
.notice-date {
  color: #516279;
  text-align: right;
}

.notice-card h3 {
  margin: 0;
  color: #17253d;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.35;
}

.notice-card p,
.notice-detail-copy p {
  margin: 0;
  color: #2e3e56;
  font-size: 0.95rem;
  line-height: 1.65;
}

.notice-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-top: 0.2rem;
  color: var(--blue-700);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.notice-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.notice-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue-700);
  font-size: 0.8rem;
  font-weight: 800;
}

.notice-pdf-link svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.notice-pdf-link a {
  color: inherit;
  text-decoration: none;
}

.notice-pdf-link a:hover,
.notice-read-more:hover {
  text-decoration: underline;
}

.notice-read-more svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.notice-empty-card {
  grid-column: 1 / -1;
  text-align: center;
}

.notice-empty-card h3 {
  margin: 0;
  color: #17253d;
}

.notice-empty-card p {
  margin: 0.75rem 0 0;
  color: #516279;
}

.notice-detail-shell {
  display: grid;
  gap: 1.25rem;
  max-width: min(1500px, calc(100vw - 2rem));
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(201, 213, 230, 0.95);
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(17, 41, 82, 0.09);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.notice-back-link {
  width: fit-content;
  color: #40526b;
  font-weight: 800;
  text-decoration: none;
}

.notice-back-link:hover {
  color: var(--blue-700);
}

.notice-detail-header {
  display: grid;
  gap: 0.9rem;
}

.notice-detail-header h2 {
  margin: 0;
  color: #12213a;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.notice-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.notice-detail-facts div {
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d9e1ef;
  border-radius: 8px;
  background: #f8fbff;
}

.notice-detail-facts dt,
.notice-detail-facts dd {
  margin: 0;
}

.notice-detail-facts dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notice-detail-facts dd {
  margin-top: 0.2rem;
  color: #17253d;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.notice-document-frame {
  margin: 0;
  overflow: hidden;
  background: #f7f9fc;
  border: 1px solid #d9e1ef;
  border-radius: 10px;
  padding: clamp(0.35rem, 1vw, 0.65rem);
}

.notice-document-frame a {
  display: block;
  cursor: zoom-in;
}

.notice-document-frame img {
  display: block;
  width: 100%;
  max-width: min(100%, 920px);
  height: auto;
  max-height: 620px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(17, 41, 82, 0.12);
}

.notice-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.notice-btn {
  min-height: 2.75rem;
}

.notice-btn-secondary {
  background: #ffffff;
  color: var(--blue-700);
  border: 1px solid rgba(46, 99, 187, 0.22);
}

.notice-btn-secondary:hover {
  background: #e9f0fc;
}

@media (max-width: 1180px) {
  .notice-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .notice-announcement-hero {
    grid-template-columns: 1fr;
    padding: clamp(1.5rem, 6vw, 2.3rem);
  }

  .notice-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .notice-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-sort-form {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .notice-card-grid {
    grid-template-columns: 1fr;
  }

  .notice-card,
  .notice-empty-card {
    padding: 1rem;
  }

  .notice-card-top,
  .notice-detail-meta {
    align-items: flex-start;
  }

  .notice-detail-actions {
    display: grid;
  }

  .notice-detail-facts {
    grid-template-columns: 1fr;
  }

  .notice-btn {
    width: 100%;
  }
}
