/* ===== CSS 변수 정의 ===== */
:root {
  /* 공통 색상 */
  --primary-blue: #4a90e2;
  --primary-blue-dark: #357abd;
  --light-blue-bg: #f7faff;
  --light-blue-border: #e3eaf3;
  --light-blue-hover: #e3f0ff;
  --light-blue-focus: #eaf4ff;
  --light-blue-active: #ddefff;
  
  /* 경고/주의 색상 */
  --warning-red: #e94e77;
  --warning-bg: #fff6f6;
  --warning-text: #b94a4a;
  --warning-border: #ffebee;
  
  /* 체크리스트 색상 */
  --checklist-orange: #f5a623;
  --checklist-bg: #fffbe7;
  --checklist-text: #7a5a00;
  --checklist-title-bg: #fff3c1;
  --checklist-title-text: #b97a00;
  
  /* 카드 배경색 */
  --card-green: #e8f5e8;
  --card-orange: #fff3e0;
  --card-blue: #e3f2fd;
  --card-gray: #f8f9fa;
  --card-yellow: #ffe082;
  --card-light-gray: #f0f0f0;
  --card-light-gray-shadow: #dcdcdc;
  --card-light-yellow: #fffde7;
  --card-light-green: #e0f0e0;
  --card-light-green-shadow: #c0e0c0;
  --card-light-blue: #e0e8f0;
  --card-light-blue-shadow: #c0d0e0;
  --card-light-mint: #f1f8e9;
  --card-light-purple: #e8e0f0;
  --card-light-purple-shadow: #d8c0e0;
  --card-light-red: #f0e0e0;
  --card-light-red-shadow: #e0c0c0;
  
  /* 제목 배경색 */
  --title-yellow: #ffe0b2;
  --title-green: #c8e6c9;
  --title-blue: #b2ebf2;
  --title-light-blue: #e3f2fd;
  --title-light-gray: #f0f4fa;
  --title-bg-color: rgba(159, 159, 159, 0.15);
  
  /* 텍스트 색상 */
  --text-orange: #e65100;
  --text-green: #388e3c;
  --text-blue: #00838f;
  --text-red: #c62828;
  --text-dark: #2c3e50;
  --text-gray: #495057;
  --text-light-gray: #666;
  
  /* 배경색 */
  --bg-light: #f9fafb;
  --bg-lighter: #f3f3f3;
  --bg-white: #fff;
  --bg-code: #f0f4fa;
  
  /* 공통 그림자 */
  --shadow-light: 0 2px 8px rgba(74,144,226,0.08);
  --shadow-medium: 0 4px 16px rgba(74,144,226,0.08);
  --shadow-dark: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-subtle: 0 1px 4px rgba(0,0,0,0.02);
  --shadow-blue: 0 2px 8px rgba(33,150,243,0.07);
  --shadow-green: 0 2px 8px rgba(76,175,80,0.07);
  --shadow-orange: 0 2px 8px rgba(245,166,35,0.07);
  --shadow-cyan: 0 2px 8px rgba(0,188,212,0.07);
  --shadow-mint: 0 2px 8px rgba(139,195,74,0.07);
  --shadow-purple: 0 2px 8px rgba(171, 71, 188, 0.07);
  --shadow-black: 0 2px 8px rgba(0,0,0,0.08);
  
  /* 공통 간격 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.7rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.2rem;
  --spacing-xl: 1.5rem;
  --spacing-xxl: 2rem;
  
  /* 공통 border-radius */
  --radius-sm: 0.3rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.7rem;
  --radius-xl: 0.8rem;
  --radius-xxl: 1.2rem;
  
  /* 공통 폰트 */
  --font-awesome: 'Font Awesome 6 Free';
  --font-mono: 'Consolas', monospace;
  
  /* 공통 크기 */
  --size-xs: 0.8rem;
  --size-sm: 0.9rem;
  --size-md: 1rem;
  --size-lg: 1.1rem;
  --size-xl: 1.2rem;
  --size-xxl: 1.4rem;
  
  /* 공통 간격 (작은 값) */
  --gap-xs: 0.2rem;
  --gap-sm: 0.3rem;
  --gap-md: 0.5rem;
  --gap-lg: 0.8rem;
  --gap-xl: 1.2rem;
}

/* ===== 1. 기본 레이아웃 스타일 ===== */
/* 콘텐츠 카드 기본 스타일 */
.card-box {
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-light);
  margin: var(--spacing-lg) 0;
  position: relative;
}

.card-box h3, .card-box h4 {
  border-radius: var(--radius-lg);
  padding: var(--spacing-xs) var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  font-size: var(--size-lg);
}

.card-box ul {
  padding-left: 1.7em;
  margin-left: 0;
  list-style: disc inside;
}

/* 콘텐츠 본문 레이아웃 */
.content-body {
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  box-sizing: border-box;
  padding: 0 1.2rem;
  display: flex;
  flex-direction: column;
  overflow: visible !important;
}

.content-body ul {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.content-body li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.7;
}

/* ===== 2. 카드 레이아웃 스타일 ===== */
/* 공통 카드 레이아웃 (모든 카드에 적용) */
.benefits, .step-guide, .sub-method, .breed-card, .checklist, .fun-fact, .info-box, .highlight, .tip, .references, .management, .cause, .diagnosis, .nutrition, .environment, .challenges, .activity, .health-check, .warning, .status-card, .quote-box, .care-action {
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-light);
  margin: var(--spacing-md) 0;
  position: relative;
  padding: 1.2em;
}

/* 개별 카드 배경/그림자 스타일 */
/* 배경만 다른 카드들 */
.benefits { background: var(--card-green); }
.highlight {
  background: linear-gradient(135deg, #fffde7 0%, #fff8e1 50%, #fff3e0 100%);
  border-left: 4px solid #ffb300;
  box-shadow: 
    0 4px 16px rgba(255, 179, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
}

.highlight::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tip { background: var(--card-gray); }
.references { background: var(--card-light-gray); }
.activity { background: var(--card-blue); }
.health-check { background: var(--card-light-green); }
.environment { background: var(--card-blue); }

/* 특수 스타일 카드들 */
.checklist { 
  background: var(--checklist-bg); 
  border-left: 4px solid var(--checklist-orange); 
}
.step-guide { 
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%); 
  box-shadow: var(--shadow-medium); 
}
.warning {
  background: linear-gradient(135deg, #fff6f6 70%, #ffeaea 100%);
}

/* 배경 + 그림자 조합 */
.sub-method { background: var(--card-gray); box-shadow: var(--shadow-blue); }
.management { 
  background: linear-gradient(135deg, #f5f5f5 0%, #f0f0f0 50%, #ebebeb 100%); 
  box-shadow: 2px 2px 8px rgba(220, 220, 220, 0.6); 
}
.cause { background: var(--checklist-bg); box-shadow: var(--shadow-orange); }
.diagnosis { background: var(--card-light-blue); box-shadow: var(--shadow-cyan); }
.nutrition { background: var(--card-light-mint); box-shadow: var(--shadow-mint); }

/* 배경 + 테두리 조합 */
.breed-card { background: var(--light-blue-bg); border: 1px solid var(--light-blue-border); }
.fun-fact {
  background:
    url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 10 Q10 12 18 10" stroke="rgba(255,204,128,0.10)" stroke-width="1"/><path d="M5 25 Q20 28 35 25" stroke="rgba(255,204,128,0.13)" stroke-width="1"/><path d="M0 35 Q20 38 40 35" stroke="rgba(255,204,128,0.09)" stroke-width="1"/><path d="M10 0 Q15 20 20 40" stroke="rgba(255,204,128,0.07)" stroke-width="0.7"/><path d="M30 0 Q25 20 20 40" stroke="rgba(255,204,128,0.07)" stroke-width="0.7"/></svg>') repeat,
    var(--card-orange);
  background-size: 40px 40px;
  border: 1px solid #ffcc80;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.08);
}
.fun-fact h3, .fun-fact h4 {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: var(--title-yellow);
  color: var(--text-orange);
  font-weight: 700;
  font-size: var(--size-lg);
  padding: 0.2em 1.2em 0.2em 0.9em;
  border-radius: 1.2em;
  box-shadow: 0 1px 4px rgba(255, 204, 128, 0.13);
}
.fun-fact h3 .fa-lightbulb, .fun-fact h4 .fa-lightbulb {
  color: #ffb300;
  font-size: 1.2em;
  filter: drop-shadow(0 1px 2px rgba(255, 204, 128, 0.18));
  margin-right: 0.2em;
}
.fun-fact h3::before, .fun-fact h4::before {
  content: "\f0eb";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #ffb300;
  font-size: 1.2em;
  margin-right: 0.5em;
  filter: drop-shadow(0 1px 2px rgba(255, 204, 128, 0.18));
  display: inline-block;
  vertical-align: middle;
}
.info-box {
  background:
    radial-gradient(circle at 10px 10px, rgba(234,244,255,0.10) 1.5px, transparent 2px),
    radial-gradient(circle at 30px 30px, rgba(234,244,255,0.10) 1.5px, transparent 2px),
    var(--bg-white);
  background-size: 48px 48px;
}
.challenges { background: var(--card-orange); border: 2px dashed #ff9800; }

/* ===== 3. 카드 제목 스타일 ===== */
/* 공통 카드 제목 스타일 */
.info-box h3, .info-box h4,
.highlight h3, .highlight h4,
.fun-fact h3, .fun-fact h4,
.step-guide h3,
.management h3, .management h4,
.cause h3, .cause h4,
.diagnosis h3, .diagnosis h4,
.nutrition h3, .nutrition h4,
.activity h3, .activity h4,
.environment h3, .environment h4,
.tip h3, .tip h4,
.warning h3, .warning h4,
.checklist h3, .checklist h4,
.sub-method h4,
.references h3, .references h4,
.care-action h3, .care-action h4 {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(90deg, var(--title-bg-color, rgba(168, 168, 168, 0.15)) 0%, transparent 100%);
  color: var(--text-dark);
}

/* highlight 제목에 별 아이콘 추가 */
.highlight h3::before, .highlight h4::before {
  content: "\f005";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #ffb300;
  font-size: 1.2em;
  margin-right: 0.5em;
  filter: drop-shadow(0 1px 2px rgba(255, 179, 0, 0.18));
  display: inline-block;
  vertical-align: middle;
}

/* ===== 4. 버튼 스타일 ===== */
/* 공통 버튼 스타일 */
.cat-btn, .item-btn {
    background: #fafdff;
    border: none !important;
    color: #222;
    font-size: var(--size-lg);
    border-radius: 0.9em;
    box-shadow: var(--shadow-light);
    padding: 0.85em var(--spacing-lg);
    margin-bottom: var(--gap-sm);
    display: flex;
    align-items: center;
    gap: 0.7em;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s;
    outline: none;
}

/* 개별 버튼 스타일 */
.submit-btn { 
  background: var(--primary-blue); 
  color: var(--bg-white); 
  font-size: var(--size-lg); 
  padding: var(--gap-lg) 2.5rem; 
  box-shadow: var(--shadow-light); 
}

/* 버튼 상태 스타일 */
.submit-btn:hover { background: var(--primary-blue-dark); }
.cat-btn:hover, .item-btn:hover, .cat-btn:focus, .item-btn:focus { 
  background: var(--light-blue-focus); 
  color: var(--primary-blue-dark); 
  box-shadow: 0 4px 16px rgba(74,144,226,0.13); 
}
.cat-btn:active, .item-btn:active { 
  background: var(--light-blue-active); 
  color: var(--primary-blue-dark); 
}

/* 카테고리 섹션 버튼 */
.category-section .cat-btn.section {
    background: var(--light-blue-bg);
    color: var(--primary-blue-dark);
    font-size: 1.13em;
    font-weight: 700;
    border: 1.5px solid var(--light-blue-border);
    box-shadow: 0 2px 8px rgba(74,144,226,0.04);
    padding: 1.1em var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    border-radius: 1.1em;
    display: flex;
    align-items: center;
    gap: 0.7em;
}

/* ===== 5. 리스트 스타일 ===== */
/* 공통 리스트 스타일 */
.checklist li, .info-box li, .highlight li, .step-guide li, .sub-method li { 
  position: relative; 
  margin-bottom: var(--spacing-xs); 
  font-size: var(--size-md); 
  line-height: 1.7; 
  list-style: none !important;
}

/* 개별 리스트 스타일 */
.checklist ul { list-style: none; }

/* 특수 케이스 */
.content-article .tip.checklist li { 
  padding-left: 0; 
  font-size: var(--size-sm); 
}

/* 공통 리스트 아이콘 스타일 */
.content-body li::before,
.highlight li::before,
.checklist li::before,
.info-box li:before,
.step-guide li::before {
  font-family: var(--font-awesome);
  font-weight: bold;
  font-size: var(--size-lg);
  display: inline-block;
  margin-right: 0.5em;
}

/* 개별 리스트 아이콘 오버라이드 */
.highlight li::before {
  content: '☆' !important;
  color: var(--checklist-orange);
}

.checklist li::before {
  content: '\f058'; /* Font Awesome 체크 아이콘 */
  color: var(--checklist-orange);
}

.info-box li:before {
  content: '\f05a';
  color: var(--checklist-orange);
}

.step-guide li::before {
  content: '→';
  color: var(--primary-blue);
}

/* ===== 6. 색상 태그 스타일 ===== */
/* 공통 색상 태그 스타일 */
.color-orange, .color-black, .color-brown, .color-dilute, .color-white { 
  font-weight: 600; 
  padding: 0 var(--gap-sm); 
  border-radius: 0.2em; 
}

/* 개별 색상 태그 */
.color-orange { color: var(--bg-white); background: #ff9800; }
.color-black { color: var(--bg-white); background: #222; }
.color-brown { color: var(--bg-white); background: #a0522d; }
.color-dilute { color: #373737; background: #d5d5d5; }
.color-white { color: #444; background: #f5f5f5; border: 1px solid #ddd; }

/* ===== 7. 특수 카드 스타일 ===== */
/* 테두리 제거 */
.tip, .highlight, .info-box, .references { border: none !important; }

/* 보조 팁 스타일 */
.sub-tip {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 0.8rem 1rem;
  margin: 0.8rem 0;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: #495057;
  font-style: italic;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.sub-tip::before {
  content: "💡";
  margin-right: 0.5rem;
  font-style: normal;
}

/* 단계별 진행 가이드 */
.step-guide li:last-child { margin-bottom: 0; }
.step-guide ul { 
  list-style: none; 
  background: rgba(255,255,255,0.7); 
  border-radius: var(--radius-xl); 
  padding: var(--spacing-md) var(--spacing-lg); 
  margin: var(--spacing-xs) 0 0 0; 
}

/* 메소드 리스트 */
.method-list { margin: var(--spacing-xl) 0; }
.sub-method li:last-child { margin-bottom: 0; }
.sub-method p { margin: 0 0 var(--gap-lg) 0; line-height: 1.5; }
.sub-method ul { list-style: none !important; padding-left: 0 !important; margin-left: 0 !important; }

/* 서브 메소드 아이콘 */
.icon-info::before { content: 'ℹ️'; margin-right: var(--gap-md); }
.icon-reward::before { content: '🍬'; margin-right: var(--gap-md); }
.icon-step::before { content: '🔄'; margin-right: var(--gap-md); }
.icon-example::before { content: '💡'; margin-right: var(--gap-md); }

/* 기타 개별 스타일 */
.disclaimer {
  background: linear-gradient(135deg, #fff0f0 60%, #ffeaea 100%);
  border: 1.5px dashed #ffb3b3;
  color: #b94a4a;
  font-size: 0.98em;
  padding: 1.1em 1.5em 1.1em 2.8em;
  border-radius: 1.2em;
  margin: 1.2em 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(233, 78, 119, 0.07);
  font-style: italic;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
}
.disclaimer::before {
  content: '❗';
  display: inline-block;
  margin-right: 0.7em;
  font-size: 1.5em;
  color: #e94e77;
  vertical-align: middle;
  position: static;
  opacity: 1;
  margin-left: -1.5em;
}
.challenges h4 { margin-left: 0; }

/* ===== 8. 참고문헌 스타일 ===== */
.references h3 {
  position: static !important;
  display: inline-block !important;
  padding: 0 var(--spacing-md) !important;
  margin: 0 auto 0.9em auto !important;
  border-radius: var(--radius-lg) !important;
  background: var(--title-light-gray) !important;
  color: var(--primary-blue-dark) !important;
  font-weight: 700;
  font-size: var(--size-lg);
  text-align: center;
  width: fit-content;
  max-width: 100%;
}
.references h3::before {
  position: static !important;
  display: inline-block;
  margin-right: 0.5em;
  vertical-align: middle;
}
.references ul {
  list-style: none;
  padding-left: 1.7em;
  margin-left: 0;
}
.references li { 
  position: relative; 
  margin-bottom: var(--spacing-xs); 
  font-size: var(--size-md); 
  line-height: 1.7; 
}
.references li::before { 
  content: '\f15c'; 
  font-family: var(--font-awesome); 
  font-weight: 900; 
  position: absolute; 
  left: 0; 
  color: #666; 
  font-size: var(--size-md); 
}
.references li:not(:last-child) { border-bottom: 1px solid #f0f4fa; }

/* ===== 9. 경고 스타일 ===== */
.warning strong { 
  position: relative; 
  color: var(--warning-text) !important; 
  font-weight: 700; 
  padding-left: 1.5em; 
  display: inline-block; 
}
.warning strong::before { 
  content: "⚠️"; 
  position: absolute; 
  left: 0; 
  top: var(--gap-xs); 
  font-size: var(--size-lg); 
  color: var(--warning-red); 
  font-weight: normal; 
}
.warning ul li { color: var(--warning-red); }
.warning ul ul li::before, .warning li::before { content: none !important; }
.tip ul, .warning ul { padding-left: 1.7em; margin-left: 0; }
.tip li, .warning li { list-style: disc inside; margin-left: 0; padding-left: 0; }
.warning h3::before { 
  content: '\f06a'; 
  font-family: var(--font-awesome); 
  font-weight: 900; 
  font-style: normal; 
  color: var(--checklist-orange); 
  font-size: var(--size-sm); 
  margin-right: var(--gap-md); 
  vertical-align: middle; 
  display: inline-block; 
  width: 1.2em; 
  text-align: center; 
}
.warning h4::before { 
  content: '\f071'; 
  font-family: var(--font-awesome); 
  font-weight: 900; 
  font-style: normal; 
  color: #d32f2f; 
  font-size: var(--size-md); 
  margin-right: var(--gap-md); 
  vertical-align: middle; 
  display: inline-block; 
  width: 1.2em; 
  text-align: center; 
}
/* ===== 10. 콘텐츠 아티클 내부 요소 스타일 ===== */
/* 테이블 스타일 */
.content-article table { 
  width: 100%; 
  border-collapse: collapse; 
  margin: var(--spacing-md) 0; 
  background: var(--bg-white); 
  border-radius: var(--radius-xl); 
  overflow: hidden; 
  box-shadow: var(--shadow-subtle); 
}
.content-article table thead { background: var(--light-blue-bg); }
.content-article table th { 
  padding: var(--spacing-md); 
  text-align: left; 
  font-weight: 600; 
  color: var(--primary-blue); 
  border-bottom: 2px solid var(--light-blue-border); 
}
.content-article table td { 
  padding: var(--gap-lg) var(--spacing-md); 
  border-bottom: 1px solid #f0f4fa; 
  line-height: 1.5; 
}
.content-article table tr:last-child td { border-bottom: none; }

/* details/summary 스타일 */
.content-article details { 
  margin: var(--gap-lg) 0; 
  border: 1px solid var(--light-blue-border); 
  border-radius: var(--radius-lg); 
  overflow: hidden; 
}
.content-article details summary { 
  padding: var(--spacing-md); 
  background: var(--light-blue-bg); 
  cursor: pointer; 
  font-weight: 500; 
  color: var(--primary-blue); 
  transition: background 0.2s; 
}
.content-article details summary:hover { background: var(--light-blue-hover); }
.content-article details p { 
  padding: var(--spacing-md); 
  margin: 0; 
  background: var(--bg-white); 
  border-top: 1px solid var(--light-blue-border); 
}

/* 텍스트 스타일 */
.content-article code { 
  background: var(--bg-code); 
  padding: var(--gap-xs) var(--gap-sm); 
  border-radius: var(--radius-sm); 
  font-family: var(--font-mono); 
  font-size: var(--size-sm); 
  color: var(--warning-red); 
}
.content-article strong { color: var(--primary-blue); font-weight: 600; }
.content-article u { 
  text-decoration: none; 
  border-bottom: 2px solid #f17070; 
  padding-bottom: 1px; 
}
.warn { 
  color: var(--warning-red); 
  font-weight: 500; 
  position: relative; 
  padding: 0 var(--gap-sm); 
}
.warn::after { 
  content: ''; 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  width: 100%; 
  height: 2px; 
  background: var(--warning-red); 
  opacity: 0.3; 
}
sup { 
  color: var(--primary-blue); 
  font-size: var(--size-xs); 
  font-weight: 600; 
  margin-left: var(--gap-sm); 
}
em { 
  color: var(--text-light-gray); 
  font-style: normal; 
  font-weight: 500; 
}

/* 콘텐츠 아티클 제목 */
.content-article h4 { 
  color: var(--primary-blue-dark); 
  font-size: var(--size-lg); 
  margin: var(--spacing-lg) 0 var(--spacing-xs) 0; 
  font-weight: 600; 
  letter-spacing: -0.5px; 
}

/* 중첩 리스트 */
.content-article ul ul { 
  background: var(--light-blue-bg); 
  border-radius: var(--radius-md); 
  padding: var(--spacing-sm) var(--spacing-lg); 
  margin: var(--spacing-xs) 0 var(--spacing-xs) 0; 
  font-size: 0.97em; 
}

/* ===== 11. 특수 컴포넌트 스타일 ===== */
/* Timeline 스타일 */
.timeline { 
  display: grid; 
  grid-template-columns: auto 1fr; 
  gap: var(--gap-lg); 
  margin: var(--spacing-xl) 0; 
  background: var(--light-blue-bg); 
  padding: var(--spacing-lg); 
  border-radius: var(--radius-xl); 
}
.timeline .year { 
  color: var(--primary-blue); 
  font-weight: 600; 
  padding-right: var(--spacing-md); 
  border-right: 2px solid var(--light-blue-border); 
  position: relative; 
  padding-left: var(--spacing-lg); 
}
.timeline .year::before { 
  content: '\f017'; 
  font-family: var(--font-awesome); 
  font-weight: 900; 
  position: absolute; 
  left: 0; 
  top: var(--gap-xs); 
  color: var(--primary-blue); 
  font-size: var(--size-sm); 
}
.timeline div:not(.year) { color: #444; line-height: 1.5; }

/* Breed List 스타일 */
.breed-list { margin: 0; padding: 0; }
.breed-list dt { 
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.breed-list dd { 
  display: flex; 
  align-items: flex-start; 
  gap: var(--spacing-xxl); 
  background: var(--bg-light); 
  border-radius: var(--radius-xxl); 
  box-shadow: var(--shadow-dark); 
  padding: var(--spacing-xxl); 
  margin: 0 0 2.5rem 0; 
  transition: all 0.2s ease; 
}
.breed-list dd:hover { 
  background: var(--bg-white); 
  box-shadow: var(--shadow-dark); 
  transform: translateY(-2px); 
}
.breed-list .breed-image { 
  flex-shrink: 0; 
  width: 256px; 
  height: 256px; 
  border-radius: var(--spacing-md); 
  object-fit: cover; 
  box-shadow: var(--shadow-black); 
  background: var(--bg-lighter); 
  transition: transform 0.2s ease; 
}
.breed-list .breed-image:hover { transform: scale(1.02); }
.breed-list .breed-desc { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  gap: var(--spacing-md); 
  padding: var(--spacing-xs) 0; 
}
.breed-list .breed-name { 
  margin: 0 0 var(--spacing-xs); 
  padding: var(--spacing-xs) var(--spacing-md); 
  font-size: var(--size-xl); 
  color: var(--bg-white); 
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark)); 
  border-radius: 2rem; 
  display: inline-block; 
  box-shadow: 0 2px 4px rgba(74,144,226,0.2); 
  letter-spacing: -0.02em; 
}
.breed-list .breed-meta { 
  display: flex; 
  align-items: baseline; 
  gap: var(--spacing-md); 
  line-height: 1.6; 
}
.breed-list .breed-meta .label, .breed-list .breed-meta .desc { font-size: var(--size-md); }
.breed-list .breed-meta .label { 
  color: var(--primary-blue); 
  font-weight: 600; 
  min-width: 3em; 
  flex-shrink: 0; 
}
.breed-list .breed-meta .desc { 
  color: var(--text-dark); 
  word-break: keep-all; 
  line-height: 1.7; 
}

/* 폼 스타일 */
#quizForm .form-group { 
  display: flex; 
  flex-direction: column; 
  gap: var(--spacing-sm); 
  margin: var(--spacing-sm) 0 var(--gap-xs) 0; 
}
#quizForm label { 
  font-size: var(--size-md); 
  color: #333; 
  padding-left: var(--spacing-lg); 
  position: relative; 
  cursor: pointer; 
  transition: color 0.2s; 
}
#quizForm input[type="radio"] { 
  accent-color: var(--primary-blue); 
  margin-right: var(--spacing-sm); 
  position: absolute; 
  left: 0; 
  top: var(--gap-xs); 
}

/* 결과 카드 스타일 */
.result-container { 
  margin-top: 2.5rem; 
  display: flex; 
  flex-direction: column; 
  gap: var(--spacing-xl); 
  align-items: stretch; 
  justify-content: flex-start; 
}
.breed-card p { 
  margin: var(--gap-xs) 0; 
  color: #444; 
  font-size: var(--size-sm); 
}
.breed-card .why { 
  color: var(--warning-red); 
  font-size: var(--size-sm); 
  margin-top: var(--gap-sm); 
  font-style: italic; 
}

/* 콘텐츠 아티클 기본 스타일 */
.content-article {
    box-shadow: 0 4px 24px rgba(74,144,226,0.10);
    border-radius: 1.5rem;
    background: #fff;
    overflow: visible !important;
}

.content-article h2 {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff !important;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 2rem;
  padding: 1.2rem 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 1.2rem 1.2rem 0 0;
  box-shadow: 0 2px 8px rgba(74,144,226,0.07);
  max-width: 700px;
  width: 100%;
  left: 0;
  right: 0;
  display: block;
}

/* ===== 12. 반응형 스타일 ===== */
@media (max-width: 768px) {
  .breed-list dd { flex-direction: column; padding: var(--spacing-lg); gap: var(--spacing-xl); }
  .breed-list .breed-image { width: 100%; height: auto; aspect-ratio: 1; margin: 0 auto; }
  .breed-list .breed-meta { flex-direction: column; gap: var(--gap-sm); }
  .breed-list .breed-meta .label { color: var(--primary-blue-dark); font-size: var(--size-md); }
  .breed-list .breed-meta .desc { font-size: var(--size-md); padding-left: var(--gap-sm); }
}

@media (max-width: 800px) { 
  .content-article { padding: var(--spacing-lg) 0.5rem; } 
}

@media (max-width: 700px) {
  .content-body {
    max-width: 100%;
    padding: 0 0.5rem;
    gap: 1.2rem;
  }
  .content-article h2 {
    position: static !important;
    font-size: 1.3rem;
    padding: 1.1rem 0 0.7rem 0;
    border-radius: 1.2rem 1.2rem 0 0;
    box-shadow: none;
    background: #fff !important;
    margin: 0 0 1.2rem 0;
    max-width: 100%;
    width: 100%;
    left: 0;
    right: 0;
    display: block;
    text-align: center;
  }
  .breed-card { padding: var(--spacing-md) 0.7rem; }
  .result-container { gap: var(--spacing-md); }
  .step-guide { padding: var(--spacing-lg) var(--spacing-md); }
  .sub-method { padding: var(--spacing-md); margin-bottom: var(--gap-lg); }
  .sub-method h4 { font-size: var(--size-md); }
  .category-section .cat-btn.section { 
    font-size: 1.01em; 
    padding: 0.7em 0.7em; 
    margin-bottom: 0.4em; 
    border-radius: 0.8em; 
    gap: 0.3em; 
  }
  .cat-btn:not(.section), .item-btn { 
    font-size: 0.97em; 
    padding: 0.6em 0.7em; 
    border-radius: 0.7em; 
    gap: 0.3em; 
  }
  .calc-result .result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-xs);
  }
}

/* ===== 상태 카드(구토/소변/대변 등 공통) ===== */
.status-card {
  background: var(--card-light-gray, #f8f9fa);
  border-radius: 1.1em;
  box-shadow: 0 2px 8px rgba(74,144,226,0.08);
  padding: 1.2em 1.2em 1em 1.2em;
  margin-bottom: 1.1em;
}
.status-label {
  display: inline-block;
  font-weight: 700;
  font-size: 1.08em;
  margin-bottom: 0.7em;
  padding: 0.2em 1.2em;
  border-radius: 1.2em;
}
.status-yellow { background: #ffe082; color: #222; }
.status-brown { background: #8B4513; color: #fff; }
.status-green { background: #228B22; color: #fff; }
.status-white { background: #F5F5F5; color: #222; border: 1px solid #ddd; }
.status-black { background: #222; color: #fff; }
.status-red { background: #DC143C; color: #fff; }
.status-pink { background: #FF69B4; color: #fff; }
.status-orange { background: #FF8C00; color: #fff; }
.status-cloudy { background: #F5F5DC; color: #222; }
.status-foamy { background: #F0F8FF; color: #222; }
.status-dark { background: #8B5C2A; color: #fff; }
.status-watery { background: #87CEEB; color: #222; }
.status-hard { background: #D2B48C; color: #222; }
.status-mucus { background: #E6E6FA; color: #222; }

/* 카드형 리스트 및 references 공통화 (폰트/폰트사이즈 제외) */
.card-box li, .references li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: var(--spacing-xs);
  line-height: 1.7;
  list-style: none !important;
}
.card-box li::before, .references li::before {
  position: absolute;
  left: 0;
  display: inline-block;
  width: 1.3em;
  text-align: center;
}

.history-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.history-image-wrap .breed-image {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  box-shadow: 0 4px 16px rgba(74,144,226,0.10);
  background: var(--bg-lighter, #f3f3f3);
  object-fit: contain;
}

/* 따로 빠지는 문구를 위한 quote-box */
.quote-box {
  background: linear-gradient(135deg, #fffef7 0%, #fff8e1 50%, #fff3e0 100%);
  font-style: italic;
  text-align: center;
  font-size: var(--size-md);
  color: #8d6e63;
  box-shadow: 
    0 2px 8px rgba(255, 183, 77, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
}

.quote-box::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 12px;
  font-size: 2.2rem;
  color: rgba(255, 152, 0, 0.6);
  font-family: serif;
}

.quote-box::after {
  content: '"';
  position: absolute;
  bottom: -15px;
  right: 12px;
  font-size: 2.2rem;
  color: rgba(255, 152, 0, 0.6);
  font-family: serif;
}

/* 집사가 할 일 안내 카드 */
.care-action {
  background: linear-gradient(135deg, #f1fdf7 0%, #e0f7fa 100%);
  border: 1.5px solid #b2dfdb;
  color: #24796b;
}
.care-action h5 {
  margin-top: 0;
  margin-bottom: var(--gap-xs);
  font-size: var(--size-md);
  font-weight: 700;
  color: #009688;
}
.care-action ul {
  margin: 0;
  padding-left: 1.2em;
}
.care-action li {
  list-style : none;
  position: relative;
  padding-left: 1.8em;
  margin-bottom: var(--spacing-xs);
}
.care-action li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #26a69a;
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 1.1em;
  display: inline-block;
  width: 1.5em;
  text-align: center;
}

/* ===== 계산기 스타일 ===== */
.calculator-box {
  background: var(--light-blue-bg);
  border: 2px solid var(--light-blue-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-md) 0;
  box-shadow: var(--shadow-light);
}

.calculator-box h4 {
  color: var(--primary-blue);
  margin-bottom: var(--spacing-md);
  font-size: var(--size-lg);
  font-weight: 600;
}

.calc-input {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.calc-input label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 120px;
}

.calc-input input {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--light-blue-border);
  border-radius: var(--radius-md);
  font-size: var(--size-md);
  width: 120px;
  text-align: center;
}

.calc-input input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--light-blue-focus);
}

.calc-note {
  font-size: 0.9em;
  color: var(--text-gray);
  margin: -10px 0 15px 5px;
}

.calc-button {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  font-size: var(--size-lg);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
  margin-bottom: var(--spacing-md);
}

.calc-button:hover {
  background: var(--primary-blue-dark);
}

.calc-divider {
  border: none;
  border-top: 1px solid var(--light-blue-border);
  margin: var(--spacing-sm) 0;
}

.calc-result {
  background: white;
  border: 1px solid var(--light-blue-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.calc-result p {
  margin: 0;
  color: var(--text-gray);
}

.calc-result .result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid #f0f0f0;
}

.calc-result .result-item:last-child {
  border-bottom: none;
}

.calc-result .result-label {
  font-weight: 600;
  color: var(--text-dark);
}

.calc-result .result-value {
  font-weight: 700;
  color: var(--primary-blue);
  font-size: var(--size-lg);
}

@media (max-width: 700px) {
  .calc-input {
    flex-direction: column;
    align-items: stretch;
  }
  
  .calc-input label {
    min-width: auto;
  }
  
  .calc-input input {
    width: 100%;
  }
  
  .calc-result .result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-xs);
  }
}

.farewell-message {
  background: linear-gradient(135deg, #f5f7fa, #e8ecf3);
  border-left: 4px solid var(--primary-blue-dark);
  padding: 1.5em 1.8em 1.5em 3.5em;
  margin: var(--spacing-lg) 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  font-style: italic;
  text-align: center;
  color: var(--text-dark);
  line-height: 1.8;
  position: relative;
}

.farewell-message::before {
  content: '🕯️';
  position: absolute;
  top: 50%;
  left: 1.2em;
  transform: translateY(-50%);
  font-size: 1.2em;
  opacity: 0.6;
}