﻿@font-face {
  font-family: "Paperlogy";
  src: url("../fonts/Paperlogy-8ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f5f7fb;
  --text: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --primary: #2563eb;
  --card: #ffffff;
  --header-overlay: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.top-header {
  position: relative;
  background: #0f172a;
  color: #fff;
  padding: 90px 24px;
  text-align: center;
  overflow: hidden;
}

.top-header-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  z-index: 0;
  transform: scale(1.45);
  transform-origin: center center;
}

.top-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--header-overlay);
}

.top-header-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.top-header h1 {
  font-size: clamp(2.35rem, 3.8vw, 3.35rem);
  margin-bottom: 8px;
  line-height: 1.2;
  font-family: "Paperlogy", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 800;
  letter-spacing: 0.012em;
}

.hero-subtitle {
  font-size: clamp(0.82rem, 1.15vw, 0.95rem);
  letter-spacing: 0.06em;
  text-transform: none;
  opacity: 0.9;
  margin-bottom: 14px;
}

.ai-highlight {
  color: inherit;
}

.top-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.top-meta span,
.top-meta button,
.top-meta a {
  border: 0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.95rem;
}

.top-meta span {
  background: rgba(255, 255, 255, 0.22);
}

.top-meta .count {
  background: rgba(0, 0, 0, 0.24);
}

.top-meta .share-btn {
  cursor: pointer;
  background: #fff;
  color: #111827;
  font-weight: 600;
}

.top-meta .apply-btn {
  display: inline-flex;
  align-items: center;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.tabs ul {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  list-style: none;
  display: flex;
  gap: 22px;
  overflow-x: auto;
}

.tabs a {
  display: block;
  padding: 14px 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.tabs a.active,
.tabs a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.main-content {
  max-width: 1100px;
  margin: 26px auto;
  padding: 0 16px;
}

.content-area {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.section + .section {
  margin-top: 28px;
}

.section h2 {
  margin-bottom: 10px;
  color: #1e3a8a;
  font-size: 1.4rem;
}

.section ul {
  padding-left: 20px;
}

.section p + ul {
  margin-top: 12px;
}

.section li {
  margin-bottom: 6px;
}

.overview-tabs {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.overview-tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}

.overview-tabs .admin-hidden-tab {
  margin-left: auto;
}

.overview-tabs .admin-hidden-tab a {
  opacity: 0.08;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.overview-tabs .admin-hidden-tab a:hover {
  opacity: 0.45;
}

.overview-tabs a {
  display: inline-block;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 3px solid transparent;
}

.overview-tabs a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.overview-section.is-hidden {
  display: none;
}

footer {
  margin-top: 40px;
  background: #ffffff;
  color: #111827;
  text-align: center;
  padding: 18px 12px;
  border-top: 1px solid #e5e7eb;
}

.institutional-banner {
  margin: 4px auto 14px;
}

.institutional-banner img {
  width: min(920px, 96%);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.overview-org-banner {
  margin-top: 10px;
  text-align: center;
}

.overview-org-banner img {
  width: min(860px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

footer a {
  color: #111827;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 100;
  background: #111827;
  color: #f9fafb;
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 240px;
  text-align: center;
  font-size: 0.88rem;
  opacity: 0;
  transform: translate(-50%, -40%);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.card + .card {
  margin-top: 14px;
}

.control-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.input,
.file-input,
.btn {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 0.94rem;
}

.btn {
  cursor: pointer;
  background: #f8fafc;
  color: #111827;
  font-weight: 600;
}

.btn.primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

th {
  background: #f8fafc;
  color: #334155;
}

.muted {
  color: #6b7280;
  font-size: 0.88rem;
}

.formula-image-wrap {
  margin: 14px 0;
  text-align: center;
}

.formula-image {
  width: min(340px, 100%);
  height: auto;
}

.is-hidden {
  display: none !important;
}

.data-intro {
  margin-bottom: 12px;
}

.data-grid-card {
  padding: 0;
  overflow: hidden;
}

.data-file-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px 0;
  background: #edf4ff;
  border-bottom: 1px solid #d6e4ff;
  overflow-x: auto;
}

.data-file-tab {
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #5b6475;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.data-file-tab.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #d1d5db;
}

.data-grid-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.data-toolbar-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.data-toolbar-right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.data-status {
  padding: 10px 12px 0;
}

.data-grid-preview {
  padding: 8px 12px 12px;
}

.data-grid-preview .table-wrap {
  margin-top: 0;
  border: 1px solid #dbe1ea;
  border-radius: 8px;
}

.data-grid-preview table {
  font-size: 0.88rem;
}

.data-info-root {
  list-style-type: disc;
  padding-left: 20px;
}

.data-info-root > li {
  margin-bottom: 10px;
}

.data-info-sub {
  list-style-type: circle;
  padding-left: 24px;
  margin-top: 6px;
}

.data-info-sub > li {
  margin-bottom: 4px;
}

.notice-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.notice-title-btn {
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.notice-title-btn:hover {
  color: #1d4ed8;
}

.notice-pin {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
}

.notice-preview {
  margin-top: 8px;
  color: #475569;
  font-size: 0.92rem;
}

.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.notice-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.notice-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 18px 18px 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.notice-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #1f2937;
  padding: 4px 9px;
  cursor: pointer;
}

.notice-modal-content {
  margin-top: 10px;
  color: #0f172a;
  line-height: 1.65;
}

.submit-center {
  text-align: center;
}

.submit-form-card {
  max-width: 520px;
  margin: 0 auto;
}

.field-row {
  margin-bottom: 10px;
  justify-content: center;
}

.field-row label {
  width: 80px;
  text-align: right;
}

.field-row .input,
.field-row .file-input {
  width: 260px;
}

.submit-btn {
  margin-top: 6px;
}

.submit-result-card {
  max-width: 520px;
  margin: 12px auto 0;
}

.leaderboard-table th,
.leaderboard-table td {
  text-align: center;
}

@media (max-width: 720px) {
  .top-header {
    padding: 68px 16px;
  }

  .content-area {
    padding: 18px;
  }

  .data-grid-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .field-row label {
    width: 100%;
    text-align: left;
  }

  .field-row .input,
  .field-row .file-input {
    width: 100%;
  }
}




