/* ==========================================================
   다올한(Daolhan) 정통 에디토리얼 테마
   - 한지(Paper Texture) 미세 배경
   - 고품격 세리프 & 산세리프 조화
   - 정밀 반응형 그리드 & 시각적 뱃지 시스템
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Noto+Serif+KR:wght@400;600;700;900&family=Pretendard:wght@300;400;500;600;700&display=swap');

:root {
  --bg-sand: #f8f6f0;
  --bg-paper: #ffffff;
  --bg-card: #fdfcf9;
  --bg-subtle: #f1ede4;
  --text-main: #201e1c;
  --text-muted: #5e5a55;
  --text-light: #8e8982;
  --border-main: #e2ded5;
  --border-light: #ece9e1;
  --primary-deep: #193832;
  --primary-gold: #966b3b;
  --primary-accent: #2e6054;
  --primary-hover: #122723;
  --badge-green: #e6efe9;
  --badge-green-text: #1d5f38;
  --font-serif: "Noto Serif KR", "Cinzel", Georgia, serif;
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(32, 30, 28, 0.05);
  --shadow-md: 0 4px 14px rgba(32, 30, 28, 0.07);
}

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

body {
  background-color: var(--bg-sand);
  background-image: 
    radial-gradient(var(--border-light) 0.75px, transparent 0.75px),
    linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(248,246,240,0.95) 100%);
  background-size: 24px 24px, 100% 100%;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.site-header {
  border-bottom: 1px solid var(--border-main);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
}
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-symbol {
  width: 34px;
  height: 34px;
  background: var(--primary-deep);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 17px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.5px;
  color: var(--primary-deep);
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--primary-gold);
  text-transform: uppercase;
  font-weight: 600;
}

.header-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-green);
  color: var(--badge-green-text);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(29, 95, 56, 0.2);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.hero-section {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border-main);
  background: linear-gradient(180deg, #ffffff 0%, rgba(248, 246, 240, 0.7) 100%);
}
.hero-tagline {
  font-family: var(--font-serif);
  color: var(--primary-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 30px;
}

.search-wrapper {
  position: relative;
  max-width: 640px;
  margin-bottom: 24px;
}
.search-input-field {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-size: 16px;
  border: 1px solid var(--border-main);
  border-radius: 10px;
  background: var(--bg-paper);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all 0.2s ease;
}
.search-input-field:focus {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 4px rgba(46, 96, 84, 0.12);
}
.search-icon-svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.stat-box {
  background: var(--bg-paper);
  border: 1px solid var(--border-main);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.1;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.tab-filter-bar {
  display: flex;
  gap: 8px;
  margin: 36px 0 28px;
  border-bottom: 2px solid var(--border-main);
  padding-bottom: 12px;
  overflow-x: auto;
}
.tab-btn {
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tab-btn:hover { background: var(--bg-subtle); color: var(--text-main); }
.tab-btn.active { background: var(--primary-deep); color: #fff; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}
.cat-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-main);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-accent);
  box-shadow: 0 8px 20px rgba(32, 30, 28, 0.08);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.card-icon-title { display: flex; align-items: center; gap: 12px; }
.cat-icon-circle {
  width: 42px;
  height: 42px;
  background: var(--bg-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-deep);
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}
.cat-badge-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--primary-gold);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}
.cat-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.cat-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}
.cat-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 10px 0 16px;
  flex-grow: 1;
}

.preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
  margin-bottom: 16px;
}
.chip {
  font-size: 12px;
  background: var(--bg-sand);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}
.card-footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-accent);
}

.sub-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border-main);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-sand) 100%);
}
.breadcrumb-nav { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumb-nav a { color: var(--primary-accent); text-decoration: none; }
.sub-title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.sub-page-h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
}
.sub-badge {
  background: var(--badge-green);
  color: var(--badge-green-text);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}
.sub-desc { font-size: 15px; color: var(--text-muted); max-width: 720px; }

.link-items-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.link-row-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-main);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.link-row-card:hover {
  border-color: var(--primary-accent);
  box-shadow: 0 6px 16px rgba(32, 30, 28, 0.06);
}
.link-meta-main { display: flex; align-items: flex-start; gap: 16px; }
.link-check-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--badge-green);
  color: var(--badge-green-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.link-row-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-service-tag {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--primary-gold);
  padding: 2px 8px;
  border-radius: 4px;
}
.link-url-text {
  font-size: 13px;
  color: var(--primary-accent);
  font-family: monospace;
  font-weight: 600;
  margin: 2px 0 4px;
}
.link-summary-text { font-size: 14px; color: var(--text-muted); }
.link-actions-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-copy-url {
  padding: 10px 14px;
  background: var(--bg-sand);
  border: 1px solid var(--border-main);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.btn-direct-link {
  padding: 10px 18px;
  background: var(--primary-deep);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-direct-link:hover { background: var(--primary-hover); }

.status-report-section {
  margin: 64px 0 32px;
  background: var(--bg-paper);
  border: 1px solid var(--border-main);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.status-report-section h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px;
}
.status-report-section p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13.5px; text-align: left; }
.report-table th {
  background: var(--bg-sand);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-main);
}
.report-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-light); color: var(--text-muted); }
.code-badge-ok {
  display: inline-block;
  background: var(--badge-green);
  color: var(--badge-green-text);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.principles-section {
  margin: 50px 0;
  background: var(--bg-paper);
  border: 1px solid var(--border-main);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.principles-section h2 {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 800;
  margin-bottom: 8px;
}
.principles-section > p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 30px; }
.principle-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.p-card {
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  border-radius: 8px;
  padding: 20px;
}
.p-card-num {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-gold);
  margin-bottom: 8px;
}
.p-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.p-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

footer {
  border-top: 1px solid var(--border-main);
  background: var(--bg-paper);
  padding: 48px 0;
  margin-top: 80px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }

@media (max-width: 900px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .principle-cards { grid-template-columns: 1fr; }
  .link-row-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .link-actions-group { width: 100%; justify-content: flex-end; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 26px; }
  .stats-bar { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; gap: 12px; align-items: flex-start; }
}


/* Hero Action Buttons (Red & Blue signature style) */
.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-hero-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  background-color: #b91c1c;
  background-image: linear-gradient(180deg, #c52222 0%, #a81515 100%);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.28);
  border: 1px solid rgba(153, 27, 27, 0.8);
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-hero-red:hover {
  background-image: linear-gradient(180deg, #d32f2f 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.38);
}

.btn-hero-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  background: linear-gradient(180deg, #2b63db 0%, #1e4bb5 100%);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(43, 99, 219, 0.42);
  border: 1px solid rgba(30, 75, 181, 0.9);
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-hero-blue:hover {
  background: linear-gradient(180deg, #3872ea 0%, #2558ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 99, 219, 0.55);
}


/* FAQ Accordion Section (Editorial Style matching screenshot) */
.faq-section {
  margin: 60px 0 40px;
  background: var(--bg-paper);
  border: 1px solid var(--border-main);
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
}

.faq-header-tag {
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-header-tag::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #b91c1c;
}

.faq-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 28px;
  letter-spacing: -0.6px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-main);
}

.faq-item {
  border-bottom: 1px solid var(--border-main);
}

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.faq-question-btn:hover {
  background: var(--bg-sand);
}

.faq-q-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Red 問 Badge */
.faq-badge-mun {
  width: 24px;
  height: 24px;
  border: 1.5px solid #b91c1c;
  border-radius: 3px;
  color: #b91c1c;
  font-size: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
}

.faq-q-text {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.faq-toggle-icon {
  font-size: 18px;
  font-weight: 400;
  color: #666;
  margin-left: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background: var(--bg-sand);
  padding: 0 16px 0 52px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 16px 20px 20px 52px;
  transition: max-height 0.3s ease-in-out;
  border-top: 1px dashed var(--border-light);
}
