@charset "UTF-8";

/* ── 대표 컬러 · 폰트 ── */
:root {
  /* brand */
  --color-primary: #075271;
  --color-primary-rgb: 7, 82, 113;
  --color-primary-light: #e8f1f5;
  --color-primary-hover: #1c6788;
  --color-primary-dark: #0a6a8f;
  
  --color-primary-sub: #25a1bd;
  --color-primary-sub-hover: #4cb9d1;

  /* text */
  --color-text-strong: #000;
  --color-text-heading: #222;
  --color-view-imp: #333;
  --color-text-label: #555;
  --color-view: #666;
  --color-text-subtle: #888;
  --color-text-placeholder: #999;

  /* surface */
  --color-white: #fff;
  --color-bg-label: #f7f7f7;
  --color-bg-subtle: #f9fbfc;
  --color-bg-muted: #f5f5f5;
  --color-bg-placeholder: #f0f0f0;
  --color-bg-hover: #ebebeb;

  /* border */
  --color-border: #e5e5e5;
  --color-border-light: #eee;
  --color-border-md: #ddd;
  --color-border-strong: #dedede;
  --color-border-card: #dce5ea;
  --color-border-input: #ccc;

  /* link · accent */
  --color-link: #2563eb;
  --color-link-hover: #1d4ed8;
  --color-req: #fd4416;
  --color-icon-muted: #b0bec5;

  /* font scale: base 17px ~ min 12px */
  --font-base: 17px;
  --font-sm: 16px;
  --font-xs: 15px;
  --font-2xs: 14px;
  --font-3xs: 13px;
  --font-4xs: 12px;

  /* larger than base */
  --font-lg: 18px;
  --font-xl: 20px;
  --font-2xl: 22px;
  --font-lnb: 30px;
  --font-title: 36px;
  --font-title-md: 30px;
  --font-title-sm: 23px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-break: keep-all;
}

html,
body {
  max-width: 100%;
  min-height: 100%;
  font-size: var(--font-base);
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: none;
}

body {
  background: var(--color-white);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--color-view-imp);
  line-height: 1.5;
  letter-spacing: -0.5px;
}

ul,
li {
  list-style: none;
}

a {
  color: var(--color-view-imp);
  text-decoration: none;
}

button,
input,
select,
textarea {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: var(--font-base);
  color: var(--color-view-imp);
  font-weight: 300;
}

button {
  border: 0;
  cursor: pointer;
  background: transparent;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border-input);
  border-radius: 4px;
  background: var(--color-white);
}

input[type="date"]{
  max-width: 100%;
  min-width: 0;              /* iOS 최소너비 무시 */
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;	
}

textarea {
  height: auto;
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

input[type="radio"] {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

img {
  max-width: 100%;
  border: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--color-primary);
}

/* ── Layout helpers ── */
.container {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.wrapper {
  width: 1400px;
  max-width: 100%;
  margin: 0 auto;
}

.cf::before,
.cf::after {
  content: " ";
  display: table;
}

.cf::after {
  clear: both;
}

/* ── Site header ── */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  height: 70px;
}

.site-header .wrapper .site-logo img {
  height: 40px;
  margin-top: 5px;
}

.site-header .wrapper p {
  margin-left: 10px;
  font-size: var(--font-title-md);
  font-weight: 700;
}

/* ── Sub wrap ── */
.sub-wrap {
  padding-bottom: 50px;
}

/* ── Sub layout ── */
.sub-layout {
  margin-top: 40px;
}

/* ── Side LNB ── */
.sub-lnb {
  float: left;
  width: 260px;
  padding: 0;
  border: 1px solid var(--color-border-card);
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.06);
  overflow: hidden;
}

.sub-lnb-title {
  position: relative;
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.sub-lnb-title p {
  margin: 0;
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.depth2-list {
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--color-bg-subtle);
}

.depth2-item {
  position: relative;
  margin-bottom: 4px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.depth2-item:last-child {
  margin-bottom: 0;
}

.depth2-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  padding: 14px 16px 14px 20px;
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--color-text-label);
  line-height: 1.4;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.depth2-link .fa-chevron-right {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--color-icon-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.depth2-item:not(.active):hover .depth2-link {
  background: var(--color-white);
  color: var(--color-primary);
}

.depth2-item:not(.active):hover .depth2-link .fa-chevron-right {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-primary);
}

.depth2-item.active {
  background: var(--color-white);
  box-shadow: 0 1px 4px rgba(var(--color-primary-rgb), 0.1);
}

.depth2-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--color-primary);
}

.depth2-item.active .depth2-link {
  padding-left: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.depth2-item.active .depth2-link .fa-chevron-right {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-primary);
}

/* ── Sub contents ── */
.sub-contents {
  float: left;
  width: calc(100% - 260px);
  padding-left: 60px;
  padding-top: 15px;
}

/* ── Sub head ── */
.sub-head {
  margin-bottom: 40px;
  font-size: 0;
  border-bottom: 1px solid var(--color-border-strong);
  overflow: hidden;
}

.sub-title {
  position: relative;
  float: left;
  padding-bottom: 20px;
  font-size: var(--font-title);
  font-weight: 600;
  color: var(--color-text-strong);
  line-height: 1.2;
  letter-spacing: -0.05px;
}

.sub-title::after {
  display: block;
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  content: "";
  z-index: 1;
}

.sub-page-info {
  float: right;
  text-align: right;
}

.sub-breadcrumb {
  display: inline-block;
  vertical-align: middle;
  padding-top: 15px;
  padding-bottom: 10px;
}

.sub-breadcrumb-item {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.sub-breadcrumb-item ~ .sub-breadcrumb-item {
  margin-left: 35px;
}

.sub-breadcrumb-item ~ .sub-breadcrumb-item::before {
  content: "/";
  display: block;
  position: absolute;
  top: 4px;
  left: -20px;
  z-index: 1;
  font-size: var(--font-lg);
  font-weight: 400;
  color: var(--color-border-input);
  line-height: 1;
}

.sub-breadcrumb .menu {
  display: block;
  font-size: var(--font-lg);
  font-weight: 400;
  color: var(--color-text-subtle);
}

.sub-breadcrumb .menu.current {
  font-weight: 600;
  color: var(--color-view-imp);
}

.sub-breadcrumb .menu.home {
  width: 18px;
  height: 19px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 19' fill='none'%3E%3Cpath d='M1 7.5L9 1l8 6.5V17a1 1 0 0 1-1 1H11v-5H7v5H2a1 1 0 0 1-1-1V7.5z' stroke='%23333' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  font-size: 0;
}

/* ── Page 1: 모집요강 ── */
.contest-info {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.contest-info-box_image {
  flex: 0 0 220px;
}

.contest-info-box_image .poster-placeholder {
  width: 100%;
  background: var(--color-bg-placeholder);
  border: 1px solid var(--color-border-md);
  overflow: hidden;
}

.contest-info-box_image .poster-placeholder a {
  display: block;
  position: relative;   /* 아이콘 기준점 */
}

.contest-info-box_image .poster-placeholder img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.contest-info-box_image .poster-placeholder i {
  position: absolute;
  bottom: 0%;
  left: 93%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  color: #fff;
  pointer-events: none;   /* 클릭은 a가 받음 */
  z-index: 1;
}
/* 선택: 살짝 어둡게 + 호버 시 강조 */
.contest-info-box_image .poster-placeholder a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  transition: background 0.2s;
}
.contest-info-box_image .poster-placeholder a:hover::after {
  background: rgba(0, 0, 0, 0.25);
}

.contest-info-box_content {
  flex: 1;
}

.contest-info-name {
  margin-bottom: 20px;
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.4;
}

/*
.contest-info-list {
  margin-bottom: 20px;
}*/

.contest-info-item {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--font-base);
}

.contest-info-item:last-child {
  border-bottom: none;
}

.contest-info-title {
  flex: 0 0 90px;
  font-weight: 600;
  color: var(--color-view);
}

.contest-info-text {
  flex: 1;
  color: var(--color-view-imp);
}

.status-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: var(--font-2xs);
  font-weight: 600;
}

.contest-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.contest-btn-sns {
  display: flex;
  gap: 8px;
}

.contest-btn-sns .contest-btn {
  padding: 6px 12px;
  border: 1px solid var(--color-border-md);
  border-radius: 4px;
  background: var(--color-white);
  font-size: var(--font-3xs);
  color: var(--color-view);
}

.contest-btn-link {
  display: flex;
  gap: 10px;
}

.contest-action-bar {
  display: flex;
  justify-content: end;
  gap: 12px;
  /*margin: 30px 0 40px;*/
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 48px;
  padding: 0 24px;
  font-size: var(--font-sm);
  font-weight: 600;
  border-radius: 4px;
  transition: 0.2s;
}

.btn-primary {
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn-white {
  border: 1px solid var(--color-border-input);
  background: var(--color-white);
  color: var(--color-view-imp);
}

.btn-white:hover {
  background: var(--color-bg-muted);
}

.btn-dark {
  border: 1px solid var(--color-view-imp);
  background: var(--color-view-imp);
  color: var(--color-white);
}

.btn-dark:hover {
  background: var(--color-text-label);
  border-color: var(--color-text-label);
}

/* board-view table */
.board-view {
  border-top: 2px solid var(--color-view-imp);
}

.board-view-ul {
  border-bottom: 1px solid var(--color-border-input);
}

.board-view-li {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.board-view-li:last-child {
  border-bottom: none;
}

.board-view-inner {
  display: flex;
  width: 100%;
}

.board-view-inner .k {
  flex: 0 0 180px;
  padding: 16px 20px;
  background: var(--color-bg-label);
  font-size: var(--font-base);
  font-weight: 500;
  color: var(--color-text-label);
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.board-view-inner .v {
  flex: 1;
  padding: 16px 20px;
  font-size: var(--font-base);
  color: var(--color-view);
  line-height: 1.7;
  font-weight: 400;
}

.board-view-inner .v .txt {
  margin: 0;
}

.board-view-inner .v a {
  color: var(--color-link);
  text-decoration: underline;
}

/* 공모분야 및 출품규격 표 (board-view 톤) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.spec-table-wrap {
  margin-top: 12px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border-bottom: 1px solid var(--color-border);
  border-top: 2px solid var(--color-view-imp);
}

.spec-table th,
.spec-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-size: var(--font-base);
  color: var(--color-view);
  line-height: 1.7;
  vertical-align: middle;
}

.spec-table th:last-child,
.spec-table td:last-child {
  border-right: none;
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: none;
}

.spec-table thead th {
  background: var(--color-bg-label);
  font-weight: 600;
  color: var(--color-text-label);
  text-align: center;
}

.spec-table .cell-category {
  width: 72px;
  background: var(--color-bg-label);
  font-weight: 600;
  color: var(--color-text-label);
  text-align: center;
}

.spec-table .category-label {
  display: inline-block;
  line-height: 1.4;
}

.spec-table .cell-qty {
  width: 110px;
  background: var(--color-white);
  font-weight: 400;
  color: var(--color-view);
  text-align: center;
}

.spec-table .cell-detail {
  background: var(--color-white);
  text-align: left;
  vertical-align: top;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding-left: 0;
}

.info-list li.note {
  padding-left: 1em;
  color: var(--color-view);
}

/*.board-view-inner .v > .txt + .info-list {
  margin-top: 0.35em;
}*/

.board-view-inner .v .info-list .info-list {
  margin-top: 0;
  padding-left: 1em;
}

.board-view-inner .v .info-list .info-list .info-list {
  padding-left: 1em;
}

.spec-table .cell-detail a {
  word-break: break-all;
}

/* 유의사항 */
.notice-text {
  font-size: var(--font-base);
  line-height: 1.7;
  color: var(--color-view);
}

.notice-intro {
  margin: 0;
}

.notice-section {
  margin-top: 1em;
}

.notice-section:last-of-type {
  margin-bottom: 1em;
}

.notice-heading {
  margin: 0 0 0.4em;
  font-weight: 600;
}

.notice-text .info-list .info-list {
  margin-top: 0.35em;
}

/* ── Page 2 & 3: Form ── */
.form-required-note {
  margin-bottom: 12px;
  text-align: right;
  font-size: var(--font-sm);
  color: var(--color-primary);
}

.form-required-note .req {
  font-weight: 700;
  color: var(--color-req);
}

.form-table {
  width: 100%;
  border-top: 2px solid var(--color-view-imp);
  border-collapse: collapse;
}

.form-table th,
.form-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-md);
  vertical-align: middle;
  font-size: var(--font-base);
}

.form-table th {
  width: 180px;
  background: var(--color-bg-label);
  font-weight: 500;
  color: var(--color-text-label);
  text-align: center;
}

.form-table td {
  background: var(--color-white);
  font-weight: 300;
}

.form-table .req-mark {
  color: var(--color-req);
  font-weight: 700;
}

.form-table .readonly {
  color: var(--color-view-imp);
}

.form-table .form-note,
.form-table .form-input-note {
  font-size: var(--font-sm);
  color: var(--color-primary);
}

.form-table .form-note {
  margin-top: 8px;
}

.form-table .imp {
  color: var(--color-req);
}	

.form-table .form-note-gray {
  margin-top: 6px;
  font-size: var(--font-3xs);
  color: var(--color-text-subtle);
}


.type-select-row select {
  flex: 0 0 auto;
  width: auto;
  min-width: 120px;
}

.type-select-row .form-note-gray {
  margin-top: 0;
}

.form-row-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row-inline input,
.form-row-inline select {
  flex: 1;
}

.form-row-inline .at {
  flex: 0 0 auto;
  color: var(--color-view);
}

.form-row-inline .dash {
  flex: 0 0 auto;
  color: var(--color-text-placeholder);
}

.form-row-inline .phone-prefix {
  flex: 0 0 100px;
}

.form-row-inline .phone-part {
  flex: 0 0 100px;
}

.form-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-address-row {
  display: flex;
  gap: 8px;
}

.form-address-row input.zip {
  flex: 0 0 160px;
}

.btn-zip {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  background: var(--color-primary-sub);
  color: var(--color-white);
  font-size: var(--font-2xs);
  font-weight: 600;
  border-radius: 4px;
}

.btn-zip:hover,
.btn-remain-check:hover {
  background: var(--color-primary-sub-hover);
}

.radio-group {
  display: flex;
  gap: 24px;
}

.radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: var(--font-base);
}

.date-input-wrap {
  position: relative;
}

/*.date-input-wrap input {
  padding-right: 40px;
}*/

.date-input-wrap .calendar-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0.5;
}

.date-input-wrap,
.type-input-wrap {
  max-width: 347px;
}

/* download links */
.download-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--color-view-imp);
  font-weight: 300;
}

.download-list li.note {
	color: var(--color-view-imp);
}

.download-list a {
  display: inline-block;
  width: auto;
  align-self: flex-start;
  color: var(--color-view);
  font-size: var(--font-base);
  font-weight: 300;
}

.download-list a.button {
	display: inline-block;
    background: var(--color-primary-sub);
    color: var(--color-white);
    text-decoration: none;
    height: 25px;
    padding: 0 6px;
    font-size: var(--font-3xs);
    font-weight: 500;
    border-radius: 4px;
    line-height: 25px;
}

.download-list a.button:hover {
	background: var(--color-primary-sub-hover);
}

/* file upload */
.file-wrap .file-upload-list + .file-upload-list {
  margin-top: 10px;
}

.file-wrap .file-wrap-note {
  margin: 0 0 20px 0;
}

.remain-check-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
}

.remain-check-bar > .file-size {
  margin: 0;
  line-height: 25px;
  color: var(--color-view-imp);
  white-space: nowrap;
}

.remain-check-bar .file-size-remain {
  color: var(--color-primary);
  font-weight: 600;
}

.remain-check-bar > .btn-remain-check {
  flex-shrink: 0;
}

.remain-check-bar > .remain-check-result {
  margin: 0;
  padding: 0;
  font-size: var(--font-2xs);
  font-weight: 600;
  line-height: 25px;
  white-space: nowrap;
}

.remain-check-bar > .remain-check-result[hidden] {
  display: none;
}

.remain-check-bar > .remain-check-result.is-error {
  color: #c0392b;
}

.btn-remain-check {
  display: inline-block;
  height: 25px;
  padding: 0 14px;
  border: 1px solid var(--color-primary-sub);
  background: var(--color-primary-sub);
  color: var(--color-white);
  font-size: var(--font-4xs);
  font-weight: 500;
  border-radius: 4px;
  line-height: 25px;
  cursor: pointer;
  user-select: none;
}

.file-upload-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-upload[hidden],
.photo-upload[hidden] {
  display: none;
}

.file-upload-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.file-upload-item .file-label {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
  font-size: var(--font-base);
  color: var(--color-text-label);
  font-weight: 500;
  line-height: 1.5;
}

.file-upload-item .file-label .sub {
  font-size: var(--font-2xs);
  padding-left: 1em;
}

.file-upload-item .file-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 280px;
  max-width: 100%;
}

.btn-file {
  flex: 0 0 auto;
  height: 25px;
  padding: 0 14px;
  border: 1px solid var(--color-border-input);
  background: var(--color-bg-muted);
  font-size: var(--font-3xs);
  font-weight: 500;
  border-radius: 4px;
  line-height: 25px;
  cursor: pointer;
}

.video-upload .btn-file:has(input:disabled),
.video-upload .btn-file.is-disabled,
.photo-upload .btn-file:has(input:disabled),
.photo-upload .btn-file.is-disabled {
  cursor: default;
  pointer-events: none;
  color: #999;
  background: #e5e5e5;
  border-color: #d0d0d0;
}

.file-name {
  font-size: var(--font-3xs);
  color: var(--color-text-placeholder);
}

.file-name.upload {
  color: var(--color-text-heading);
}

.file-size {
  font-size: var(--font-2xs);
  margin: 0;
  color: var(--color-view-imp);
}

/* form buttons */
.form-btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.btn-submit {
  min-width: 120px;
  height: 48px;
  padding: 0 32px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-sm);
  font-weight: 600;
  border-radius: 4px;
}

.btn-submit:hover {
  background: var(--color-primary-hover);
}

.btn-cancel {
  min-width: 120px;
  height: 48px;
  padding: 0 32px;
  border: 1px solid var(--color-border-input);
  background: var(--color-white);
  color: var(--color-view-imp);
  font-size: var(--font-sm);
  font-weight: 600;
  border-radius: 4px;
}

.btn-cancel:hover {
  background: var(--color-bg-muted);
}

/* ── Page 3: 조회 결과 ── */
.result-section {
  margin-top: 50px;
}

.result-title {
  margin-bottom: 16px;
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--color-text-heading);
}

.result-empty {
  margin-bottom: 16px;
  font-size: var(--font-base);
  color: var(--color-view-imp);
  text-align: center;
}

.result-table {
  width: 100%;
  border-top: 2px solid var(--color-view-imp);
  border-collapse: collapse;
}

.result-table thead th {
    padding: 14px 12px;
    background: var(--color-bg-label);
    border-bottom: 1px solid var(--color-border-md);
    font-size: var(--font-base);
    font-weight: 500;
    color: var(--color-text-label);
    text-align: center;
}

.result-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-base);
  color: var(--color-view-imp);
  text-align: center;
  font-weight: 300;
}

.result-table .link-download {
  color: var(--color-view);
  text-decoration: underline;
  font-size: var(--font-3xs);
}

.result-table .link-download:hover {
  color: var(--color-link-hover);
}

.result-table .work-cell {
  min-width: 280px;
  vertical-align: top;
}

.work-files {
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-file-name {
  display: block;
  font-size: var(--font-2xs);
  color: var(--color-view-imp);
  word-break: break-all;
  line-height: 1.5;
}

.work-file-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.work-file-actions .link-preview,
.result-table .link-download {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-link);
  font-size: var(--font-3xs);
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
}

.work-file-actions .link-preview:hover,
.result-table .link-download:hover {
  color: var(--color-link-hover);
}

.work-file-divider {
  color: var(--color-border-input);
  font-size: var(--font-3xs);
  user-select: none;
}

/* 작품 미리보기 모달 */
body.preview-open {
  overflow: hidden;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.preview-modal[hidden] {
  display: none;
}

.preview-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.preview-modal-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-label);
}

.preview-modal-title {
  margin: 0;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--color-text-heading);
  word-break: break-all;
}

.preview-modal-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--color-view);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.preview-modal-close:hover {
  background: var(--color-bg-muted);
  color: var(--color-view-imp);
}

.preview-modal-body {
  padding: 16px;
  background: #1a1a1a;
  text-align: center;
  overflow: auto;
  max-height: calc(100vh - 140px);
}

.preview-modal-body video,
.preview-modal-body img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  margin: 0 auto;
}

.preview-modal-body video {
  width: 100%;
  background: #000;
}

/* 잔여용량 확인 본인정보 모달 */
body.remain-modal-open {
  overflow: hidden;
}

.remain-identity-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.remain-identity-modal[hidden] {
  display: none;
}

.remain-identity-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.remain-identity-dialog {
  position: relative;
  width: min(480px, 100%);
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.remain-identity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-label);
}

.remain-identity-title {
  margin: 0;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--color-text-heading);
}

.remain-identity-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--color-view);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.remain-identity-close:hover {
  background: var(--color-bg-muted);
  color: var(--color-view-imp);
}

.remain-identity-body {
  padding: 20px 18px;
}

.remain-identity-desc {
  margin: 0 0 16px;
  font-size: var(--font-2xs);
  color: var(--color-view-imp);
  line-height: 1.5;
}

.remain-identity-field {
  margin-bottom: 14px;
}

.remain-identity-field:last-child {
  margin-bottom: 0;
}

.remain-identity-field label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--font-2xs);
  font-weight: 500;
  color: var(--color-text-label);
}

.remain-identity-field input[type="text"],
.remain-identity-field input[type="date"],
.remain-identity-field select {
  width: 100%;
}

.remain-identity-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px 20px;
  border-top: 1px solid var(--color-border);
}

.remain-identity-footer .btn-submit,
.remain-identity-footer .btn-cancel {
  min-width: 100px;
  height: 40px;
  padding: 0 24px;
  font-size: var(--font-2xs);
}

/* ── Footer ── */
.page-footer {
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--font-2xs);
  color: var(--color-text-subtle);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .sub-contents {
    padding-left: 50px;
  }
}

@media (max-width: 1024px) {
  .sub-lnb {
    display: none !important;
  }

  .sub-contents {
    width: 100%;
    padding-left: 0;
    padding-top: 0;
  }
}

@media (max-width: 768px) {	
  .contest-info-name {
	font-size: var(--font-xl);
  }
	
  .sub-title {
    padding-bottom: 15px;
    font-size: var(--font-title-md);
  }

  .sub-breadcrumb .menu.home {
    width: 16px;
    height: 17px;
  }
  
  .contest-info-item,
  .sub-breadcrumb .menu,
  .board-view .board-view-inner .k,
  .board-view .board-view-inner .v,
  .board-view .board-view-inner .v .txt,
  .board-view .notice-text,
  .board-view .notice-heading,
  .board-view .info-list li,
  .board-view .spec-table th,
  .board-view .spec-table td,
  .board-view .download-list,
  .form-table th,
  .form-table td,
  .radio-group label,
  .download-list a,
  .file-upload-item .file-label,
   button, input, select, textarea{
    font-size: var(--font-sm);
  }
  
  .form-table .form-input-note,
  .form-table .form-note,
  .form-required-note,
  .file-size {
	font-size: var(--font-xs);
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .board-view-inner {
    flex-direction: column;
  }

  .board-view-inner .k {
    flex: none;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 16px;
  }

  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
  }

  .form-table th {
    border-bottom: none;
    padding-bottom: 8px;
  }
  
  .form-table td .readonly {
	font-size: var(--font-base);
  }

  .result-table {
    display: block;
    overflow-x: auto;
  }

  .spec-table-wrap {
    overflow-x: auto;
  }

  .spec-table {
    min-width: 500px;
  }
  
  .btn {
	font-size: var(--font-xs);
	height: 45px;
  }
  
  .spec-table th, .spec-table td {
	padding: 10px 12px;
  }
  
  .date-input-wrap, .type-input-wrap {
	max-width: 100%;
  }
}

@media (max-width: 550px) {
  .sub-layout {
    margin-top: 25px;
  }

  .sub-head {
    margin-bottom: 30px;
  } 
	
  .contest-info-name {
	margin-bottom: 10px;
  }
	
  .contest-info.view {
    flex-direction: column;
    gap:30px;
  }

  .contest-info.view .contest-info-box_image {
    flex: none;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .file-upload-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-bg-label);
  }

  .file-upload-item.video-upload,
  .file-upload-item:last-of-type {
    border-bottom: none;
  }

  .file-upload-item .file-label {
    order: -1;
    flex: none;
  }

  .file-upload-item .file-input-wrap {
    order: 1;
    flex: none;
    width: 100%;
  }
}

@media (max-width: 425px) {
  .site-header .wrapper {
   height: 55px;
  }
    
  .site-header .wrapper .site-logo img {
    height: 30px;
  } 
  
  .site-header .wrapper p {
   font-size: var(--font-title-sm);
  } 
	
  .board-view .download-list a.button {
    height: 23px;
    line-height: 23px;
  }
  
  .sub-breadcrumb-item ~ .sub-breadcrumb-item {
    margin-left: 20px;
  }

  .sub-breadcrumb-item ~ .sub-breadcrumb-item::before {
    top: 3px;
    left: -14px;
    font-size: var(--font-sm);
  }

  .sub-breadcrumb .menu {
    font-size: var(--font-2xs);
  }

  .sub-breadcrumb .menu.home {
    width: 13px;
    height: 14px;
  }

  .sub-title {
    font-size: var(--font-title-sm);
  }

  .contest-action-bar {
    flex-direction: column;
    align-items: stretch;
	margin-top: 10px;
  }

  .btn {
    width: 100%;
  }
  
  .file-upload-list {
    gap: 10px;
  }
 
  .form-table .form-note {
	margin-top: 15px;
  }
  
  .form-row-inline .phone-prefix,
  .form-row-inline .phone-part {
	flex: 1;
  }
}

@media (max-width: 375px) {
  .board-view .download-list a.button {
    font-size: var(--font-4xs);
  }	
	
  .contest-info-item,
  .sub-breadcrumb .menu,
  .board-view .board-view-inner .k,
  .board-view .board-view-inner .v,
  .board-view .board-view-inner .v .txt,
  .board-view .notice-text,
  .board-view .notice-heading,
  .board-view .info-list li,
  .board-view .spec-table th,
  .board-view .spec-table td,
  .board-view .download-list,
  .form-table th,
  .form-table td,
  .radio-group label,
  .download-list a,
  .file-upload-item .file-label,
   button, input, select, textarea{
    font-size: var(--font-xs);
  }
  
  .btn {
	height: 40px;
  }
}

@media (max-width: 320px) {
  .contest-info-name{
	font-size: var(--font-lg);
  }
	
  .contest-info-item,
  .sub-breadcrumb .menu,
  .board-view .board-view-inner .k,
  .board-view .board-view-inner .v,
  .board-view .board-view-inner .v .txt,
  .board-view .notice-text,
  .board-view .notice-heading,
  .board-view .info-list li,
  .board-view .spec-table th,
  .board-view .spec-table td,
  .board-view .download-list{
    font-size: var(--font-2xs);
  } 
}

@media print {
  .site-header,
  .sub-lnb,
  .page-footer,
  .contest-btn-sns,
  .contest-action-bar,
  .form-btn-group {
    display: none !important;
  }

  .sub-contents {
    width: 100%;
    padding-left: 0;
  }
}
