/* ============================================================
   Mastera ??List / Form / Notice ?? ??????
   ============================================================ */

/* ?????? List Header ?????? */
.list-header {
  padding: 32px 0 24px;
}
.list-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.list-header p {
  font-size: 14px;
  color: var(--text-sub);
}

.sub-m-filter-bar { display: none; }
.sub-m-filter-panel { display: none; }
.sub-m-register-bar { display: none; }
.sub-cat-bar { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.sub-cat-bar .glossary-cat-btn { padding: 5px 14px; font-size: 14px; border: 1px solid var(--border); text-decoration: none; color: var(--text-sub); background: var(--white); transition: all .15s; display: inline-block; }
.sub-cat-bar .glossary-cat-btn:hover { border-color: var(--text-muted); color: var(--text); }
.sub-cat-bar .glossary-cat-btn.active { background: var(--mode-color, var(--sub-navy)); color: #fff; border-color: var(--mode-color, var(--sub-navy)); }
.board-row-footer { display: none; }

/* ====== Shared Components ====== */
.m-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all .15s;
}
.m-filter-toggle:hover { border-color: var(--text-muted); color: var(--text); }
.m-filter-toggle.open { color: var(--mode-color, var(--sub-navy)); border-color: var(--mode-color, var(--sub-navy)); }
.m-filter-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.m-filter-toggle.open svg { transform: rotate(180deg); }

.request-register-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--mode-color, var(--sub-navy));
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: opacity .15s;
}
.request-register-btn:hover { opacity: .85; }
.request-register-btn svg { flex-shrink: 0; }

.request-bar {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.request-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all .15s;
}
.request-bar-btn.request-correction { color: var(--text-sub); background: var(--white); }
.request-bar-btn.request-correction:hover { border-color: var(--text-muted); color: var(--text); }
.request-bar-btn.request-deletion { color: #C0392B; background: var(--white); border-color: #E8D0D0; }
.request-bar-btn.request-deletion:hover { background: #FDF2F2; border-color: #C0392B; }

.article-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--bg-light, #F7F7F5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.4;
  white-space: nowrap;
}

.event-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1.3;
}
.event-status-badge.status-upcoming { background: var(--blue-light); color: var(--blue-dark); }
.event-status-badge.status-ongoing { background: #E8F5E9; color: #2E7D32; }
.event-status-badge.status-ended { background: #F5F5F5; color: var(--text-muted); }

/* ====== Board-Row Layout (workshops, events, cert, magazine, startup, schools) ====== */
.board-list {
  display: flex;
  flex-direction: column;
}
.board-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: var(--text);
  transition: background .1s;
}
.board-row:hover { background: var(--bg-light, #F7F7F5); }
.board-row:first-child { border-top: 1px solid var(--border); }
.board-row-num {
  flex-shrink: 0;
  width: 40px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.board-row-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg-light, #F7F7F5);
  color: var(--text-sub);
  border: 1px solid var(--border);
}
.board-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.board-row-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-row-sub {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-row-tags {
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}
.board-row-meta {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ====== Sub-Card Layout (influencers, brands, global-centers) ====== */
.sub-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.sub-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .15s, border-color .15s;
}
.sub-card:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.sub-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
.sub-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sub-card-body {
  padding: 14px 16px;
}
.sub-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.sub-card-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-sub);
  overflow: hidden;
}
.sub-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sub-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sub-card-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: var(--radius-sm);
  margin-top: 2px;
}
.sub-card-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sub-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.sub-card-meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ====== Community Board Tabs ====== */
.community-board-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.community-board-tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.community-board-tab:hover { color: var(--text); }
.community-board-tab.active {
  color: var(--sub-navy);
  font-weight: 700;
  border-bottom-color: var(--sub-navy);
}
.community-write-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  text-decoration: none;
  transition: background .15s;
}
.community-write-btn:hover { background: var(--accent-dark); }

/* ====== Community Layout ====== */
.community-list {
  display: flex;
  flex-direction: column;
}
.community-post-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: var(--text);
  transition: background .1s;
}
.community-post-row:hover { background: var(--bg-light, #F7F7F5); }
.community-post-row:first-child { border-top: 1px solid var(--border); }
.community-post-row.pinned { background: #FDFCF8; }
.community-pin-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: var(--accent-dark);
  border-radius: var(--radius-sm);
}
.community-cat-label {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--mode-color, var(--sub-navy));
}
.community-post-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.community-reply-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}
.community-post-meta {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ====== Glossary Layout ====== */
.glossary-search-bar {
  margin-bottom: 20px;
}
.glossary-search-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color .15s;
}
.glossary-search-input:focus {
  outline: none;
  border-color: var(--mode-color, var(--sub-navy));
}
.glossary-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.glossary-index-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all .15s;
}
.glossary-index-link:hover { border-color: var(--text-muted); color: var(--text); }
.glossary-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.glossary-group-letter {
  font-size: 20px;
  font-weight: 800;
  color: var(--mode-color, var(--sub-navy));
  padding-bottom: 8px;
  border-bottom: 2px solid var(--mode-color, var(--sub-navy));
  margin-bottom: 12px;
}
.glossary-group-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.glossary-item-open {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.glossary-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.glossary-item-title-open {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.glossary-ext-links {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.glossary-ext-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: opacity .15s;
}
.glossary-ext-btn:hover { opacity: .75; }
.glossary-ext-btn.yt { background: #FFE0E0; color: #CC0000; }
.glossary-ext-btn.gg { background: #E8F0FE; color: #1A73E8; }
.glossary-item-summary {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 8px;
}
.glossary-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ?????? Region Chips ?????? */
.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
}
.region-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}
.region-chip:hover {
  color: var(--mode-color, var(--accent-dark));
  border-color: var(--mode-color, var(--accent-dark));
  background: #faf6f0;
}
.region-chip.active {
  color: #fff;
  background: var(--mode-color, var(--accent-dark));
  border-color: var(--mode-color, var(--accent-dark));
  font-weight: 600;
}
.region-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--mode-color, var(--accent-dark));
  margin-left: 2px;
}
.region-chip.active .region-count {
  color: rgba(255,255,255,.8);
}
.region-chip:hover .region-count {
  color: var(--mode-color, var(--accent-dark));
}
.region-chip.active:hover .region-count {
  color: rgba(255,255,255,.8);
}

/* ?????? List Layout (sidebar + content) ?????? */
.list-layout {
  display: flex;
  gap: 28px;
  padding-bottom: 40px;
}

/* ?????? Filter Sidebar ?????? */
.list-filter {
  width: 240px;
  flex-shrink: 0;
}
.filter-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 20px;
  position: sticky;
  top: 120px;
}
.filter-group {
  margin-bottom: 16px;
}
.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.filter-select,
.filter-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}
.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--mode-color, var(--accent));
}
.filter-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--mode-color, var(--accent));
  color: var(--primary);
  border: none;
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}
.filter-btn:hover { background: var(--mode-color, var(--accent-dark)); opacity: 0.85; color: #fff; }
.filter-apply-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--mode-color, var(--accent));
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  margin-top: 4px;
}
.filter-apply-btn:hover { opacity: .85; }
.filter-actions {
  margin-top: 4px;
}
.filter-reset {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.main-m-filter-bar { display: none; }
.m-sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
}
.filter-reset:hover { color: var(--text); }
.filter-optional { font-size: 12px; color: var(--text-muted); font-weight: 400; }

/* ─── Filter Mode Buttons ─── */
.filter-mode-btns {
  display: flex;
  gap: 6px;
}
.filter-mode-btn {
  flex: 1;
  padding: 8px 0;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.filter-mode-btn:hover { border-color: var(--text-muted); }
.filter-mode-btn.active {
  background: var(--mode-color, var(--sub-navy));
  color: #fff;
  border-color: var(--mode-color, var(--sub-navy));
}
.filter-location-status { font-size: 12px; margin-top: 2px; }
.loc-ok { color: var(--success); }
.loc-waiting { color: var(--text-muted); }
.loc-error { color: #e74c3c; }
.center-distance {
  color: var(--mode-color, var(--accent-dark));
  font-weight: 600;
}

.filter-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-check-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-check-item:hover {
  border-color: var(--mode-color, var(--accent));
  color: var(--text);
}
.filter-check-item:has(input:checked) {
  background: var(--mode-color, var(--accent));
  border-color: var(--mode-color, var(--accent));
  color: #fff;
}
.filter-check-input {
  display: none;
}
.filter-check-count {
  font-size: 11px;
  opacity: 0.7;
}

/* ?????? List Content ?????? */
  .list-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
.list-info {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
}
.list-info strong { color: var(--text); }
.list-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
}

/* ?????? Pagination ?????? */
.list-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.list-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 14px;
  color: var(--text-sub);
  transition: var(--transition);
}
.list-pagination .page-link:hover { border-color: var(--mode-color, var(--accent)); color: var(--mode-color, var(--accent)); }
.list-pagination .page-link.active {
  background: var(--mode-color, var(--accent));
  color: #fff;
  border-color: var(--mode-color, var(--accent));
  font-weight: 700;
}
.list-pagination .page-dots {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  font-size: 14px;
  color: var(--text-muted);
}
.list-pagination .page-arrow {
  font-size: 18px;
  font-weight: 400;
  padding: 0 10px;
}

/* ?????? Form Panel ?????? */
.form-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 32px;
  margin-bottom: 40px;
  max-width: 800px;
}
.post-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.form-group label .required { color: #DC2626; }
.form-input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}
.form-input:focus { outline: none; border-color: var(--accent); }
textarea.form-input { resize: vertical; }
.form-row {
  display: flex;
  gap: 16px;
}
.form-row .form-group { flex: 1; }
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}
.form-submit {
  padding: 14px 24px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
}
.form-submit:hover { background: var(--accent-dark); color: #fff; }

.form-alert {
  padding: 14px 20px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 24px;
}
.form-alert.success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.form-alert.error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.form-alert a { text-decoration: underline; font-weight: 600; margin-left: 8px; }

.auth-required {
  text-align: center;
  padding: 80px 20px;
}
.auth-required h2 { font-size: 21px; margin-bottom: 10px; color: var(--text); }
.auth-required p { color: var(--text-sub); margin-bottom: 20px; }
.auth-required .filter-btn { display: inline-block; width: auto; padding: 12px 28px; }

/* ?????? Notice List ?????? */
.notice-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 20px;
}
.notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: #FAFBFC; }
.notice-item.pinned { background: #FFFDF5; }
.notice-item-title {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice-item-date {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.notice-pin-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0;
  background: var(--accent-light);
  color: var(--accent-dark);
}

/* ?????? Notice Detail ?????? */
.notice-detail-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 32px;
  margin-bottom: 40px;
}
.notice-detail-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.notice-detail-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.notice-detail-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-line;
  margin-bottom: 32px;
}
.notice-back {
  font-size: 15px;
  color: var(--accent-dark);
  font-weight: 600;
}
.notice-back:hover { text-decoration: underline; }

/* ?????? Resume Submit extras ?????? */
.form-alert {
  padding: 14px 18px;
  border-radius: 0;
  font-size: 15px;
  margin-bottom: 20px;
}
.form-alert.success {
  background: #e8f5e9;
  color: #2e7d32;
}
.form-alert.error {
  background: #fce4ec;
  color: #c62828;
}
.form-alert a {
  margin-left: 12px;
  font-weight: 600;
  text-decoration: underline;
}
.my-post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.my-post-item:last-child { border-bottom: none; }
.my-post-title {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}
.my-post-title:hover { color: var(--accent-dark); }
.status-badge-sm {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 0;
  margin-left: 8px;
}
.status-badge-sm.active { background: #e8f5e9; color: #2e7d32; }
.status-badge-sm.closed { background: #f5f5f5; color: #888; }
.status-badge-sm.draft  { background: #fff3e0; color: #e65100; }
.my-post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.my-post-date {
  font-size: 13px;
  color: var(--text-muted);
}
.my-post-edit {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
}
.my-post-edit:hover { text-decoration: underline; }

/* ?????? My Page ?????? */
.mypage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.mypage-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 24px;
}
.mypage-card.mypage-profile {
  grid-column: auto;
}
.mypage-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mypage-info-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
}
.mypage-info-row + .mypage-info-row {
  border-top: 1px solid #f5f5f5;
}
.mypage-label {
  width: 100px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.mypage-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.mypage-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.mypage-switch-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: var(--mode-color);
  color: #fff;
  text-decoration: none;
  transition: 0.2s;
}
.mypage-switch-btn:hover { opacity: 0.85; }
.mypage-switch-btn.outline {
  background: #fff;
  color: var(--mode-color);
  border: 1.5px solid var(--mode-color);
}
.mypage-switch-btn.outline:hover { background: var(--mode-color-light); }
.mypage-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mypage-form-group {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #f5f5f5;
}
.mypage-form-group label {
  width: 100px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.mypage-input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  transition: border-color .2s;
}
.mypage-input:focus {
  outline: none;
  border-color: var(--mode-color);
  box-shadow: 0 0 0 3px rgba(200,169,126,0.12);
}
.mypage-save-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: var(--mode-color);
  color: #fff;
  transition: 0.2s;
  align-self: flex-end;
}
.mypage-save-btn:hover { opacity: 0.85; }

/* === Center Info Form (my-center.php) === */
.center-form .mypage-card {
  margin-bottom: 24px;
  padding: 28px;
}
.center-form .mypage-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  color: var(--text);
}
.center-form .cf-group {
  margin-bottom: 18px;
}
.center-form .cf-group:last-child { margin-bottom: 0; }
.center-form .cf-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.center-form .cf-label .req { color: #e53e3e; margin-left: 2px; }
.center-form .cf-label .hint {
  font-weight: 400;
  font-size: 12px;
  color: #bbb;
  margin-left: 6px;
}
.center-form .cf-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.center-form .cf-input::placeholder {
  color: #bbb;
  font-weight: 400;
}
.center-form .cf-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,126,0.15);
}
.center-form textarea.cf-input {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
.center-form .cf-row {
  display: flex;
  gap: 12px;
}
.center-form .cf-row .cf-group { flex: 1; }

.center-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.center-cat-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  transition: .15s;
  background: #fff;
}
.center-cat-check:hover {
  border-color: var(--accent);
  background: rgba(200,169,126,0.04);
}
.center-cat-check input:checked + span { color: var(--accent); font-weight: 600; }
.center-cat-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.center-cat-check small {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 0;
}

.center-form .cf-sns-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.center-form .cf-sns-label .hint {
  font-weight: 400;
  font-size: 12px;
  color: #bbb;
  margin-left: 4px;
}
.center-form .cf-sns-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  flex-shrink: 0;
}
.center-form .cf-sns-icon.insta { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.center-form .cf-sns-icon.blog { background: #03C75A; color: #fff; }
.center-form .cf-sns-icon.web { background: var(--text-sub); color: #fff; }
.center-form .cf-sns-icon svg { width: 12px; height: 12px; }

.center-form .cf-file-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px dashed var(--border);
  border-radius: 0;
  background: #fafafa;
}
.center-form .cf-file-area input[type="file"] {
  font-size: 13px;
  color: var(--text-sub);
}
.center-form .cf-file-existing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 0;
  font-size: 13px;
  color: #065F46;
  margin-bottom: 10px;
}
.center-form .cf-file-existing a { color: var(--accent); text-decoration: none; }
.center-form .cf-file-existing a:hover { text-decoration: underline; }

.center-form .cf-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 0;
  margin-top: 12px;
}
.center-form .cf-status-label { font-size: 14px; color: var(--text-sub); font-weight: 500; }
.center-form .cf-status-badge { font-size: 13px; font-weight: 600; }
.center-form .cf-status-badge.verified { color: #065F46; }
.center-form .cf-status-badge.pending { color: #92400E; }

.center-form .cf-submit {
  display: block;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: .2s;
  letter-spacing: 0.5px;
}
.center-form .cf-submit:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

.center-form .cf-input.cf-readonly {
  background: #f8f8f8;
  color: var(--text-sub);
  cursor: default;
}
.center-form .cf-input.cf-readonly:focus {
  border-color: var(--border);
  box-shadow: none;
}

/* Address search area */
.cf-addr-search-area { margin-bottom: 4px; }
.cf-addr-btns {
  display: flex;
  gap: 8px;
}
.cf-addr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: .15s;
}
.cf-addr-btn:hover { border-color: var(--accent); color: var(--accent); }
.cf-addr-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cf-addr-btn.primary:hover { opacity: 0.88; }

.cf-map-search {
  margin-top: 12px;
  padding: 16px;
  background: #f9f9fb;
  border: 1px solid var(--border);
  border-radius: 0;
}
.cf-map-input-row {
  display: flex;
  gap: 8px;
}
.cf-map-input-row .cf-input {
  flex: 1;
}
.cf-map-results {
  margin-top: 10px;
  max-height: 280px;
  overflow-y: auto;
}
.cf-map-msg {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.cf-map-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 6px;
  background: #fff;
  cursor: pointer;
  transition: .15s;
}
.cf-map-item:hover {
  border-color: var(--accent);
  background: rgba(200,169,126,0.04);
}
.cf-map-item:last-child { margin-bottom: 0; }
.cf-map-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.cf-map-item-addr {
  font-size: 13px;
  color: var(--text-sub);
}
.cf-map-item-phone {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .center-form .mypage-card { padding: 20px 16px; }
  .center-form .cf-row { flex-direction: column; gap: 0; }
  .center-cat-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
  .center-cat-check { padding: 8px 10px; font-size: 13px; }
  .cf-addr-btns { flex-direction: column; }
  .cf-addr-btn { justify-content: center; }
}
.mypage-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mypage-link-item {
  display: block;
  padding: 12px 16px;
  border-radius: 0;
  background: #f9f9fb;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.15s;
}
.mypage-link-item:hover {
  background: var(--mode-color-light);
  color: var(--mode-color);
}

/* ?????? Mypage Sidebar Layout ?????? */
.mypage-layout {
  display: flex;
  gap: 28px;
  min-height: 480px;
  padding-bottom: 40px;
}
.mypage-sidebar {
  width: 220px;
  flex-shrink: 0;
}
.mypage-sidebar-profile {
  padding: 20px 16px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  border-bottom: none;
}
.mypage-sidebar-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-role-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 0;
}
.auth-role-badge.master {
  background: #EDE9FE;
  color: #7C3AED;
}
.auth-role-badge.center {
  background: #FEF3C7;
  color: #D97706;
}
.mypage-sidebar-nav {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}
.mypage-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s, color 0.15s;
}
.mypage-sidebar-link:last-child {
  border-bottom: none;
}
.mypage-sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.5;
}
.mypage-sidebar-link:hover {
  background: #f9f9fb;
  color: var(--text);
}
.mypage-sidebar-link:hover svg {
  opacity: 0.8;
}
.mypage-sidebar-link.active {
  background: var(--mode-color-light, #f5f0ea);
  color: var(--mode-color, var(--accent-dark));
  font-weight: 600;
}
.mypage-sidebar-link.active svg {
  opacity: 1;
  color: var(--mode-color, var(--accent-dark));
}
.mypage-main {
  flex: 1;
  min-width: 0;
}

/* ?????? Responsive ?????? */
@media (max-width: 768px) {
  .list-layout {
    flex-direction: column;
    gap: 16px;
  }
  .list-filter {
    width: 100%;
    display: none;
  }
  .list-filter.m-open {
    display: block;
  }
  .main-m-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
  }
  .list-header:not(.sub-header) {
    display: none !important;
  }
  .filter-form {
    position: static;
    padding: 16px;
    border: none;
    border-bottom: 1px solid var(--border);
  }
  .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  .filter-group label {
    flex-shrink: 0;
    width: 70px;
    margin-bottom: 0;
    font-size: 13px;
  }
  .filter-group .filter-select,
  .filter-group .filter-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    font-size: 13px;
  }
  .filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }
  .filter-apply-btn {
    flex: 1;
    margin-top: 0;
    padding: 10px;
    font-size: 13px;
  }
  .filter-reset {
    flex-shrink: 0;
    margin-top: 0;
    padding: 10px 16px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .form-panel {
    padding: 20px 16px;
  }
  .form-row {
    flex-direction: column;
    gap: 14px;
  }
  .list-header {
    padding: 20px 0 16px;
  }
  .list-header h2 { font-size: 20px; }
  .list-header p { font-size: 14px; }
  .list-header.sub-header {
    display: none !important;
  }
  .sub-cat-bar {
    display: none;
  }
  .sub-m-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
  }
  .sub-m-filter-panel {
    display: none;
  }
  .sub-m-filter-panel.m-open {
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
  }
  .sub-m-filter-panel .filter-form {
    position: static;
  }
  .sub-m-register-bar {
    display: flex;
    justify-content: center;
    padding: 20px 0 10px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
  }
  .board-row-footer {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
  }
  .board-row-footer .bf-tag {
    padding: 2px 7px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-sub);
  }
  .board-row-footer .bf-sep {
    color: var(--border);
  }
  /* board-row mobile */
  .board-row {
    flex-wrap: wrap;
    padding: 14px 0;
    gap: 6px;
  }
  .board-row-num { display: none; }
  .board-row-badge { order: -1; font-size: 12px; }
  .board-row-body { width: 100%; }
  .board-row-title {
    white-space: normal;
    word-break: break-word;
    font-size: 16px;
  }
  .board-row-sub { font-size: 13px; }
  .board-row-tags { display: none; }
  .board-row-meta { display: none; }
  /* sub-card mobile */
  .sub-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sub-card-body { padding: 14px 16px; }
  .sub-card-title { font-size: 16px; }
  .sub-card-desc { font-size: 13px; }
  .sub-card-meta { font-size: 13px; }
  /* community mobile */
  .community-board-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .community-board-tab { padding: 10px 16px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  .community-write-btn { padding: 6px 14px; font-size: 12px; }
  .community-post-row {
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 4px;
  }
  .community-post-title {
    width: 100%;
    white-space: normal;
    word-break: break-word;
    font-size: 15px;
  }
  .community-post-meta { width: 100%; font-size: 12px; }
  /* glossary mobile */
  .glossary-index { gap: 5px; }
  .glossary-index-link { min-width: 30px; height: 30px; font-size: 13px; }
  .glossary-item-open { padding: 14px; }
  .glossary-title-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .glossary-item-title-open { font-size: 15px; }
  .glossary-ext-btn { font-size: 11px; padding: 3px 10px; }
  .region-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(200,200,200,0.3) transparent;
  }
  .region-chips::-webkit-scrollbar { height: 3px; }
  .region-chips::-webkit-scrollbar-track { background: transparent; }
  .region-chips::-webkit-scrollbar-thumb { background: rgba(200,200,200,0.3); border-radius: 3px; }
  .region-chip { padding: 5px 12px; font-size: 13px; }
  .notice-detail-panel { padding: 20px 16px; }
  .notice-detail-title { font-size: 19px; }
  .notice-item { padding: 14px 16px; }
  .mypage-grid {
    grid-template-columns: 1fr;
  }
  .mypage-card { padding: 20px 16px; }
  /* Mypage sidebar ??horizontal tabs on mobile */
  .mypage-layout {
    flex-direction: column;
    gap: 0;
    min-height: auto;
    padding-bottom: 24px;
  }
  .mypage-sidebar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    margin-bottom: 16px;
  }
  .mypage-sidebar-profile {
    display: none;
  }
  .mypage-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    border-radius: 0;
    border-left: none;
    border-right: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(200,200,200,0.3) transparent;
  }
  .mypage-sidebar-nav::-webkit-scrollbar { height: 3px; }
  .mypage-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
  .mypage-sidebar-nav::-webkit-scrollbar-thumb { background: rgba(200,200,200,0.3); border-radius: 3px; }
  .mypage-sidebar-link {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 2px solid transparent;
    border-right: none;
    gap: 6px;
  }
  .mypage-sidebar-link svg {
    display: none;
  }
  .mypage-sidebar-link.active {
    border-bottom-color: var(--mode-color, var(--accent-dark));
    background: transparent;
  }
}

/* ====== Influencer Grid & Cards ====== */
.influencer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.influencer-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.influencer-card:hover {
  border-color: #7C3AED;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.10);
  transform: translateY(-2px);
}
.influencer-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt, #f4f5f7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.influencer-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.influencer-card-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #a78bfa);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.platform-badge.youtube {
  background: #FF0000;
  color: #fff;
}
.platform-badge.instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.influencer-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.influencer-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.influencer-card-stats {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.subscriber-count {
  font-size: 18px;
  font-weight: 800;
  color: #7C3AED;
  line-height: 1.2;
}
.subscriber-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.video-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
}
.influencer-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.influencer-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 0;
  background: #f3f0ff;
  color: #7C3AED;
}
.influencer-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

/* Influencer nav color override */
.cat-nav.mode-influencers .cat-mode-btn.active {
  color: #7C3AED;
  border-bottom-color: #7C3AED;
}
.cat-nav.mode-influencers .cat-tab.active {
  color: #7C3AED;
  border-bottom-color: #7C3AED;
}

@media (max-width: 768px) {
  .influencer-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .influencer-card-body { padding: 10px 12px 14px; }
  .influencer-card-name { font-size: 14px; }
  .subscriber-count { font-size: 16px; }
}
@media (max-width: 480px) {
  .influencer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ====== Center Card Grid ====== */
.center-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.center-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
  text-decoration: none;
  color: inherit;
}
.center-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.center-card > :last-child { margin-bottom: 0; }
.center-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.center-tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 3px;
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
}
.center-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.center-card-addr {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.4;
  margin-bottom: 6px;
}

.center-card-hours {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.center-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ====== Center Detail Page ====== */
.cd-map-section { padding: 0; overflow: hidden; }
.cd-map-section .detail-section-title {
  padding: 20px 24px 14px;
  margin-bottom: 0;
}
.cd-map {
  width: 100%;
  height: 320px;
  background: var(--bg-alt);
}
.cd-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: var(--bg-alt);
}
.cd-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1.5px solid var(--border);
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  background: #fff;
  transition: .15s;
}
.cd-map-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.cd-map-addr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 14px;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
}
.cd-map-addr svg { flex-shrink: 0; color: var(--text-muted); }
.cd-map-addr span { flex: 1; }
.cd-map-ext {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}
.cd-map-ext:hover { text-decoration: underline; }

.cd-job-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 0;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
}
.cd-job-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cd-job-item {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  transition: .15s;
}
.cd-job-item:hover {
  border-color: var(--accent);
  background: rgba(200,169,126,0.03);
}
.cd-job-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.cd-job-badges:empty { display: none; }
.cd-job-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}
.cd-job-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-sub);
}
.cd-job-pay {
  font-weight: 600;
  color: var(--accent-dark);
}
.cd-job-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.cd-nearby-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cd-nearby-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  transition: .1s;
}
.cd-nearby-item:last-child { border-bottom: none; }
.cd-nearby-item:hover .cd-nearby-name { color: var(--accent-dark); }
.cd-nearby-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color .1s;
}
.cd-nearby-dong {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cd-map { height: 240px; }
  .cd-map-section .detail-section-title { padding: 16px 16px 12px; }
  .cd-map-addr { padding: 12px 16px; font-size: 13px; }
  .cd-map-fallback { height: 160px; }
  .cd-job-item { padding: 12px 14px; }
  .cd-job-title { font-size: 14px; }
  .cd-job-meta { font-size: 12px; }
  .center-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .center-card {
    padding: 16px 18px;
  }
  .center-card-name { margin-bottom: 6px; }
}
@media (max-width: 480px) {
  .center-grid { grid-template-columns: 1fr; gap: 10px; }
  .center-card { padding: 14px 16px; }
}

/* ====== School Type Bar ====== */
.school-type-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.school-type-btn {
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .15s;
}
.school-type-btn:hover { border-color: var(--text-muted); color: var(--text); }
.school-type-btn.active { background: var(--sub-navy); color: #fff; border-color: var(--sub-navy); }

/* ====== Sub-Card Thumb – text initial (no image) ====== */
.sub-card-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-alt) 0%, #e8e6e3 100%);
  letter-spacing: -0.02em;
  user-select: none;
}

/* ====== Article Detail (sub-service detail pages) ====== */
.article-detail {
  max-width: 760px;
}
.article-detail-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.article-detail-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.article-detail-breadcrumb a:hover { color: var(--text); }
.article-detail-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.article-detail-header h1 {
  font-size: 25px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.article-detail-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}
.article-detail-hero {
  margin-bottom: 28px;
}
.article-detail-hero img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.article-detail-summary {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-light, #F7F7F5);
  border-left: 3px solid var(--sub-navy);
}
.article-detail-body {
  font-size: 14px !important;
  color: var(--text);
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.article-detail-body p,
.article-detail-body div,
.article-detail-body span,
.article-detail-body li {
  font-size: 14px !important;
}
.article-detail-body p { margin-bottom: 14px; }
.article-detail-body img { max-width: 100%; height: auto; display: block; margin: 16px 0; }
.article-detail-body h2, .article-detail-body h3 { margin: 28px 0 12px; font-weight: 700; color: var(--primary); }
.article-detail-body h2 { font-size: 21px !important; }
.article-detail-body h3 { font-size: 17px !important; }
.article-detail-body ul, .article-detail-body ol { margin: 12px 0; padding-left: 24px; }
.article-detail-body li { margin-bottom: 6px; }
.article-detail-body table {
  width: 100%;
  border-collapse: collapse;
}
.article-detail-body table th,
.article-detail-body table td {
  padding: 10px 12px;
  font-size: 14px;
  vertical-align: top;
}
@media (max-width: 768px) {
  .article-detail-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .article-detail-body table th,
  .article-detail-body table td {
    padding: 8px 10px !important;
    font-size: 12px !important;
    white-space: normal;
  }
  .article-detail-body div[style*="display:grid"],
  .article-detail-body div[style*="display: grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .article-detail-body div[style*="display:grid"] > div,
  .article-detail-body div[style*="display: grid"] > div {
    padding: 20px 12px !important;
  }
  .article-detail-body div[style*="display:grid"] > div > div[style*="font-size:36px"],
  .article-detail-body div[style*="display: grid"] > div > div[style*="font-size:36px"] {
    font-size: 24px !important;
  }
  .article-detail-body div[style*="padding:40px 36px"],
  .article-detail-body div[style*="padding: 40px 36px"] {
    padding: 24px 16px !important;
    margin: 24px 0 !important;
  }
}

/* Event / Workshop Info Box */
.event-info-box {
  margin-bottom: 28px;
  border: 1px solid var(--border);
  padding: 20px 24px;
  background: var(--white);
}
.event-info-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-alt);
  font-size: 16px;
}
.event-info-row:last-child { border-bottom: none; }
.event-info-label {
  flex-shrink: 0;
  width: 60px;
  font-weight: 600;
  color: var(--text-sub);
  font-size: 15px;
}
.event-info-row span:last-child,
.event-info-row a {
  color: var(--text);
  line-height: 1.6;
}

/* Brand / Influencer / Global-center detail specifics */
.brand-detail-info,
.influencer-detail-info,
.gc-detail-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  padding: 0 24px;
  background: var(--white);
}
.brand-detail-info .event-info-row,
.influencer-detail-info .event-info-row,
.gc-detail-info .event-info-row {
  border-bottom: 1px solid var(--bg-alt);
}

/* ─── Brand Detail Page ─── */
.brand-page-hero {
  width: 100%;
  background: #f2f2f0;
  overflow: hidden;
  margin-bottom: 28px;
}
.brand-page-hero img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
}
.brand-page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
}.brand-page-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.brand-page-breadcrumb a:hover { color: var(--text); }
.brand-page-breadcrumb span { color: var(--text-muted); }
.brand-page-header {
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.brand-page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.brand-page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.brand-page-featured {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  background: var(--accent);
  color: #fff;
  letter-spacing: .04em;
}
.brand-page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-page-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--accent-dark);
}
.brand-page-badge--price {
  background: #f0f4ff;
  color: #3b5bdb;
}
.brand-page-meta-item {
  font-size: 13px;
  color: var(--text-muted);
}
.brand-page-meta-item::before {
  content: '·';
  margin-right: 8px;
  color: var(--border);
}
.brand-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}
.brand-page-main {}
.brand-page-desc {
  font-size: 16px;
  color: var(--text);
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: break-word;
  white-space: pre-line;
}
.brand-page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.brand-page-aside {}
.brand-aside-box {
  border: 1px solid var(--border);
  background: var(--white);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.brand-link-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.brand-link-btn:last-of-type { border-bottom: none; }
.brand-link-btn:hover { background: var(--bg-light, #f7f7f5); color: var(--primary); }
.brand-link-btn--primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.brand-link-btn--primary:hover { background: var(--accent-dark); color: #fff; }
.brand-link-btn--insta { color: #c13584; }
.brand-link-btn--insta:hover { background: #fdf0f7; }
.brand-aside-section {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}
.brand-aside-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.brand-aside-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-aside-domain {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.brand-page-back {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.brand-page-back a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}
.brand-page-back a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .brand-page-hero { max-height: 260px; }
  .brand-page-hero img { max-height: 260px; }
  .brand-page-title { font-size: 22px; }
  .brand-page-layout { grid-template-columns: 1fr; gap: 24px; }
  .brand-aside-box { position: static; }
}

@media (max-width: 768px) {
  .article-detail-header h1 { font-size: 20px; }
  .article-detail-meta { font-size: 12px; gap: 12px; }
  .article-detail-hero { margin-bottom: 20px; }
  .article-detail-hero img { max-height: 280px; }
  .article-detail-summary { font-size: 14px; padding: 12px 16px; }
  .article-detail-body { font-size: 14px; }
  .event-info-box { padding: 16px; }
  .event-info-row { font-size: 15px; gap: 12px; }
  .event-info-label { width: 50px; font-size: 13px; }
}

/* ====== Submission Form (submit-request.php) ====== */
.submission-success {
  text-align: center;
  padding: 60px 20px;
}
.submission-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #059669;
  background: #D1FAE5;
}
.submission-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.submission-success p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 24px;
}
.submission-back-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.submission-back-btn:hover { background: var(--sub-navy, #2E2E40); }
.submission-error {
  padding: 12px 16px;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(220,38,38,0.15);
}
.submission-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.submission-target-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-light, #F7F7F5);
  border: 1px solid var(--border);
  font-size: 14px;
}
.submission-target-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 2px 10px;
  background: var(--white);
  border: 1px solid var(--border);
}
.submission-target-info strong {
  font-weight: 600;
  color: var(--text);
}
.submission-fieldset {
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin: 0;
}
.submission-fieldset legend {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  padding: 0 8px;
}
.submission-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.submission-row:last-child { margin-bottom: 0; }
.submission-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.submission-field:last-child { margin-bottom: 0; }
.submission-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}
.submission-field label .req {
  color: #DC2626;
  margin-left: 2px;
}
.submission-field .form-input,
.submission-field .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.submission-field .form-input { height: 42px; }
.submission-field .form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.submission-field .form-input:focus,
.submission-field .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,126,0.12);
}
.submission-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.submission-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}
.submission-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
}
.submission-cancel-btn:hover { border-color: var(--text-muted); }
.submission-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--primary);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.submission-submit-btn:hover { background: var(--sub-navy, #2E2E40); }

@media (max-width: 768px) {
  .submission-row { grid-template-columns: 1fr; gap: 0; }
  .submission-fieldset { padding: 16px; }
  .submission-actions { flex-direction: column; }
  .submission-cancel-btn,
  .submission-submit-btn { width: 100%; text-align: center; }
}

/* ====== Article Detail – extra tags & footer tags ====== */
.article-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.article-detail-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ====== Related Section (guide-detail) ====== */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.article-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}
.article-card:hover {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.article-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  overflow: hidden;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-muted);
}
.article-card-body {
  padding: 12px 14px;
}
.article-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.article-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .article-card-body { padding: 10px 12px; }
  .article-card-title { font-size: 13px; }
  .related-section { margin-top: 32px; padding-top: 24px; }
  .related-section h3 { font-size: 16px; margin-bottom: 14px; }
}

/* ===== Community Detail ===== */
.community-post-detail .article-detail-header h1 { font-size: 23px; }
.community-post-body {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

/* Replies Section */
.cm-replies {
  margin-top: 32px;
}
.cm-replies-header {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
}
.cm-replies-title {
  font-size: 15px;
  color: var(--text);
}
.cm-replies-title strong {
  color: var(--accent-dark);
}
.cm-no-reply {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.cm-reply-list {
  margin: 0;
}
.cm-reply {
  padding: 18px 0;
  border-bottom: 1px solid var(--bg-alt);
}
.cm-reply-best {
  background: #fdf8f0;
  padding: 18px 16px;
  margin: 0 -16px;
  border-bottom: 1px solid #f0e6d3;
}
.cm-best-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-dark);
  margin-bottom: 10px;
}
.cm-reply-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cm-reply-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.cm-reply-date {
  font-size: 12px;
  color: var(--text-muted);
}
.cm-reply-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
}

/* Reply Form */
.cm-reply-form {
  margin-top: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.cm-reply-textarea {
  display: block;
  width: 100%;
  border: none;
  outline: none;
  resize: vertical;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  min-height: 80px;
  box-sizing: border-box;
}
.cm-reply-textarea::placeholder {
  color: var(--text-muted);
}
.cm-reply-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-light, #F7F7F5);
  border-top: 1px solid var(--border);
}
.cm-reply-form-user {
  font-size: 12px;
  color: var(--text-muted);
}
.cm-reply-submit {
  display: inline-flex;
  align-items: center;
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cm-reply-submit:hover {
  background: var(--accent-dark);
}

/* Reply Login Required */
.cm-reply-login {
  margin-top: 20px;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-light, #F7F7F5);
  border: 1px solid var(--border);
}
.cm-reply-login p {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0 0 14px;
}
.cm-reply-login-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 28px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  text-decoration: none;
  transition: background 0.15s;
}
.cm-reply-login-btn:hover {
  background: var(--accent-dark);
}

/* Community Write Form */
.community-write-form .form-group {
  margin-bottom: 18px;
}
.community-write-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.community-write-form .form-input,
.community-write-form .form-select {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.community-write-form .form-input:focus,
.community-write-form .form-select:focus {
  border-color: var(--accent);
}
.community-write-form .form-textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  resize: vertical;
  line-height: 1.7;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.community-write-form .form-textarea:focus {
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .community-post-detail .article-detail-header h1 { font-size: 19px; }
  .community-post-body { font-size: 14px; padding: 20px 0; }
  .cm-replies { margin-top: 24px; }
  .cm-replies-title { font-size: 14px; }
  .cm-reply-body { font-size: 13px; }
  .cm-reply-textarea { font-size: 14px; }
  .cm-reply-best { margin: 0 -12px; padding: 16px 12px; }
}

/* ===== Video Library ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.video-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .15s;
}
.video-card:hover { transform: translateY(-3px); }
.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.video-card:hover .video-play-icon { opacity: 1; }
.video-card-body { padding: 12px 0; }
.video-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.video-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.video-card-cat {
  color: var(--sub-navy);
  font-weight: 600;
}

@media (max-width: 768px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .video-card-title { font-size: 13px; }
  .video-play-icon { opacity: 1; width: 40px; height: 40px; }
  .video-play-icon svg { width: 28px; height: 28px; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ===== Market ===== */
.market-trade-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.market-trade-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.market-trade-tab:hover { color: var(--text); }
.market-trade-tab.active {
  color: var(--sub-navy);
  font-weight: 700;
  border-bottom-color: var(--sub-navy);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.market-card {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .15s;
}
.market-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.market-card-inactive { opacity: 0.65; }
.market-status-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.market-status-selling { background: var(--green); }
.market-status-reserved { background: var(--blue); }
.market-status-sold { background: var(--text-muted); }
.market-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}
.market-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.market-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.market-card-body { padding: 14px 16px; }
.market-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.market-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.market-card-meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.market-card-meta span + span::before { content: '\00B7'; margin-right: 6px; }

/* Market Detail */
.market-detail-trade {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.market-detail-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.market-detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.market-detail-img {
  overflow: hidden;
  background: var(--bg-alt);
}
.market-detail-img img {
  width: 100%;
  height: auto;
  display: block;
}
.market-detail-info-box {
  background: var(--bg-light);
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .market-card-body { padding: 10px 12px; }
  .market-card-title { font-size: 13px; }
  .market-card-price { font-size: 14px; }
  .market-trade-tab { padding: 8px 14px; font-size: 12px; }
  .market-detail-images { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .market-grid { grid-template-columns: 1fr; }
}

/* ===== Magazine View Tabs ===== */
.magazine-view-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.magazine-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.magazine-view-tab:hover { color: var(--text); }
.magazine-view-tab.active {
  color: var(--sub-navy);
  font-weight: 700;
  border-bottom-color: var(--sub-navy);
}
.magazine-view-tab svg { opacity: 0.6; }
.magazine-view-tab.active svg { opacity: 1; }

/* ===== Gallery Masonry ===== */
.gallery-masonry {
  columns: 4;
  column-gap: 14px;
  margin-top: 20px;
}
.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 14px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}
.gallery-item-cats {
  font-size: 11px;
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .gallery-masonry { columns: 3; }
}
@media (max-width: 768px) {
  .gallery-masonry { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .gallery-item-overlay { opacity: 1; padding: 12px 10px 10px; }
  .gallery-item-title { font-size: 12px; }
  .magazine-view-tab { padding: 8px 14px; font-size: 12px; }
}
@media (max-width: 480px) {
  .gallery-masonry { columns: 2; }
}

/* Day Theme overrides - mint bg = white text */
body.theme-day .filter-btn {
  color: #fff;
}
body.theme-day .filter-apply-btn {
  color: #fff;
}
body.theme-day .form-submit {
  color: #fff;
}
body.theme-day .form-submit:hover {
  color: #fff;
}
body.theme-day .submission-back-btn {
  color: #fff;
}
body.theme-day .submission-submit-btn {
  color: #fff;
}
body.theme-day .list-pagination .page-link.active {
  color: #fff;
}
body.theme-day .notice-item:hover {
  background: #FAFAFA;
}

/* ====== Startup & Operation Guide - Card Grid (3 columns x 8 rows) ====== */
.startup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 4px;
}
.startup-card {
  display: flex;
  flex-direction: column;
  background: var(--white, #fff);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.startup-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dark);
  box-shadow: 0 14px 32px -10px rgba(168, 139, 94, 0.28), 0 4px 10px rgba(0, 0, 0, 0.05);
}
.startup-card:hover .startup-card-thumb-img { transform: scale(1.04); }
.startup-card:hover .startup-card-title { color: var(--accent-dark); }

/* Thumbnail (16:9) */
.startup-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt, #f4f5f7);
  border-bottom: 1px solid var(--border);
}
.startup-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.startup-card-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, #f5ede0 50%, #ece1cf 100%);
  color: var(--accent-dark);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 12px;
  line-height: 1.2;
  word-break: keep-all;
  position: relative;
}
.startup-card-thumb-ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,0.45) 0%, transparent 60%);
  pointer-events: none;
}
.startup-card-thumb-ph span { position: relative; z-index: 1; }

/* Card body */
.startup-card-body {
  padding: 16px 20px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.startup-card.no-thumb .startup-card-body {
  padding: 22px 22px 16px;
  min-height: 168px;
}
.startup-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  min-height: 20px;
}
.startup-card-cat {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-sub);
  background: var(--bg-light, #F7F7F5);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.startup-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  transition: color .2s ease;
}
.startup-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}
.startup-card-foot {
  padding: 10px 20px 14px;
  border-top: 1px solid #f3f3f3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.startup-card-foot .sf-views::before {
  content: '·';
  margin-right: 6px;
  color: var(--border);
}

/* Sort Bar */
.startup-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 4px 0;
  flex-wrap: wrap;
}
.startup-toolbar-count {
  font-size: 14px;
  color: var(--text-sub);
}
.startup-toolbar-count strong { color: var(--text); }
.startup-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.startup-sort-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.startup-sort-tabs {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--white, #fff);
}
.startup-sort-tab {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  text-decoration: none;
  border-right: 1px solid var(--border);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.startup-sort-tab:last-child { border-right: none; }
.startup-sort-tab:hover { background: var(--bg-light, #F7F7F5); color: var(--text); }
.startup-sort-tab.active {
  background: var(--accent-dark);
  color: #fff;
}

@media (max-width: 1024px) {
  .startup-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .startup-grid { grid-template-columns: 1fr; gap: 12px; }
  .startup-card-body { padding: 14px 16px 12px; }
  .startup-card-title { font-size: 16px; }
  .startup-card-desc { -webkit-line-clamp: 2; font-size: 14px; }
  .startup-card-foot { padding: 10px 16px 12px; font-size: 12px; }
  .startup-card-thumb-ph { font-size: 20px; }
  .startup-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
  }
  .startup-sort {
    justify-content: space-between;
  }
  .startup-sort-tab { padding: 6px 10px; font-size: 12px; flex: 1; text-align: center; }
}


/* ====== Topic Tabs (가로 박스 탭) ====== */
.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.topic-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.topic-tab:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.topic-tab.active {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}
.topic-tab.active:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.topic-tab-count {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted, #888);
  background: var(--bg-light, #f7f7f5);
  padding: 1px 6px;
  border-radius: 8px;
  min-width: 18px;
  text-align: center;
  line-height: 1.5;
}
.topic-tab.active .topic-tab-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Card topic badge (존재 시 카테고리보다 앞에 강조) */
.startup-card-topic {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--accent-dark, #a88b5e);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .topic-tabs {
    gap: 6px;
    margin: 8px 0 16px;
    padding-bottom: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topic-tabs::-webkit-scrollbar { display: none; }
  .topic-tab {
    padding: 5px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .topic-tab-count {
    font-size: 12px;
    padding: 1px 5px;
  }
}
