/* Chic&Chick Workspace Directory Stylesheet - Unique DOM Architecture */
:root {
  --cc-bg: #f5f7f5;
  --cc-surface: #ffffff;
  --cc-surface-soft: #eef3ef;
  --cc-ink: #182420;
  --cc-muted: #556660;
  --cc-line: #dce4de;
  --cc-primary: #173f35;
  --cc-primary-mid: #235c4e;
  --cc-accent: #b78736;
  --cc-tag-bg: #e7f1ec;
  --cc-tag-txt: #194d3f;
  --cc-radius: 14px;
  --cc-shadow: 0 4px 18px rgba(23, 63, 53, 0.05);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background-color: var(--cc-bg);
  color: var(--cc-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* TopMasthead */
.cc-masthead {
  background: var(--cc-primary);
  color: #f8faf8;
  border-bottom: 3px solid var(--cc-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.cc-masthead-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cc-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cc-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.22);
  object-fit: cover;
}

.cc-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.cc-brand-sub {
  font-size: 0.78rem;
  color: #c7d8d2;
  display: block;
}

.cc-hub-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.cc-hub-links a {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.42rem 0.78rem;
  border-radius: 8px;
  color: #e4efe9;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.18s ease, color 0.18s ease;
}

.cc-hub-links a:hover,
.cc-hub-links a.is-active {
  background: #e9f2ed;
  color: var(--cc-primary);
}

/* Hero & Definition Banner */
.cc-intro-band {
  background: linear-gradient(180deg, #ebf1ed 0%, var(--cc-bg) 100%);
  border-bottom: 1px solid var(--cc-line);
  padding: 2rem 1.25rem 1.6rem;
}

.cc-intro-wrap {
  max-width: 1360px;
  margin: 0 auto;
}

.cc-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cc-tag-txt);
  background: var(--cc-tag-bg);
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.cc-intro-wrap h1 {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cc-primary);
  margin-bottom: 0.65rem;
}

.cc-lead-def {
  font-size: 0.98rem;
  color: #2c3d37;
  max-width: 980px;
  margin-bottom: 1.25rem;
  line-height: 1.68;
}

/* Search & Quick Filter Bar */
.cc-finder-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  max-width: 780px;
  background: var(--cc-surface);
  border: 2px solid var(--cc-primary-mid);
  border-radius: 12px;
  padding: 0.45rem 0.85rem;
  box-shadow: var(--cc-shadow);
}

.cc-finder-icon {
  font-size: 1.1rem;
  color: var(--cc-primary);
  user-select: none;
}

.cc-finder-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.96rem;
  color: var(--cc-ink);
  background: transparent;
  padding: 0.35rem 0;
}

.cc-finder-reset {
  background: var(--cc-surface-soft);
  border: 1px solid var(--cc-line);
  color: var(--cc-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: 7px;
  cursor: pointer;
}

.cc-finder-reset:hover {
  background: var(--cc-primary);
  color: #fff;
}

.cc-hot-keywords {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--cc-muted);
}

.cc-chip-btn {
  border: 1px solid var(--cc-line);
  background: var(--cc-surface);
  color: #2a3c36;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cc-chip-btn:hover {
  border-color: var(--cc-primary);
  background: var(--cc-tag-bg);
  color: var(--cc-primary);
}

/* Workspace Two-Column Layout */
.cc-workspace {
  max-width: 1360px;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 1.6rem;
  align-items: start;
}

/* Left Category Rail */
.cc-rail {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  padding: 1rem;
  position: sticky;
  top: 76px;
  box-shadow: var(--cc-shadow);
}

.cc-rail-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cc-muted);
  padding: 0.2rem 0.5rem 0.65rem;
  border-bottom: 1px solid var(--cc-line);
  margin-bottom: 0.55rem;
}

.cc-rail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.cc-rail-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.87rem;
  font-weight: 600;
  color: #2b3a35;
  padding: 0.44rem 0.6rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.cc-rail-list a:hover {
  background: var(--cc-tag-bg);
  color: var(--cc-primary);
}

.cc-rail-num {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--cc-muted);
  background: var(--cc-surface-soft);
  padding: 0.08rem 0.42rem;
  border-radius: 99px;
}

/* Main Stage Sections */
.cc-stage {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cc-sector {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--cc-shadow);
  scroll-margin-top: 84px;
}

.cc-sector-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--cc-line);
}

.cc-sector-head h2 {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--cc-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cc-badge-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cc-primary);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
}

.cc-sector-desc {
  font-size: 0.85rem;
  color: var(--cc-muted);
}

/* 4-Column Launcher Card Grid */
.cc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
}

.cc-site-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--cc-line);
  border-radius: 11px;
  padding: 0.85rem 0.95rem;
  background: #fcfdfc;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cc-site-card:hover {
  transform: translateY(-2px);
  border-color: var(--cc-primary-mid);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(23, 63, 53, 0.08);
}

.cc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.cc-site-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cc-ink);
}

.cc-host-pill {
  font-size: 0.71rem;
  color: var(--cc-tag-txt);
  background: var(--cc-tag-bg);
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-site-memo {
  font-size: 0.81rem;
  color: var(--cc-muted);
  line-height: 1.45;
}

.cc-empty-notice {
  display: none;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--cc-surface);
  border: 1px dashed var(--cc-line);
  border-radius: var(--cc-radius);
  color: var(--cc-muted);
}

/* Editorial Summary & FAQ Block */
.cc-editorial-box {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  padding: 1.5rem;
  margin-top: 0.5rem;
}

.cc-editorial-box h2 {
  font-size: 1.15rem;
  color: var(--cc-primary);
  margin-bottom: 0.8rem;
}

.cc-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
}

.cc-note-item {
  background: var(--cc-surface-soft);
  border-radius: 10px;
  padding: 1rem;
}

.cc-note-item h3 {
  font-size: 0.94rem;
  color: var(--cc-primary);
  margin-bottom: 0.35rem;
}

.cc-note-item p {
  font-size: 0.84rem;
  color: #3a4b45;
}

/* Subpage Table & Breadcrumb */
.cc-SingleWrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.8rem 1.25rem 3.5rem;
}

.cc-breadcrumb {
  font-size: 0.83rem;
  color: var(--cc-muted);
  margin-bottom: 1rem;
}

.cc-breadcrumb a {
  color: var(--cc-primary);
  font-weight: 600;
}

.cc-table-wrap {
  overflow-x: auto;
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  margin: 1.25rem 0 1.8rem;
}

.cc-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cc-data-table th {
  background: var(--cc-surface-soft);
  color: var(--cc-primary);
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--cc-line);
}

.cc-data-table td {
  padding: 0.82rem 1rem;
  border-bottom: 1px solid var(--cc-line);
  vertical-align: top;
}

.cc-data-table tr:last-child td { border-bottom: none; }

.cc-go-btn {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--cc-primary);
  color: #fff;
  font-size: 0.79rem;
  font-weight: 600;
  border-radius: 6px;
}

.cc-go-btn:hover { background: var(--cc-primary-mid); }

/* Footer */
.cc-footer {
  background: #132923;
  color: #b7c9c2;
  padding: 2.2rem 1.25rem;
  font-size: 0.84rem;
  border-top: 1px solid #25473d;
}

.cc-footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cc-footer strong { color: #ffffff; }

.cc-footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cc-footer-links a { color: #d5e4de; }
.cc-footer-links a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .cc-workspace {
    grid-template-columns: 1fr;
  }
  .cc-rail {
    position: static;
    padding: 0.75rem;
  }
  .cc-rail-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    gap: 0.4rem;
  }
  .cc-rail-list li { flex-shrink: 0; }
  .cc-rail-num { display: none; }
}
