@import url("/css/footer.css");
@import url("/css/common.css");
@import url("/css/legacy-common.css");
@import url("/css/ui-components.css");

section.notice-list {
  background-color: #f7f7f7;
  margin: auto;
  padding: var(--rg-layout-section-lg) 0;
  width: 100%;
  box-sizing: border-box;
}

section.notice-list .inner {
  display: grid;
  gap: var(--rg-space-lg);
}

.notice-list__item .sub-title {
  font-size: var(--rg-font-size-heading-md);
  padding-bottom: var(--rg-space-md);
  line-height: 135%;
}

.notice-list__item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: var(--rg-color-surface);
  border-radius: 15px;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.05);
  margin: 0 var(--rg-space-xl);
  padding: var(--rg-space-lg) var(--rg-space-xl);
  max-width: 100%;
}

.notice-list__item .group {
  color: #666;
  font-size: var(--rg-font-size-body-md);
}

.notice-article__content table {
  width: 90%;
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
}

.notice-article__content th {
  background-color: var(--rg-color-surface);
  width: 20%;
  text-align: left;
  padding: var(--rg-space-xs);
}

.notice-article__content td {
  border-right: 0px solid #c8c8c8;
  border-bottom: 1px solid #969595;
  border-collapse: collapse;
  padding: var(--rg-space-xs);
  text-align: left;
}

.notice-detail {
  padding: calc(var(--rg-layout-header-height) + var(--rg-space-md)) var(--rg-layout-gutter-mobile) var(--rg-layout-section-sm);
  background: #f7f7f7;
}

.notice-article {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: var(--rg-space-3xl) var(--rg-space-xl);
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  background: var(--rg-color-surface);
  box-sizing: border-box;
}

.notice-article__header {
  padding-bottom: var(--rg-space-3xl);
  border-bottom: 1px solid #e2e2e2;
  text-align: center;
}

.notice-article__header h1 {
  margin: 0;
  color: #111;
  font-size: var(--rg-font-size-article-title);
  font-weight: var(--rg-font-weight-extrabold);
  line-height: 1.4;
}

.notice-article__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--rg-space-sm);
  margin-top: var(--rg-space-lg);
  color: #666;
  font-size: var(--rg-font-size-body-md);
}

.notice-article__content {
  padding: var(--rg-space-3xl) 0 var(--rg-space-xl);
  color: #222;
  font-size: var(--rg-font-size-body-md);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.notice-article__content h2 {
  margin: var(--rg-space-2xl) 0 var(--rg-space-md);
  color: #222;
  font-size: var(--rg-font-size-body-lg);
  font-weight: var(--rg-font-weight-extrabold);
  line-height: 1.5;
}

.notice-article__content p {
  margin: 0 0 var(--rg-space-md);
}

.notice-body-center {
  text-align: center;
}

.notice-body-signature {
  margin-top: var(--rg-space-3xl) !important;
  font-size: var(--rg-font-size-body-lg);
  font-weight: var(--rg-font-weight-semibold);
  line-height: 1.7;
}

.notice-article__back {
  margin-top: var(--rg-space-xl);
}

/* 공통 기준은 모바일이며 768px부터 기존 데스크톱 값을 복원한다. */
@media (min-width: 768px) {
  section.notice-list {
    padding: var(--rg-layout-section-lg) var(--rg-layout-gutter-content);
  }

  .notice-list__item {
    padding: var(--rg-space-4xl) var(--rg-space-5xl);
  }

  .notice-detail {
    padding: calc(var(--rg-layout-header-height) + var(--rg-space-5xl)) var(--rg-layout-gutter-content) var(--rg-layout-section-md);
  }

  .notice-article {
    padding: calc(var(--rg-space-3xl) + var(--rg-space-2xl)) var(--rg-layout-section-sm);
    border-radius: 16px;
  }

  .notice-article__content {
    padding: var(--rg-space-3xl) 0 var(--rg-space-xl);
    font-size: var(--rg-font-size-body);
  }

  .notice-article__content h2 {
    font-size: var(--rg-font-size-heading-sm);
  }

  .notice-body-signature {
    font-size: var(--rg-font-size-body-lg);
  }
}
