/* 팝업스토어 참가 안내: 원문의 내용은 유지하고 정보의 단계와 읽는 순서를 정리한다. */
.sm-page:has(.sm-apply-layout) .sm-page__head { border-bottom: 0; margin-bottom: 28px; padding: 16px 0 8px; }
.sm-page:has(.sm-apply-layout) .sm-page__head .sm-kicker { font-size: 14px; letter-spacing: .04em; margin-bottom: 16px; }
.sm-page:has(.sm-apply-layout) .sm-page__head h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.2; }
.sm-page:has(.sm-apply-layout) .sm-page__desc { margin-top: 18px; line-height: 1.8; font-size: 17px; }
.sm-apply-layout { --apply-line: #d6d2ce; --apply-paper: #fffefa; --apply-muted: #f1ede7; }
.sm-apply-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--apply-line); margin-bottom: 32px; padding: 16px 0; }
.sm-apply-nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--apply-line); border-radius: 6px; background: var(--apply-paper); font-size: 15px; font-weight: 700; text-decoration: none; color: var(--ink-2); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.sm-apply-nav a::after { content: ''; flex: none; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--accent-deep); border-bottom: 2px solid var(--accent-deep); transform: rotate(45deg); }
.sm-apply-nav a:hover, .sm-apply-nav a:focus-visible { color: var(--accent-deep); border-color: var(--accent-deep); background: var(--accent-100); }
.sm-apply-nav a:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.sm-apply-nav a:active { background: var(--apply-muted); }
@media (prefers-reduced-motion: reduce) {
  .sm-apply-nav a { transition: none; }
}
.sm-apply-jump { margin: 0 0 28px; }
.sm-apply-guide { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; counter-reset: guide; line-height: 1.85; color: var(--ink-2); }
.sm-apply-guide > section { padding: clamp(24px, 2.8vw, 36px); border: 1px solid var(--apply-line); background: var(--apply-paper); scroll-margin-top: 88px; }
.sm-apply-guide h2 { display: flex; gap: 12px; align-items: baseline; color: var(--ink); font-size: 22px; line-height: 1.4; margin-bottom: 20px; letter-spacing: -.04em; }
.sm-apply-guide h2::before { counter-increment: guide; content: counter(guide, decimal-leading-zero); font: 600 14px var(--font-num); color: var(--accent-deep); flex: none; }
.sm-apply-guide li + li { margin-top: 10px; }
.sm-apply-guide li::marker { color: var(--accent-deep); font-weight: 700; }
.sm-apply-guide p + p { margin-top: 16px; }
.sm-apply-guide strong { color: var(--ink); }
.sm-apply-guide .sm-facts { border-top: 0; margin-top: 0; }
.sm-apply-guide .sm-facts > div { grid-template-columns: 90px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-color: var(--apply-line); }
.sm-apply-guide .sm-facts > div:first-child { padding-top: 0; }
.sm-apply-guide .sm-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.sm-apply-guide .sm-facts dt { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.sm-apply-guide .sm-facts dd { font-size: 16px; line-height: 1.75; font-weight: 600; }
/* 모집 소개와 상세 정보가 같은 너비를 사용하도록 정렬한다. */
.sm-apply-guide .sm-apply-overview { grid-column: 1 / -1; border-top: 3px solid var(--accent); }
.sm-apply-overview > .sm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; margin-top: 24px; }
.sm-apply-overview .sm-facts > div,
.sm-apply-overview .sm-facts > div:first-child,
.sm-apply-overview .sm-facts > div:last-child { padding: 16px 0; border-bottom: 1px solid var(--apply-line); }
.sm-apply-overview .sm-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.sm-apply-overview .sm-facts > div:nth-child(5) dd { color: var(--accent-deep); }
/* 상품 예시와 참가에 필요한 지역특산물 사용 요건을 구분한다. */
.sm-apply-required, .sm-apply-address { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--apply-line); background: var(--apply-muted); }
.sm-apply-required h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.sm-apply-required p { margin: 0; overflow-wrap: anywhere; }
.sm-apply-produce-title { margin: 24px 0 16px; font-size: 17px; color: var(--ink); }
.sm-apply-produce dd { overflow-wrap: anywhere; }
.sm-apply-documents ol { list-style: none; padding: 0; counter-reset: documents; }
.sm-apply-documents ol li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--apply-line); }
.sm-apply-documents ol li + li { margin-top: 0; }
.sm-apply-documents ol li::before { counter-increment: documents; content: counter(documents); position: absolute; left: 0; top: 20px; font: 700 15px var(--font-num); color: var(--accent-deep); flex: none; }

/* 접수 방식과 실제 제출 주소를 별도 정보 묶음으로 정리한다. */
.sm-apply-documents .sm-apply-methods-title { margin: 28px 0 6px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.sm-apply-methods { margin: 0; }
.sm-apply-methods > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--apply-line); }
.sm-apply-methods dt { font-size: 16px; font-weight: 700; color: var(--ink); }
.sm-apply-methods dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.sm-apply-address h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.sm-apply-address p { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.sm-apply-documents .sm-apply-contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 18px 0 0; font-size: 15px; }
.sm-apply-contact > span { color: var(--ink-3); }
.sm-apply-contact a { font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 1000px) {
  .sm-apply-methods > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.sm-apply-guide .sm-apply-schedule { grid-column: 1 / -1; }
.sm-apply-schedule ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; padding-left: 0; }
.sm-apply-schedule li { border-left: 2px solid var(--accent); padding: 2px 0 2px 18px; }
.sm-apply-schedule li + li { margin-top: 0; }
.sm-apply-schedule li strong { display: block; margin-bottom: 6px; color: var(--accent-deep); }
.sm-apply-guide .sm-apply-selection, .sm-apply-guide .sm-apply-review, .sm-apply-guide .sm-apply-cautions { grid-column: 1 / -1; }
.sm-apply-evaluation { margin-top: 24px; line-height: 1.7; border-top: 2px solid var(--ink); }
.sm-apply-evaluation th, .sm-apply-evaluation td { border: 0; border-bottom: 1px solid var(--apply-line); padding: 16px 18px; vertical-align: middle; }
.sm-apply-evaluation thead th { background: var(--apply-muted); font-size: 14px; color: var(--ink-3); font-weight: 600; }
.sm-apply-evaluation th:first-child { width: 25%; }
.sm-apply-evaluation th:nth-child(2), .sm-apply-evaluation td:nth-child(2) { width: 12%; text-align: center; }
.sm-apply-evaluation tbody th { font-weight: 600; color: var(--ink); }
.sm-apply-evaluation tbody td:nth-child(2) { color: var(--accent-deep); font-weight: 800; font-family: var(--font-num); font-size: 19px; }
.sm-apply-evaluation tfoot th, .sm-apply-evaluation tfoot td { background: var(--apply-muted); font-weight: 700; font-size: 14px; }
.sm-apply-guide .sm-apply-review { background: var(--ink); border-color: var(--ink); color: #e5e0da; }
.sm-apply-review h2 { color: #fffefa; }
.sm-apply-review h2::before { color: #ffac99; }
.sm-review-ratio { display: grid; grid-template-columns: 3fr 2fr; margin: 24px 0; }
.sm-review-ratio span { min-width: 0; padding: 14px 18px; background: #f3a08b; color: var(--ink); font-size: 16px; font-weight: 700; }
.sm-review-ratio span + span { background: #e2d8c4; }
.sm-review-ratio b { display: block; margin-top: 4px; font: 800 26px var(--font-num); }
.sm-apply-review .sm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sm-apply-review .sm-facts > div { display: flex; flex-direction: column; gap: 8px; padding: 0 20px; border: 0; border-left: 1px solid #615b56; }
.sm-apply-review .sm-facts > div:first-child { padding-left: 0; border-left: 0; }
.sm-apply-review .sm-facts dt { color: #ddd6ce; }
.sm-apply-review .sm-facts dd { color: #fffefa; font-size: 32px; font-family: var(--font-num); font-weight: 800; }
.sm-apply-guide .sm-apply-benefits { grid-column: 1 / -1; background: var(--apply-muted); }
.sm-apply-benefits ul { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; padding-left: 20px; }
.sm-apply-benefits li + li { margin-top: 0; }
.sm-apply-guide .sm-apply-cautions { background: transparent; }
.sm-apply-cautions ul { font-size: 16px; }
.sm-apply-layout > :is(.sm-alert, .sm-notice-box) { padding: clamp(14px, 3vw, 22px) clamp(16px, 3.5vw, 26px); font-size: 16px; line-height: 1.85; }
.sm-apply-layout > .sm-notice-box { border: 1px solid var(--rule); }
.sm-apply-layout #applyForm { max-width: none; gap: 24px; }
.sm-apply-layout #applyForm > .sm-form__section { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--apply-line); background: var(--apply-paper); }
.sm-apply-layout #applyForm h2 { font-size: 24px; margin-bottom: 24px; }
.sm-apply-layout #applyForm .sm-row { gap: 24px; }
.sm-apply-layout #applyForm .sm-field { margin-bottom: 22px; gap: 10px; }
.sm-apply-layout #applyForm .sm-input { background: #fff; min-height: 54px; border-color: #857f7a; border-radius: 0; }
.sm-apply-layout #applyForm .hint { font-size: 15px; line-height: 1.7; }
.sm-apply-layout #applyForm .sm-check { padding: 20px; background: #fff; border-color: var(--apply-line); font-size: 16px; line-height: 1.8; }
.sm-apply-layout #applyForm .sm-form__actions { width: 100%; margin: 0; }
@media (max-width: 1000px) {
  .sm-apply-guide { gap: 18px; font-size: 16px; }
  .sm-apply-overview > .sm-facts { grid-template-columns: minmax(0, 1fr); }
  .sm-apply-overview .sm-facts > div:nth-last-child(2) { border-bottom: 1px solid var(--apply-line); }
}
@media (max-width: 760px) {
  .sm-apply-guide { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sm-apply-guide > section { padding: 24px 20px; }
  .sm-apply-guide h2 { font-size: 20px; gap: 10px; }
  .sm-apply-nav { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 0; margin-bottom: 24px; }
  .sm-apply-nav a { padding: 10px 12px; }
  .sm-apply-guide .sm-facts > div { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .sm-apply-guide .sm-facts dt { font-size: 14px; }
  .sm-apply-guide .sm-facts dd { font-size: 16px; font-weight: 500; }
  .sm-apply-evaluation { display: block; border-top: 0; }
  .sm-apply-evaluation thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .sm-apply-evaluation tbody, .sm-apply-evaluation tfoot { display: block; }
  .sm-apply-evaluation tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 18px 0; border-top: 1px solid var(--apply-line); }
  .sm-apply-evaluation th, .sm-apply-evaluation td { display: block; padding: 0; border: 0; background: transparent; }
  .sm-apply-evaluation th:first-child, .sm-apply-evaluation td:nth-child(2) { width: auto; }
  .sm-apply-evaluation td:nth-child(2) { min-width: 52px; }
  .sm-apply-evaluation td:nth-child(3) { grid-column: 1 / -1; font-size: 16px; }
  .sm-apply-evaluation tfoot { background: var(--apply-muted); padding: 0 12px; }
  .sm-apply-evaluation tfoot tr { border: 0; }
  .sm-review-ratio span { padding: 14px 8px; font-size: 14px; }
  .sm-apply-review .sm-facts { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .sm-apply-review .sm-facts > div { padding: 0 12px; }
  .sm-apply-review .sm-facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .sm-apply-review .sm-facts dd { font-size: 28px; font-weight: 800; }
  .sm-apply-benefits ul { grid-template-columns: 1fr; gap: 12px; }
  .sm-apply-schedule ul { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sm-apply-layout #applyForm .sm-check { padding: 16px; }
}
@media print {
  .sm-apply-nav, .sm-apply-jump { display: none; }
  .sm-apply-guide { display: block; }
  .sm-apply-guide > section { margin-bottom: 18px; break-inside: avoid; }
}

/* 서류별 첨부: 긴 파일명도 모바일 너비 안에서 표시한다. */
.sm-upload-help { font-size: 16px; line-height: 1.8; color: var(--ink-2); margin-bottom: 20px; }
.sm-upload-list { display: grid; gap: 16px; }
.sm-upload-field { min-width: 0; padding: 20px; border: 1px solid var(--apply-line); border-radius: 6px; background: var(--apply-paper); }
.sm-upload-field label { display: block; font-size: 17px; font-weight: 700; line-height: 1.6; }
.sm-upload-field .hint { margin: 6px 0 12px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.sm-upload-field input[type="file"] { display: block; width: 100%; min-width: 0; min-height: 46px; font: inherit; font-size: 15px; color: var(--ink-2); }
.sm-upload-field input::file-selector-button { min-height: 44px; margin-right: 12px; padding: 8px 14px; border: 1px solid var(--apply-line); border-radius: 4px; background: var(--apply-muted); color: var(--ink); font: inherit; cursor: pointer; }
.sm-upload-field input:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 4px; }
.sm-upload-field input[aria-invalid="true"] { outline: 2px solid var(--accent-deep); }
.sm-upload-error, .sm-upload-reselect { color: var(--accent-deep); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.sm-upload-error:empty { display: none; }
.sm-upload-reselect { margin-bottom: 16px; font-weight: 700; }
@media (max-width: 760px) { .sm-upload-field { padding: 16px; } }
.sm-upload-field .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; }

.sm-apply-captcha .hint { margin-bottom: 16px; font-size: 16px; line-height: 1.7; }
.sm-apply-captcha #captcha { margin: 0; padding: 0; border: 0; }
/* 375px에서도 Google 기본 위젯(304px)을 카드 안에 배치한다. */
@media (max-width: 420px) { .sm-form > .sm-apply-captcha { padding-left: 16px; padding-right: 16px; } }

.sm-apply-layout #applyForm h3 { font-size: 18px; margin-bottom: 16px; }
.sm-apply-layout #applyForm .sm-textarea { background: #fff; min-height: 110px; border-color: #857f7a; }
.sm-apply-layout #applyForm :is(.sm-input, .sm-textarea):is(:focus, [aria-invalid="true"]) { border-color: var(--accent); }
.sm-apply-layout #applyForm .sm-input::placeholder { color: var(--ink-3); opacity: 1; }
#applyErrors:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.sm-application-required { margin-bottom: 16px; }
.sm-application-upload { margin-bottom: 22px; }
.sm-application-upload:last-child { margin-bottom: 0; }
.sm-application-equipment p + p { margin-top: 8px; }
.sm-application-policy { margin: 16px 0; }
.sm-application-policy a { text-decoration: underline; }
.sm-application-consent dd { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .sm-application-consent > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* 심사 안내의 보조 강조색을 오렌지 시안과 맞춘다. */
.sm-apply-review h2::before { color: #FFC3A5; }
.sm-review-ratio span { background: #F7B48E; }
