/* ══════════════════════════════════════
   장이 서는 날 — 스타일시트
   ══════════════════════════════════════ */

:root {
  --primary: #16A34A;
  --primary-light: #DCFCE7;
  --primary-dark: #15803D;
  --amber: #F59E0B;
  --rose: #F43F5E;
  --violet: #8B5CF6;
  --sky: #0EA5E9;
  --teal: #0D9488;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

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

body {
  font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all .15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-dark);
  background: var(--primary-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #15803D 0%, #16A34A 50%, #0D9488 100%);
  color: #fff;
  padding: 64px 24px 48px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}

.hero-desc {
  font-size: 16px;
  opacity: .9;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Market hero (detail page) ── */
.market-hero {
  color: #fff;
  padding: 64px 24px 40px;
}

.market-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.market-hero-region {
  font-size: 14px;
  opacity: .8;
  margin-bottom: 4px;
}

.market-hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ── Market Detail (redesigned) ── */
.md-hero {
  color: #fff;
  padding: 80px 24px 48px;
  position: relative;
}

.md-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.md-hero-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  margin-bottom: 20px;
  transition: background .15s;
}

.md-hero-back:hover {
  background: rgba(255,255,255,.35);
}

.md-hero-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.md-hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.md-hero-sub {
  font-size: 15px;
  opacity: .85;
  margin-bottom: 8px;
}

.md-hero-sns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  margin-top: 8px;
  transition: color .15s;
}

.md-hero-sns:hover {
  color: #fff;
}

/* Summary cards */
.md-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: -28px 0 0;
  position: relative;
  z-index: 1;
}

.md-summary-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.md-summary-card.highlight {
  border-color: transparent;
  box-shadow: var(--shadow);
}

.md-summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.md-summary-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}

.md-summary-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}

/* Sections */
.md-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-100);
}

.md-section:last-child {
  border-bottom: none;
}

.md-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.md-section-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.85;
}

/* Products */
.md-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.md-product {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 24px;
  border: 1.5px solid;
  background: #fff;
  transition: all .15s;
}

.md-product:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Upcoming dates */
.md-dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.md-date {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  transition: background .15s;
}

.md-date:hover {
  background: var(--gray-100);
}

.md-date-next {
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.md-date-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.md-date-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.md-date-day {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.md-date-time {
  font-size: 13px;
  color: var(--gray-400);
}

.md-date-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Location */
.md-location {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.md-loc-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.md-loc-row i {
  width: 18px;
  text-align: center;
  margin-top: 3px;
  flex-shrink: 0;
}

.md-loc-row strong {
  color: var(--gray-800);
  font-weight: 600;
}

.md-map-btns {
  display: flex;
  gap: 10px;
}

@media (max-width: 768px) {
  .md-hero {
    padding: 60px 20px 40px;
  }

  .md-summary {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -20px;
  }

  .md-map-btns {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .md-summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .md-summary-card {
    padding: 12px;
    gap: 8px;
  }

  .md-summary-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .md-summary-value {
    font-size: 13px;
  }
}

/* ── Container ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sections ── */
.section {
  padding: 40px 0;
}

.section + .section {
  border-top: 1px solid var(--gray-200);
}

.page-section {
  padding-top: 48px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.section-desc {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 32px;
  max-width: 640px;
}

.section-more {
  text-align: center;
  margin-top: 24px;
}

.section-more a {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--primary-light);
  transition: all .15s;
}

.section-more a:hover {
  background: var(--primary-light);
}

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 4px;
  font-size: 13px;
  color: var(--gray-400);
  flex-wrap: wrap;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 4px;
}

.breadcrumb a {
  color: var(--gray-500);
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-green { background: #DCFCE7; color: #15803D; }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-sky { background: #E0F2FE; color: #0369A1; }
.badge-violet { background: #EDE9FE; color: #6D28D9; }
.badge-rose { background: #FFE4E6; color: #BE123C; }

/* ── This week's markets ── */
.week-markets {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.week-market-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  transition: background .15s;
}

.week-market-item + .week-market-item {
  border-top: 1px solid var(--gray-100);
}

.week-market-item:hover {
  background: var(--gray-50);
}

.week-market-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.week-market-item strong {
  font-size: 15px;
  color: var(--gray-800);
}

.week-market-meta {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

.no-market {
  padding: 24px 16px;
  text-align: center;
  color: var(--gray-400);
  font-size: 14px;
}

/* ── Quick links ── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-link {
  text-align: center;
  padding: 16px 8px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--gray-200);
  transition: all .15s;
}

.quick-link:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.quick-link i {
  font-size: 20px;
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
}

.quick-link span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}

/* ── Market cards ── */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.market-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: block;
}

.market-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.market-card-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.market-card-img i {
  font-size: 32px;
}

.market-card-body {
  padding: 16px;
}

.market-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.market-card-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.market-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.market-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.market-card-meta i {
  width: 14px;
  text-align: center;
  font-size: 12px;
}

.market-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.market-card-tags span {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--gray-100);
  color: var(--gray-600);
}

/* ── Info grid (market detail) ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.info-box {
  background: var(--gray-50);
  padding: 14px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.info-label {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.info-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}

.info-value.highlight {
  color: var(--primary);
}

.info-value.muted {
  color: var(--gray-400);
}

/* ── Detail content ── */
.detail-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.detail-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
}

.detail-text a {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Product tags ── */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tag {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 500;
}

/* ── Upcoming dates ── */
.upcoming-dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upcoming-date {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-700);
}

.upcoming-date.next {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.upcoming-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.upcoming-time {
  color: var(--gray-400);
  font-weight: 400;
  margin-left: 4px;
}

/* ── Location info ── */
.location-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.location-info p {
  font-size: 14px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-info i {
  width: 16px;
  text-align: center;
  color: var(--gray-400);
}

.map-buttons {
  display: flex;
  gap: 10px;
}

.map-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: opacity .15s;
}

.map-btn:hover {
  opacity: .85;
}

.map-btn.kakao {
  background: #FEE500;
  color: #3C1E1E;
}

.map-btn.naver {
  background: #03C75A;
  color: #fff;
}

/* ── Full Calendar ── */
.cal-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.cal-tab {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all .15s;
}

.cal-tab:hover { color: var(--gray-700); }
.cal-tab.active { background: #fff; color: var(--primary-dark); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.cal-month { display: none; }
.cal-month.cal-month-current { display: block; }

.cal-month-header {
  margin-bottom: 16px;
}

.cal-month-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-800);
}

.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 4px;
}

.cal-header-cell {
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-400);
}

.cal-header-cell.cal-sun { color: var(--rose); }
.cal-header-cell.cal-sat { color: var(--primary); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
  min-height: 100px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
  position: relative;
  transition: background .1s;
}

.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: var(--gray-50); }
.cal-cell.cal-empty { background: none; }
.cal-cell.cal-empty:hover { background: none; }

.cal-cell.cal-today {
  background: #FFFBEB;
}

.cal-cell.cal-today .cal-day-num {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.cal-day-num.cal-sun { color: var(--rose); }
.cal-day-num.cal-sat { color: var(--primary); }

.cal-dots {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}

.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cal-markets {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cal-market-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity .15s;
  text-decoration: none;
}

.cal-market-tag:hover {
  opacity: .75;
}

.cal-market-time {
  font-weight: 400;
  opacity: .7;
  margin-left: 2px;
}

/* Calendar legend */
.cal-legend {
  margin-top: 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.cal-legend-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.cal-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cal-legend-label {
  font-weight: 400;
  color: var(--gray-400);
  font-size: 12px;
}

.cal-legend-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-400);
}

/* Calendar responsive */
@media (max-width: 768px) {
  .cal-cell {
    min-height: 70px;
    padding: 4px;
  }

  .cal-day-num {
    font-size: 12px;
  }

  .cal-market-tag {
    font-size: 9px;
    padding: 1px 4px;
  }

  .cal-market-time {
    display: none;
  }

  .cal-header-cell {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .cal-cell {
    min-height: 56px;
    padding: 3px;
  }

  .cal-markets {
    display: none;
  }

  .cal-dots {
    margin-top: 2px;
  }
}

/* ── Notice list ── */
.notice-list {
  display: flex;
  flex-direction: column;
}

.notice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: box-shadow .15s;
  flex-wrap: wrap;
}

.notice-item:hover {
  box-shadow: var(--shadow);
}

.notice-item.pinned {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.pin-icon {
  color: var(--amber);
  font-size: 12px;
}

.notice-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  flex: 1;
  min-width: 0;
}

.notice-summary {
  width: 100%;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: -4px;
  padding-left: 0;
}

.notice-date {
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
}

/* ── Notice detail ── */
.notice-detail-header {
  margin-bottom: 32px;
}

.notice-detail-header h1 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  color: var(--gray-900);
  margin: 12px 0 8px;
}

.notice-detail-header time {
  font-size: 14px;
  color: var(--gray-400);
}

.notice-related-markets {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.related-market-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
}

.notice-content.prose {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.8;
}

.prose h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 28px 0 12px;
}

.prose h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 24px 0 8px;
}

.prose p {
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

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

.prose strong {
  font-weight: 700;
  color: var(--gray-800);
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
}

.notice-share {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.share-btn {
  background: #fff;
  border: 1px solid var(--gray-200);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

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

.notice-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.notice-nav a {
  font-size: 13px;
  color: var(--gray-500);
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-nav a:hover {
  color: var(--primary);
}

/* ── About page ── */
.about-intro {
  text-align: center;
  padding: 32px 0;
}

.about-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.about-intro h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.about-intro p {
  font-size: 15px;
  color: var(--gray-500);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-body,
.about-contact {
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
}

/* ── FAQ ── */
.faq-section {
  padding: 32px 0;
  border-top: 1px solid var(--gray-200);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--gray-50);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  font-family: inherit;
  transition: background .15s;
}

.faq-question:hover {
  background: var(--gray-100);
}

.faq-icon {
  font-size: 12px;
  color: var(--gray-400);
  transition: transform .2s;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  border-top: 1px solid var(--gray-100);
}

.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
}

/* ── Footer ── */
.site-footer {
  background: var(--gray-800);
  color: var(--gray-400);
  padding: 40px 24px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand strong {
  font-size: 16px;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--gray-400);
  transition: color .15s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 12px;
  color: var(--gray-500);
}

/* ── Home 2-column layout (Desktop) ── */
.home-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* ── Hero banner card ── */
.hero-banner {
  display: flex;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.hero-banner-content {
  padding: 36px;
  flex: 1;
}

.hero-banner-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-banner-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-banner-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-banner-tag {
  padding: 6px 16px;
  background: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

.hero-banner-icon {
  width: 200px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: rgba(255,255,255,.8);
  flex-shrink: 0;
}

/* ── Filter pills ── */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.filter-bar-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-800);
}

.filter-pills {
  display: flex;
  gap: 8px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  cursor: pointer;
  transition: all .15s;
}

.filter-pill:hover {
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.filter-pill.active {
  background: var(--gray-800);
  color: #fff;
  border-color: var(--gray-800);
}

/* ── Sidebar ── */
.sidebar {
  display: none;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 24px;
}

.sidebar-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-card-title a {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* ── Mini calendar ── */
.mini-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.mini-cal-header .sun { color: var(--rose); }
.mini-cal-header .sat { color: var(--primary); }

.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-700);
}

.mini-cal-day {
  padding: 6px 0;
  border-radius: 8px;
  position: relative;
}

.mini-cal-day.has-market {
  font-weight: 700;
  color: var(--primary);
}

.mini-cal-day.has-market.highlight {
  background: var(--primary-light);
}

.mini-cal-day.today {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.mini-cal-dots {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-top: 2px;
}

.mini-cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.mini-cal-note {
  grid-column: 1 / span 7;
  padding-top: 12px;
  font-size: 11px;
  color: var(--gray-400);
  text-align: left;
}

/* ── Sidebar notice items ── */
.sidebar-notice {
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

.sidebar-notice:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-notice-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.sidebar-notice-meta .badge {
  font-size: 10px;
}

.sidebar-notice-meta time {
  font-size: 11px;
  color: var(--gray-400);
}

.sidebar-notice-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.sidebar-more {
  margin-top: 16px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
}

.sidebar-more a {
  color: var(--primary);
}

/* ── Kakao CTA card ── */
.kakao-cta {
  background: #FEE500;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: transform .2s;
  border: none;
}

.kakao-cta:hover {
  transform: translateY(-2px);
}

.kakao-cta i {
  font-size: 28px;
  color: #3C1E1E;
  margin-bottom: 12px;
}

.kakao-cta-title {
  font-size: 15px;
  font-weight: 800;
  color: #3C1E1E;
  margin-bottom: 6px;
}

.kakao-cta-desc {
  font-size: 12px;
  color: #3C1E1E;
  opacity: .8;
  line-height: 1.5;
}

/* ── Mobile "이번 주 장날" compact card ── */
.week-card {
  margin: 12px 0;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-light), #C7F0D5);
  border-radius: 12px;
}

.week-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.week-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.week-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.week-card-tag {
  font-size: 11px;
  padding: 3px 8px;
  background: #fff;
  border-radius: 4px;
  font-weight: 600;
}

/* ── Mobile bottom navigation ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  z-index: 100;
  padding: 8px 0 env(safe-area-inset-bottom, 12px);
  justify-content: space-around;
}

.bottom-nav-item {
  text-align: center;
  font-size: 10px;
  color: var(--gray-400);
  text-decoration: none;
  padding: 4px 0;
  flex: 1;
  transition: color .15s;
}

.bottom-nav-item i {
  font-size: 18px;
  display: block;
  margin-bottom: 2px;
}

.bottom-nav-item.active {
  color: var(--primary);
}

/* ── Responsive ── */
@media (min-width: 1024px) {
  .home-layout {
    grid-template-columns: 2.5fr 1fr;
  }

  .sidebar {
    display: flex;
  }

  .hero-banner-icon {
    display: flex;
  }

  .week-card-mobile {
    display: none;
  }

  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1023px) {
  .hero-banner-icon {
    display: none;
  }

  .filter-pills {
    display: none;
  }

  .hero-banner-content {
    padding: 24px;
  }

  .hero-banner-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 8px 16px;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 12px;
    font-size: 15px;
  }

  .hero {
    padding: 48px 20px 36px;
  }

  .market-hero {
    padding: 48px 20px 32px;
  }

  .quick-links {
    grid-template-columns: repeat(4, 1fr);
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-buttons {
    flex-direction: column;
  }

  .notice-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .notice-nav {
    flex-direction: column;
  }

  .bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: 64px;
  }

  .site-footer {
    margin-bottom: 0;
  }

  /* Hide desktop hero on mobile home, show compact card */
  .hero-banner {
    display: none;
  }

  .filter-bar {
    margin-bottom: 16px;
  }

  .filter-bar-title {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .section {
    padding: 28px 0;
  }

  .section-title {
    font-size: 22px;
  }
}
