/* =============================================================================
   EngNaming - Main Stylesheet
   ============================================================================= */

/* Self-hosted fonts (Inter, Outfit) - see public/fonts/ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/inter-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/outfit-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/outfit-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/outfit-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/outfit-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/outfit-800.woff2') format('woff2');
}

/* Site header: logo + brand (top-left) */
.site-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.site-header a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.site-header a:hover {
  color: var(--primary);
}
.site-header .site-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

:root {
  /* Brand Colors - Blue Theme */
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary: #06b6d4;
  --accent: #8b5cf6;

  /* Semantic Colors */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;

  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;

  --error: #ef4444;
  --error-bg: #fef2f2;
  --error-border: #fecaca;

  --info: #3b82f6;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;

  /* Neutrals */
  --bg: #ffffff;
  --bg-subtle: #f9fafb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  /* Borders */
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --glass-border: #e5e7eb;

  /* Card */
  --card-bg: #ffffff;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.hero {
  padding: 4rem 1rem 3rem;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.875rem, 5.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.25;
}

.hero p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero .hero-lead {
  color: var(--text-main);
  font-weight: 500;
}

.hero .hero-sub {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.main-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.main-card::before {
  display: none;
}

.input-section {
  max-width: 100%;
  margin: 0 auto;
}

.search-label {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 0.5rem 0;
}

.search-bar {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--text-main);
  font-size: 1.0625rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar input::placeholder {
  color: var(--text-light);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-btn {
  width: auto;
  flex-shrink: 0;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, filter 0.2s ease;
}

.search-btn:hover {
  background: var(--primary-dark);
  filter: brightness(1.05);
}

.search-btn:active {
  filter: brightness(0.95);
}

.input-group {
  margin-bottom: 2rem;
  position: relative;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input {
  width: 100%;
  background: white;
  border: 2px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  color: var(--text-main);
  font-size: 1.25rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

button {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 1rem;
  padding: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.result-hero-copy,
.candidate-btn,
.result-combination-item {
  width: auto;
}

button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
  filter: brightness(1.1);
}

button:active {
  transform: translateY(0) scale(0.98);
}

.search-btn:hover,
.search-btn:active {
  transform: none;
}

#result {
  margin-top: 4rem;
  display: none;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Result: Korean name summary at top */
.result-korean-summary {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.result-korean-summary strong {
  color: var(--text-main);
}

/* Result hero: single recommended name (no card) */
.result-hero {
  margin-bottom: 2rem;
}

.result-hero-inner {
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.result-hero-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* 영어 이름 + 오른쪽 복사 아이콘 한 줄 */
.result-hero-name-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
}

.result-hero-name-row .val {
  flex: 1;
  min-width: 0;
}

.result-hero .val {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--primary-dark);
}

/* Syllable parts in hero: different colors per syllable */
.result-hero .syl-part.syl-color-0 {
  color: var(--primary-dark);
}
.result-hero .syl-part.syl-color-1 {
  color: #059669;
}
.result-hero .syl-part.syl-color-2 {
  color: #7c3aed;
}
.result-hero .syl-part.syl-color-3 {
  color: #dc2626;
}

.result-hero-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.result-hero-copy:hover {
  color: var(--primary);
  background: var(--card-bg);
  border-color: var(--primary);
}

.result-hero-copy:active {
  transform: scale(0.96);
}

.result-hero-copy-icon {
  display: block;
}

.pronunciation-tag-hero {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
}

/* hero 내 예상 발음: 상단 여백 제거, pill 위아래 패딩 축소 */
.result-hero .pronunciation-tag-hero {
  margin-top: 0;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.result-hero .desc {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.result-disclaimer {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.5;
}
.result-disclaimer-link {
  margin-left: 0.25rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.result-disclaimer-link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.pronunciation-tag-inline {
  margin-left: 0.5rem;
  font-size: 0.7rem;
}

/* Romanization: standard only */
.result-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.result-section-label .result-mofa-link {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-left: 0.35rem;
}

.result-section-label .result-mofa-link:hover {
  color: var(--accent);
}

.result-romanization {
  margin-bottom: 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border-light);
}

.result-romanization-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.result-romanization-row-recommended {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-light);
}
.result-romanization-type {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-main);
  min-width: 5.5rem;
}
.result-romanization-desc {
  font-size: 0.6875rem;
  color: var(--text-muted);
  min-width: 4rem;
}
.result-romanization-row .result-romanization-val {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.result-romanization-val {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.result-romanization-val-parts .result-romanization-syl {
  display: inline;
}

.result-romanization-val-parts .result-romanization-syl.syl-color-0 {
  color: var(--primary-dark);
}
.result-romanization-val-parts .result-romanization-syl.syl-color-1 {
  color: #059669;
}
.result-romanization-val-parts .result-romanization-syl.syl-color-2 {
  color: #7c3aed;
}
.result-romanization-val-parts .result-romanization-syl.syl-color-3 {
  color: #dc2626;
}

.result-romanization-val-parts .result-romanization-syl-diff {
  color: #b91c1c;
  font-weight: 600;
}

.result-romanization .pronunciation-tag-inline {
  margin-left: 0;
}

/* Syllable rows: label + emoji + alternatives + details */
.syl-row {
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}
.syl-row:last-of-type {
  border-bottom: none;
}

.syl-row-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.syl-row-label {
  font-size: 1.125rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  min-width: 4rem;
}
.syl-row-label.syl-color-0 { color: var(--primary-dark); }
.syl-row-label.syl-color-1 { color: #059669; }
.syl-row-label.syl-color-2 { color: #7c3aed; }
.syl-row-label.syl-color-3 { color: #dc2626; }

.syl-row-emoji {
  font-size: 1.25rem;
}

.syl-row-alternatives {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
}

.syl-row-no-alt {
  font-size: 0.875rem;
  color: var(--text-light);
}

.syl-row-details {
  margin-top: 0.75rem;
  border: none;
}

.syl-row-details-summary {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
}
.syl-row-details-summary::-webkit-details-marker {
  display: none;
}
.syl-row-details-summary:hover {
  text-decoration: underline;
}

.syl-row-details-inner {
  padding: 1.25rem 0 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

/* 구조화된 설명: 일관된 순서·간격·타이포 */
.explanation-structured {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.explanation-reason {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
}
.explanation-reason strong {
  font-weight: 700;
  color: var(--text-main);
}
.syl-row-details-inner .stat-container {
  margin-top: 0;
}

/* 통계 + 통계 출처 + 상세 안내를 하나의 카드로 */
.explanation-unified-card {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.explanation-unified-card .stat-container {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.explanation-unified-card .explanation-caution-inline {
  margin-top: 1rem;
  background: var(--card-bg);
}
.explanation-unified-card .explanation-source {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.explanation-unified-card .explanation-detail-inner {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.explanation-unified-card .explanation-detail-inner .explanation-detail-title {
  margin-top: 0;
}

.explanation-source {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.explanation-source strong {
  font-weight: 600;
  color: var(--text-muted);
}
.explanation-source-link {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.explanation-source-link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}
.explanation-source-link:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* 표기 비교 카드: 많이 씀 / 대안 표기 */
.explanation-caution-inline {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.explanation-caution-inline .syl-caution-comparison {
  margin-bottom: 0;
  border: none;
  box-shadow: none;
}
.explanation-caution-inline .syl-caution-comparison:hover {
  transform: none;
  box-shadow: none;
}
.explanation-caution-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0.875rem 0 0 0;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-light);
}
.explanation-caution-text strong {
  color: var(--text-main);
  font-weight: 600;
}

/* 상세 안내: 주의·정책·권고를 하나의 카드로 */
.explanation-detail-card {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.explanation-detail-title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.explanation-detail-row {
  padding: 0.5rem 0 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.explanation-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.explanation-detail-row:first-child {
  padding-top: 0;
}
.explanation-detail-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.explanation-detail-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.explanation-detail-text strong {
  color: var(--text-main);
  font-weight: 600;
}

.explanation-section {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-light);
}
.explanation-section:last-child {
  margin-bottom: 0;
}
.explanation-section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.375rem;
}
.explanation-section-text {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.65;
  margin: 0;
}
.explanation-section-text strong {
  color: var(--text-main);
  font-weight: 700;
}

/* Name combinations list */
.result-combinations {
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
}

.result-combinations .result-section-label {
  margin-bottom: 0.75rem;
}

.result-combinations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-combination-item {
  margin: 0;
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  box-shadow: none;
}

.result-combination-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Accordion: recommendation details (no card) */
.explanation-accordion {
  margin-top: 2rem;
  border: none;
  border-top: 1px solid var(--border-light);
  border-radius: 0;
  overflow: visible;
}

.explanation-summary {
  padding: 1rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  background: transparent;
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast);
}

.explanation-summary::-webkit-details-marker {
  display: none;
}

.explanation-summary:hover {
  color: var(--primary);
}

.explanation-accordion[open] .explanation-summary {
  border-bottom: none;
  margin-bottom: 0.5rem;
}

.explanation-accordion .explanation-area {
  margin-top: 0;
  padding: 1rem 0 1.5rem;
  border-top: none;
}

/* Warnings: simple blocks, no card */
.warn-container {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.warn-block {
  padding: 1.25rem 0;
  border-left: 3px solid var(--warning);
  padding-left: 1rem;
  margin-left: 0;
}

.warn-block .warn-comparison-new {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.warn-block .warn-comparison-new:hover {
  box-shadow: none;
}

.warn-block .warn-footer-new {
  margin-top: 0.75rem;
  padding-top: 0;
  border-top: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.warn-block .warn-val-v2 {
  font-size: 1.125rem;
}

.warn-arrow {
  font-size: 1rem;
  opacity: 0.4;
  flex-shrink: 0;
}

.syl-arrow {
  opacity: 0.35;
  margin: 0 0.25rem;
}

.candidate-pct {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: auto;
}

.syl-caution-arrow {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-light);
  flex-shrink: 0;
  padding: 0 0.5rem;
  align-self: center;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .search-bar {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
  }

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

  .result-hero-inner {
    padding: 0 0 1.25rem;
  }

  .result-hero .val {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
  }

  .main-card {
    padding: 2rem 1.5rem;
  }

  .hero {
    padding: 4rem 1rem 2rem;
  }

  .insights-section {
    grid-template-columns: 1fr;
  }
}

.res-card {
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.res-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-4px);
}

.res-card.featured {
  background: linear-gradient(135deg, #f0f9ff 0%, #eef2ff 100%);
  border-color: #bfdbfe;
}

.res-card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.res-card .val {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.res-card.featured .val {
  background: linear-gradient(to bottom right, #2563eb, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.res-card .desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-box {
  background: white;
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
}

.info-box h3 i {
  color: var(--primary);
}

.info-list {
  list-style: none;
}

.info-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.info-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

.info-list li strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 0.25rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-q {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: block;
}

.faq-a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.about-box {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 700px;
  margin: 2rem auto 0;
}

footer {
  text-align: center;
  padding: 6rem 1.5rem 2rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Content pages (about, privacy, terms, guides) */
body.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  line-height: 1.7;
}

body.content-page .footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

body.content-page h1 {
  color: var(--primary);
  margin-bottom: 1rem;
}

body.content-page h2 {
  margin-top: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  color: var(--text-main);
}

body.content-page p,
body.content-page li {
  color: var(--text-muted);
}

body.content-page a {
  color: var(--primary);
  text-decoration: none;
}

body.content-page .about-brand {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

body.content-page .card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}

body.content-page .guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

body.content-page .guide-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-sm);
}

body.content-page .guide-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

body.content-page .guide-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

body.content-page .guide-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

body.content-page a.home-link {
  color: var(--text-muted);
  text-decoration: none;
}

body.content-page a.home-link:hover {
  color: var(--primary);
}

body.content-page .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

body.content-page .back-link:hover {
  text-decoration: underline;
}

body.content-page .page-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

body.content-page .faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

body.content-page .faq-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

body.content-page .faq-q {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
}

body.content-page .faq-a {
  color: var(--text-main);
  font-size: 1rem;
}

body.content-page .faq-a strong {
  color: var(--primary-dark);
}

body.content-page .stat-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

body.content-page .stat-table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

body.content-page .stat-table th,
body.content-page .stat-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

body.content-page .stat-table th {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 600;
}

body.content-page .highlight {
  color: var(--warning);
  font-weight: 700;
}

body.content-page .tip-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  color: var(--warning);
}

body.content-page .ref-links {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-radius: var(--radius-lg);
}
body.content-page .ref-links h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
body.content-page .ref-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
body.content-page .ref-links li {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}
body.content-page .ref-links li:last-child {
  margin-bottom: 0;
}
body.content-page .ref-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
body.content-page .ref-links a:hover {
  text-decoration: underline;
}

body.content-page .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

body.content-page .check-item {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
}

body.content-page .check-icon {
  font-size: 1.5rem;
  color: var(--secondary);
  flex-shrink: 0;
}

body.content-page .check-content h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--text-main);
}

body.content-page .check-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Result Explanation Section */
.explanation-area {
  margin-top: 4rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 3rem;
}

.exp-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.exp-header h5 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exp-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.syl-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-base);
}

.syl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.syl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.syl-char {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--info-bg) 0%, var(--primary-light) 20%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background-color: var(--bg-subtle);
}

.syl-map {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.syl-divider {
  border-top: 1px solid var(--border-light);
  margin: 0 0 1.25rem 0;
}

.syl-reason {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.syl-reason-first {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.syl-pronunciation {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.candidates {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.candidate-btn {
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: none;
}

.candidate-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--primary-light);
  color: var(--text-main);
}

.candidate-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.candidate-btn .check {
  display: none;
}

.candidate-btn.active .check {
  display: inline;
}

.stat-container {
  background: transparent;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
}

/* Alert System - Syllable Card Cautions */
.syl-card.has-caution {
  border-color: var(--warning-border);
  background: linear-gradient(135deg, var(--warning-bg) 0%, #ffffff 100%);
  transition: all var(--transition-slow);
}

.syl-card.has-caution:hover {
  border-color: var(--warning);
  box-shadow: 0 12px 25px -5px rgba(245, 158, 11, 0.15);
}

.syl-caution-container {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--warning-border);
  animation: fadeIn 0.4s ease-out;
}

.syl-caution-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--warning);
  font-size: 0.8125rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.syl-caution-header i {
  font-size: 1.125rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.syl-caution-comparison {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
  background: var(--bg);
}

.syl-caution-comparison:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.syl-caution-side {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  padding: 1rem 1.25rem;
  min-width: 0;
}

.syl-caution-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.syl-caution-val {
  font-size: 1.375rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.syl-caution-side.avoid {
  background: var(--error-bg);
  color: var(--error);
}

.syl-caution-side.avoid .syl-caution-label {
  color: #b91c1c;
  opacity: 0.9;
}

.syl-caution-side.avoid .syl-caution-val {
  color: var(--error);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--error);
}

/* 선호도 선택(meaning): 피할 표기가 아니라 "덜 선호" vs "많이 씀" 표현 */
.syl-caution-comparison.is-preference .syl-caution-side.avoid.preference-left {
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.syl-caution-comparison.is-preference .syl-caution-side.avoid.preference-left .syl-caution-label {
  color: var(--text-muted);
  opacity: 1;
}
.syl-caution-comparison.is-preference .syl-caution-side.avoid.preference-left .syl-caution-val {
  color: var(--text-main);
  text-decoration: none;
}

.syl-caution-side.recommend {
  background: var(--success-bg);
  color: var(--success);
}

.syl-caution-side.recommend .syl-caution-label {
  color: #047857;
  opacity: 0.9;
}

.syl-caution-side.recommend .syl-caution-val {
  color: #059669;
}

.syl-caution-footer {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.stat-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.875rem;
  display: block;
}

.stat-no-data {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}

.stat-no-data a {
  color: var(--link-color, var(--accent));
  text-decoration: none;
}

.stat-no-data a:hover {
  text-decoration: underline;
}

.stat-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.stat-row:last-child {
  margin-bottom: 0;
}

.stat-label {
  font-weight: 600;
  color: var(--text-main);
  width: 3.5rem;
  font-family: 'Outfit', sans-serif;
}

.progress-track {
  flex-grow: 1;
  height: 0.375rem;
  background: var(--border-light);
  border-radius: var(--radius-full);
  margin: 0 0.75rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-val {
  font-weight: 600;
  color: var(--primary);
  width: 3rem;
  text-align: right;
  font-size: 0.6875rem;
}

.stat-row.top .progress-fill {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stat-row.top .stat-val {
  color: var(--accent);
}

.stat-row.top .stat-label {
  color: var(--text-main);
}

/* 통계 행: 추천 표기와 같으면 검은색 */
.stat-row-recommended .stat-label {
  color: var(--text-main);
}

/* 통계 행: 추천 표기와 다르면 검붉은색 */
.stat-row-other .stat-label {
  color: #8b2500;
}
.stat-row-other .stat-val {
  color: #8b2500;
}

/* 통계 행: 의미상 주의가 필요한 표기(DUCK, BUM, GUN 등) */
.stat-row-problematic .stat-label {
  color: var(--warning);
  font-weight: 700;
}
.stat-row-problematic .progress-fill {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}
.stat-row-problematic .stat-val {
  color: #b45309;
}

.pronunciation-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #7c3aed;
  background: #f5f3ff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 0.75rem;
  border: 1px solid #ede9fe;
  animation: fadeIn 0.4s ease-out;
}

/* Copy Button */
.copy-btn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.35rem 0;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

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


/* Top 3 Combinations */
.top3-container {
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
}

.top3-header {
  font-size: 0.875rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top3-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top3-item {
  background: white;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  font-weight: 800;
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.top3-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.03);
}

/* Persona Badges */
.persona-container {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mask-badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.p-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Passport Checklist */
.checklist-area {
  margin-top: 3rem;
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.check-header {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.check-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: #f8fafc;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.check-item:hover {
  background: white;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.check-icon {
  color: var(--primary);
  font-size: 1.25rem;
}

.check-text h6 {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.check-text p {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
}

/* Download Button */
.download-section {
  margin-top: 2rem;
  text-align: center;
}

.btn-download {
  background: var(--text-main);
  color: white;
  padding: 1rem 2rem;
  border-radius: 1.25rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

/* Warning Cards */

.warn-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.warn-icon-box {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--warning) 0%, var(--accent) 100%);
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 8px 16px -4px rgba(245, 158, 11, 0.3);
  transition: all var(--transition-bounce);
}

.warn-card:hover .warn-icon-box {
  transform: rotate(5deg) scale(1.05);
}

.warn-badge {
  font-size: 0.8125rem;
  color: #92400e;
  font-weight: 800;
  background: white;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--warning-border);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.warn-badge:hover {
  border-color: var(--warning);
  transform: scale(1.02);
}

.warn-divider {
  border-top: 2px dashed var(--warning-border);
  margin: 0 0 1.5rem 0;
}

.warn-comparison-new {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--warning-border);
  transition: all var(--transition-base);
}

.warn-comparison-new:hover {
  border-color: var(--warning);
  box-shadow: var(--shadow-md);
}

.warn-side-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.warn-label-v2 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.warn-val-v2 {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  transition: all var(--transition-base);
}

.warn-side-v2.avoid {
  color: var(--error);
}

.warn-side-v2.avoid .warn-val-v2 {
  text-decoration: line-through;
  text-decoration-thickness: 3px;
}

.warn-comparison-new.is-preference .warn-side-v2.avoid.preference-left {
  color: var(--text-muted);
}
.warn-comparison-new.is-preference .warn-side-v2.avoid.preference-left .warn-val-v2 {
  text-decoration: none;
  color: var(--text-main);
}

.warn-side-v2.recommend {
  color: var(--success);
}

.warn-footer-new {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f1f5f9;
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.warn-footer-new i {
  color: var(--warning);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.warn-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.warn-desc i {
  color: var(--warning);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Insights Section */
.insights-section {
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.insight-card {
  background: white;
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.insight-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.insight-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.insight-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.insight-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Toast */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 1rem 2rem;
  border-radius: 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
/* Breadcrumbs */
.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-light);
  user-select: none;
}

.breadcrumb-item span[aria-current="page"] {
  color: var(--text-main);
  font-weight: 600;
}

/* Guide page images: responsive, accessible */
body.content-page .guide-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg, 8px);
  border: 1px solid var(--border);
}
body.content-page .guide-img-wrap {
  margin: 1.5rem 0;
}
body.content-page .guide-img-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}
