:root {
  color-scheme: dark;
  background: #020203;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: #020203;
  color: rgb(247 249 252 / 0.94);
}

a {
  color: inherit;
}

.site-nav {
  position: fixed;
  top: clamp(0.75rem, 2.5vw, 2rem);
  right: clamp(0.75rem, 2.5vw, 2rem);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem;
  background: rgb(4 5 8 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 0.5rem;
  box-shadow: 0 12px 36px rgb(0 0 0 / 0.28);
  backdrop-filter: blur(16px) saturate(1.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
}

.nav-link,
.footer-notice-link {
  flex: 0 0 auto;
  color: rgb(255 255 255 / 0.88);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.7rem;
  border-radius: 0.35rem;
}

.nav-link:hover,
.footer-notice-link:hover {
  color: #ffffff;
}

.nav-link[aria-current="page"] {
  background: rgb(255 255 255 / 0.12);
  color: #ffffff;
}

.nav-link:focus-visible,
.footer-notice-link:focus-visible,
.email:focus-visible,
.notice-board a:focus-visible,
.notice-search input:focus-visible,
.notice-button:focus-visible {
  outline: 2px solid rgb(255 255 255 / 0.82);
  outline-offset: 0.3rem;
}

.landing {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.home-page {
  place-items: center;
}

.singularity {
  position: absolute;
  inset: -12vmax;
  z-index: 0;
  background-image: url("/assets/singularity.webp");
  background-image: image-set(
    url("/assets/singularity.avif") type("image/avif"),
    url("/assets/singularity.webp") type("image/webp"),
    url("/assets/singularity.png") type("image/png")
  );
  background-position: center;
  background-size: cover;
  opacity: 0.82;
  filter: saturate(1.08) contrast(1.05);
}

.singularity-video {
  position: absolute;
  inset: -6%;
  z-index: 1;
  width: 112%;
  height: 112%;
  object-fit: cover;
  opacity: 0.9;
  filter: saturate(1.08) contrast(1.06);
  transform-origin: center;
  animation: video-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.landing::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    radial-gradient(circle at center, rgb(2 2 3 / 0) 0 28%, rgb(2 2 3 / 0.24) 48%, rgb(2 2 3 / 0.86) 100%),
    linear-gradient(180deg, rgb(2 2 3 / 0.18), rgb(2 2 3 / 0.58));
}

.email {
  position: relative;
  z-index: 3;
  max-width: min(92vw, 42rem);
  padding: clamp(1rem, 4vw, 2rem);
  color: rgb(250 251 255 / 0.94);
  font-size: clamp(1.05rem, 2.5vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 0 20px rgb(255 255 255 / 0.18), 0 2px 18px rgb(0 0 0 / 0.7);
  transition: color 180ms ease, text-shadow 180ms ease;
}

.email:hover {
  color: #ffffff;
  text-shadow: 0 0 28px rgb(255 255 255 / 0.32), 0 2px 18px rgb(0 0 0 / 0.7);
}

.site-footer {
  position: fixed;
  right: clamp(0.75rem, 2.5vw, 2rem);
  bottom: clamp(0.75rem, 2.5vw, 2rem);
  left: clamp(0.75rem, 2.5vw, 2rem);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: rgb(226 230 238 / 0.88);
  background: rgb(4 5 8 / 0.7);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 0.5rem;
  box-shadow: 0 18px 60px rgb(0 0 0 / 0.34);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

.legal-info {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
  margin: 0;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: right;
}

.notice-page {
  align-items: start;
  justify-items: center;
  padding: 6.5rem 1.25rem 2rem;
}

.notice-board {
  color-scheme: light;
  position: relative;
  z-index: 6;
  width: min(100%, 76rem);
  min-width: 0;
  justify-self: center;
  margin: 0 auto;
  color: #111827;
  background: rgb(255 255 255 / 0.96);
  border: 1px solid rgb(203 213 225 / 0.9);
  border-radius: 0.5rem;
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.36);
  backdrop-filter: blur(18px) saturate(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
}

.notice-header,
.notice-section {
  padding: clamp(1.1rem, 3vw, 1.75rem);
}

.notice-header {
  position: relative;
  padding-right: clamp(3.75rem, 6vw, 4.75rem);
  border-bottom: 1px solid #e5e7eb;
}

.notice-close {
  position: absolute;
  top: clamp(0.85rem, 2vw, 1.25rem);
  right: clamp(0.85rem, 2vw, 1.25rem);
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
}

.notice-close:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.notice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  min-width: 0;
}

.notice-column {
  min-width: 0;
}

.notice-info-column {
  border-right: 1px solid #e5e7eb;
}

.notice-list-column {
  display: grid;
  align-content: start;
  background: #f8fafc;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.notice-header h1,
.notice-section h2 {
  margin: 0;
  color: #0f172a;
  font-weight: 650;
  letter-spacing: 0;
}

.notice-header h1 {
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.12;
}

.notice-summary,
.section-heading p {
  margin: 0.75rem 0 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
}

.notice-section {
  min-width: 0;
  border-bottom: 1px solid #e5e7eb;
}

.notice-section:last-child {
  border-bottom: 0;
}

.notice-section h2 {
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.info-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid #e5e7eb;
}

.info-list div {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) 1fr;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.info-list dt,
.info-list dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.info-list dt {
  color: #475569;
  font-weight: 650;
}

.info-list dd {
  color: #111827;
}

.info-list a {
  color: #0f172a;
  text-decoration-color: rgb(15 23 42 / 0.38);
  text-underline-offset: 0.22em;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  margin-bottom: 0.9rem;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading p {
  max-width: 26rem;
  color: #64748b;
  font-size: 0.82rem;
  text-align: right;
}

.notice-search {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.query-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
}

.query-field input {
  width: 100%;
  min-height: 2.35rem;
  padding: 0 0.75rem;
  color: #111827;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.35rem;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0;
}

.query-field input::placeholder {
  color: #94a3b8;
}

.date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  min-width: 0;
}

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

.notice-button {
  min-height: 2.35rem;
  padding: 0 0.9rem;
  color: #ffffff;
  background: #111827;
  border: 1px solid #111827;
  border-radius: 0.35rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.notice-button:hover {
  background: #1f2937;
}

.notice-button.secondary {
  color: #334155;
  background: #ffffff;
  border-color: #cbd5e1;
}

.notice-button.secondary:hover {
  background: #f1f5f9;
}

.notice-count {
  min-height: 1.2rem;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.table-wrap {
  color-scheme: light;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  scrollbar-color: #cbd5e1 #f8fafc;
  scrollbar-width: thin;
}

.table-wrap::-webkit-scrollbar {
  width: 0.75rem;
  height: 0.75rem;
}

.table-wrap::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 2px solid #f8fafc;
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-corner {
  background: #f8fafc;
}

.notice-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  color: #111827;
  background: #ffffff;
}

.notice-table th,
.notice-table td {
  padding: 0.78rem 0.85rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: left;
  vertical-align: middle;
}

.notice-table th {
  color: #475569;
  font-weight: 700;
  background: #f1f5f9;
}

.notice-table tbody tr:last-child td {
  border-bottom: 0;
}

.empty-notice {
  color: #64748b;
  text-align: center;
}

.notice-view .landing {
  overflow: hidden;
}

.notice-view .site-footer {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 3;
  width: min(calc(100% - 2.5rem), 76rem);
  margin: 0 auto 2rem;
}

@keyframes video-drift {
  0% {
    transform: translate3d(-1.4%, -0.8%, 0) scale(1.02);
  }

  50% {
    transform: translate3d(1.1%, 0.9%, 0) scale(1.07);
  }

  100% {
    transform: translate3d(-0.4%, 1.2%, 0) scale(1.04);
  }
}

@media (max-width: 760px) {
  .site-nav {
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
  }

  .email {
    padding-bottom: 12rem;
  }

  .site-footer {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: max(0.75rem, env(safe-area-inset-left));
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.8rem;
    max-height: 42vh;
    overflow: auto;
  }

  .legal-info {
    justify-content: flex-start;
    gap: 0.25rem 0.65rem;
    font-size: 0.68rem;
    text-align: left;
  }

  .notice-page {
    padding: 5.4rem 0.75rem 1rem;
  }

  .notice-board {
    border-radius: 0.45rem;
  }

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

  .notice-info-column {
    border-right: 0;
  }

  .notice-list-column {
    border-top: 1px solid #e5e7eb;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-heading p {
    text-align: left;
  }

  .date-fields {
    grid-template-columns: 1fr;
  }

  .notice-view .site-footer {
    width: calc(100% - 1.5rem);
    margin-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
}
