:root {
  --hlr-navy: #1a2744;
  --hlr-navy-light: #243352;
  --hlr-blue: #2563eb;
  --hlr-blue-light: #3b82f6;
  --hlr-blue-pale: #eff6ff;
  --hlr-accent: #0ea5e9;
  --hlr-gold: #d4a853;
  --hlr-gray-50: #f9fafb;
  --hlr-gray-100: #f3f4f6;
  --hlr-gray-200: #e5e7eb;
  --hlr-gray-300: #d1d5db;
  --hlr-gray-400: #9ca3af;
  --hlr-gray-500: #6b7280;
  --hlr-gray-600: #4b5563;
  --hlr-gray-700: #374151;
  --hlr-gray-800: #1f2937;
  --hlr-gray-900: #111827;
  --hlr-white: #ffffff;
  --hlr-bg: #fafbfc;
  --hlr-radius-sm: 6px;
  --hlr-radius-md: 10px;
  --hlr-radius-lg: 16px;
  --hlr-radius-xl: 24px;
  --hlr-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --hlr-shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --hlr-shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --hlr-shadow-xl: 0 20px 50px rgba(0,0,0,0.1);
  --hlr-font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --hlr-font-serif: 'Noto Serif KR', Georgia, serif;
  --hlr-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --hlr-max-w: 1200px;
  --hlr-content-w: 780px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--hlr-font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--hlr-gray-800);
  background: var(--hlr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.hlr-container { max-width: var(--hlr-max-w); margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--hlr-blue); text-decoration: none; transition: color var(--hlr-transition); }
a:hover { color: var(--hlr-blue-light); }
a:focus-visible { outline: 2px solid var(--hlr-blue); outline-offset: 2px; border-radius: 2px; }

/* === HEADER/NAV === */
.hlr-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hlr-gray-200);
  padding: 0 24px;
}
.hlr-header-inner {
  max-width: var(--hlr-max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.hlr-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hlr-logo img { width: 36px; height: 36px; border-radius: var(--hlr-radius-sm); }
.hlr-logo-text { font-weight: 700; font-size: 1.05rem; color: var(--hlr-navy); letter-spacing: -0.02em; }
.hlr-nav { display: flex; gap: 4px; align-items: center; }
.hlr-nav a {
  padding: 8px 14px; border-radius: var(--hlr-radius-sm); font-size: 0.9rem; font-weight: 500;
  color: var(--hlr-gray-600); transition: all var(--hlr-transition);
}
.hlr-nav a:hover { color: var(--hlr-blue); background: var(--hlr-blue-pale); }
.hlr-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hlr-mobile-toggle svg { width: 24px; height: 24px; stroke: var(--hlr-gray-700); }

/* === HERO === */
.hlr-hero {
  position: relative; padding: 100px 24px 80px; overflow: hidden;
  background: linear-gradient(135deg, var(--hlr-navy) 0%, var(--hlr-navy-light) 50%, #1e3a5f 100%);
  color: var(--hlr-white);
}
.hlr-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(37,99,235,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(14,165,233,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hlr-hero-inner {
  max-width: var(--hlr-max-w); margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hlr-hero-content h1 {
  font-family: var(--hlr-font-serif); font-size: 2.8rem; font-weight: 700;
  line-height: 1.25; letter-spacing: -0.03em; margin-bottom: 20px;
}
.hlr-hero-desc {
  font-size: 1.1rem; line-height: 1.8; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 480px;
}
.hlr-hero-img { position: relative; border-radius: var(--hlr-radius-xl); overflow: hidden; box-shadow: var(--hlr-shadow-xl); }
.hlr-hero-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hlr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--hlr-radius-md);
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none;
  transition: all var(--hlr-transition);
}
.hlr-btn-primary { background: var(--hlr-blue); color: var(--hlr-white); }
.hlr-btn-primary:hover { background: var(--hlr-blue-light); color: var(--hlr-white); transform: translateY(-1px); box-shadow: var(--hlr-shadow-md); }
.hlr-btn-outline { background: transparent; color: var(--hlr-white); border: 1.5px solid rgba(255,255,255,0.3); }
.hlr-btn-outline:hover { border-color: rgba(255,255,255,0.6); color: var(--hlr-white); background: rgba(255,255,255,0.08); }

/* === SECTION === */
.hlr-section { padding: 96px 24px; }
.hlr-section-alt { background: var(--hlr-white); }
.hlr-section-title {
  font-family: var(--hlr-font-serif); font-size: 2rem; font-weight: 700;
  color: var(--hlr-gray-900); text-align: center; margin-bottom: 16px; letter-spacing: -0.02em;
}
.hlr-section-sub {
  text-align: center; font-size: 1.05rem; color: var(--hlr-gray-500); max-width: 600px; margin: 0 auto 56px; line-height: 1.7;
}

/* === CARD GRID === */
.hlr-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--hlr-max-w); margin: 0 auto; }
.hlr-card {
  background: var(--hlr-white); border-radius: var(--hlr-radius-lg); overflow: hidden;
  box-shadow: var(--hlr-shadow-sm); border: 1px solid var(--hlr-gray-100);
  transition: all var(--hlr-transition); text-decoration: none; display: flex; flex-direction: column;
}
.hlr-card:hover { transform: translateY(-4px); box-shadow: var(--hlr-shadow-lg); border-color: var(--hlr-gray-200); }
.hlr-card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.hlr-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hlr-card:hover .hlr-card-img img { transform: scale(1.04); }
.hlr-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.hlr-card-cat {
  font-size: 0.78rem; font-weight: 600; color: var(--hlr-blue); text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.hlr-card-title {
  font-size: 1.12rem; font-weight: 700; color: var(--hlr-gray-900); line-height: 1.45;
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.hlr-card-excerpt { font-size: 0.9rem; color: var(--hlr-gray-500); line-height: 1.65; flex: 1; }
.hlr-card-meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hlr-gray-100); font-size: 0.8rem; color: var(--hlr-gray-400); }

/* === FEATURE BLOCKS === */
.hlr-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: var(--hlr-max-w); margin: 0 auto; }
.hlr-feature {
  text-align: center; padding: 40px 28px; border-radius: var(--hlr-radius-lg);
  background: var(--hlr-white); border: 1px solid var(--hlr-gray-100);
  transition: all var(--hlr-transition);
}
.hlr-feature:hover { box-shadow: var(--hlr-shadow-md); border-color: var(--hlr-gray-200); }
.hlr-feature-icon {
  width: 56px; height: 56px; border-radius: var(--hlr-radius-md); margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hlr-blue-pale);
}
.hlr-feature-icon svg { width: 28px; height: 28px; stroke: var(--hlr-blue); fill: none; stroke-width: 1.5; }
.hlr-feature h3 { font-size: 1.1rem; font-weight: 700; color: var(--hlr-gray-900); margin-bottom: 10px; }
.hlr-feature p { font-size: 0.9rem; color: var(--hlr-gray-500); line-height: 1.65; }

/* === FOOTER === */
.hlr-footer {
  background: var(--hlr-gray-900); color: var(--hlr-gray-400); padding: 64px 24px 32px;
}
.hlr-footer-inner { max-width: var(--hlr-max-w); margin: 0 auto; }
.hlr-footer-top { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 40px; flex-wrap: wrap; }
.hlr-footer-brand { max-width: 360px; }
.hlr-footer-brand-name { font-weight: 700; font-size: 1.1rem; color: var(--hlr-white); margin-bottom: 12px; }
.hlr-footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.hlr-footer-links h4 { font-size: 0.85rem; font-weight: 600; color: var(--hlr-gray-300); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.hlr-footer-links ul { list-style: none; }
.hlr-footer-links li { margin-bottom: 8px; }
.hlr-footer-links a { color: var(--hlr-gray-400); font-size: 0.88rem; transition: color var(--hlr-transition); }
.hlr-footer-links a:hover { color: var(--hlr-white); }
.hlr-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; margin-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 0.82rem;
}
.hlr-footer .legal-notice { background: rgba(255,255,255,0.04); border-left-color: rgba(255,255,255,0.12); color: var(--hlr-gray-400); }
.hlr-footer .legal-notice p { color: var(--hlr-gray-400); }

/* === SINGLE POST === */
.hlr-single { max-width: var(--hlr-content-w); margin: 0 auto; padding: 48px 24px 80px; }
.hlr-single-header { margin-bottom: 40px; }
.hlr-single-cat { font-size: 0.82rem; font-weight: 600; color: var(--hlr-blue); margin-bottom: 12px; display: inline-block; }
.hlr-single h1.entry-title, .hlr-single .wp-block-post-title {
  font-family: var(--hlr-font-serif); font-size: 2.2rem; font-weight: 700;
  color: var(--hlr-gray-900); line-height: 1.35; letter-spacing: -0.025em; margin-bottom: 16px;
}
.hlr-single-meta { font-size: 0.88rem; color: var(--hlr-gray-400); }
.hlr-single-hero { margin-bottom: 40px; border-radius: var(--hlr-radius-lg); overflow: hidden; }
.hlr-single-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Post content */
.hlr-single .entry-content, .hlr-single .wp-block-post-content {
  font-size: 1.05rem; line-height: 1.8; color: var(--hlr-gray-700);
}
.hlr-single .entry-content h2, .hlr-single .wp-block-post-content h2 {
  font-family: var(--hlr-font-serif); font-size: 1.55rem; font-weight: 700;
  color: var(--hlr-gray-900); margin: 48px 0 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--hlr-blue-pale); letter-spacing: -0.015em;
}
.hlr-single .entry-content h3, .hlr-single .wp-block-post-content h3 {
  font-size: 1.25rem; font-weight: 700; color: var(--hlr-gray-800);
  margin: 36px 0 16px; padding-left: 14px; border-left: 3px solid var(--hlr-blue);
}
.hlr-single .entry-content p, .hlr-single .wp-block-post-content p { margin-bottom: 18px; }
.hlr-single .entry-content img, .hlr-single .wp-block-post-content img {
  border-radius: var(--hlr-radius-md); margin: 28px 0; box-shadow: var(--hlr-shadow-sm);
}
.hlr-single .entry-content ul, .hlr-single .entry-content ol,
.hlr-single .wp-block-post-content ul, .hlr-single .wp-block-post-content ol {
  margin: 16px 0 20px 20px; line-height: 1.8;
}
.hlr-single .entry-content li, .hlr-single .wp-block-post-content li { margin-bottom: 6px; }
.hlr-single .entry-content blockquote, .hlr-single .wp-block-post-content blockquote {
  border-left: 4px solid var(--hlr-blue); background: var(--hlr-blue-pale);
  padding: 20px 24px; margin: 28px 0; border-radius: 0 var(--hlr-radius-md) var(--hlr-radius-md) 0;
  font-size: 1rem; color: var(--hlr-gray-700);
}
.hlr-single .entry-content table, .hlr-single .wp-block-post-content table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0;
  border-radius: var(--hlr-radius-md); overflow: hidden; border: 1px solid var(--hlr-gray-200);
  font-size: 0.92rem;
}
.hlr-single .entry-content th, .hlr-single .wp-block-post-content th {
  background: var(--hlr-navy); color: var(--hlr-white); padding: 12px 16px;
  font-weight: 600; text-align: left; font-size: 0.88rem;
}
.hlr-single .entry-content td, .hlr-single .wp-block-post-content td {
  padding: 11px 16px; border-bottom: 1px solid var(--hlr-gray-100);
}
.hlr-single .entry-content tr:nth-child(even), .hlr-single .wp-block-post-content tr:nth-child(even) { background: var(--hlr-gray-50); }
.hlr-single .entry-content tr:hover td, .hlr-single .wp-block-post-content tr:hover td { background: var(--hlr-blue-pale); }

/* Callout */
.hlr-callout {
  background: linear-gradient(135deg, var(--hlr-blue-pale) 0%, #f0f4ff 100%);
  border: 1px solid rgba(37,99,235,0.12); border-radius: var(--hlr-radius-md);
  padding: 20px 24px; margin: 24px 0;
}
.hlr-callout-title { font-weight: 700; color: var(--hlr-blue); margin-bottom: 8px; font-size: 0.95rem; }
.hlr-callout p { margin: 0; font-size: 0.93rem; }

/* CSS Chart */
.hlr-bar-chart { margin: 24px 0; }
.hlr-bar-item { display: flex; align-items: center; margin-bottom: 10px; gap: 12px; }
.hlr-bar-label { min-width: 100px; font-size: 0.88rem; font-weight: 500; color: var(--hlr-gray-700); text-align: right; }
.hlr-bar-track { flex: 1; height: 28px; background: var(--hlr-gray-100); border-radius: 14px; overflow: hidden; position: relative; }
.hlr-bar-fill { height: 100%; border-radius: 14px; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; font-size: 0.78rem; font-weight: 600; color: var(--hlr-white); min-width: 40px; transition: width 0.6s ease; }
.hlr-bar-fill.hlr-bar-1 { background: linear-gradient(90deg, var(--hlr-blue) 0%, var(--hlr-blue-light) 100%); }
.hlr-bar-fill.hlr-bar-2 { background: linear-gradient(90deg, var(--hlr-accent) 0%, #38bdf8 100%); }
.hlr-bar-fill.hlr-bar-3 { background: linear-gradient(90deg, var(--hlr-navy) 0%, var(--hlr-navy-light) 100%); }

/* Related posts */
.hlr-related { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--hlr-gray-200); }
.hlr-related h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; color: var(--hlr-gray-900); }
.hlr-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hlr-related-card {
  display: flex; gap: 16px; padding: 16px; background: var(--hlr-gray-50);
  border-radius: var(--hlr-radius-md); text-decoration: none; transition: all var(--hlr-transition);
  border: 1px solid var(--hlr-gray-100);
}
.hlr-related-card:hover { background: var(--hlr-white); box-shadow: var(--hlr-shadow-sm); }
.hlr-related-card img { width: 80px; height: 80px; border-radius: var(--hlr-radius-sm); object-fit: cover; flex-shrink: 0; }
.hlr-related-card-title { font-size: 0.92rem; font-weight: 600; color: var(--hlr-gray-800); line-height: 1.45; }

/* TOC */
.hlr-toc {
  background: var(--hlr-gray-50); border: 1px solid var(--hlr-gray-200);
  border-radius: var(--hlr-radius-md); padding: 24px 28px; margin: 0 0 40px;
}
.hlr-toc-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 14px; color: var(--hlr-gray-800); }
.hlr-toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 0; }
.hlr-toc li { counter-increment: toc; margin-bottom: 6px; }
.hlr-toc li::before { content: counter(toc) '. '; color: var(--hlr-blue); font-weight: 600; font-size: 0.88rem; }
.hlr-toc a { color: var(--hlr-gray-600); font-size: 0.9rem; }
.hlr-toc a:hover { color: var(--hlr-blue); }

/* === FINANCE TOOL === */
.hlr-finance-tool {
  background: var(--hlr-white); border-radius: var(--hlr-radius-lg); padding: 40px;
  box-shadow: var(--hlr-shadow-md); border: 1px solid var(--hlr-gray-100); margin: 0 auto; max-width: var(--hlr-max-w);
}
.hlr-search-box {
  display: flex; gap: 12px; margin-bottom: 32px;
}
.hlr-search-input {
  flex: 1; padding: 14px 20px; border: 2px solid var(--hlr-gray-200); border-radius: var(--hlr-radius-md);
  font-size: 1rem; font-family: var(--hlr-font-sans); transition: border-color var(--hlr-transition);
  outline: none;
}
.hlr-search-input:focus { border-color: var(--hlr-blue); }
.hlr-search-btn {
  padding: 14px 28px; background: var(--hlr-blue); color: var(--hlr-white);
  border: none; border-radius: var(--hlr-radius-md); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all var(--hlr-transition); white-space: nowrap;
}
.hlr-search-btn:hover { background: var(--hlr-blue-light); }
.hlr-result-area { min-height: 200px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hlr-card-grid { grid-template-columns: repeat(2, 1fr); }
  .hlr-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hlr-hero { padding: 64px 20px 56px; }
  .hlr-hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hlr-hero-content h1 { font-size: 2rem; }
  .hlr-hero-desc { margin: 0 auto 24px; }
  .hlr-hero-img { max-width: 400px; margin: 0 auto; }
  .hlr-section { padding: 64px 20px; }
  .hlr-card-grid { grid-template-columns: 1fr; gap: 20px; }
  .hlr-features { grid-template-columns: 1fr; gap: 20px; }
  .hlr-single h1.entry-title, .hlr-single .wp-block-post-title { font-size: 1.7rem; }
  .hlr-single .entry-content h2, .hlr-single .wp-block-post-content h2 { font-size: 1.35rem; }
  .hlr-related-grid { grid-template-columns: 1fr; }
  .hlr-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--hlr-white);
    flex-direction: column; padding: 16px; box-shadow: var(--hlr-shadow-lg); z-index: 99; }
  .hlr-nav.active { display: flex; }
  .hlr-mobile-toggle { display: block; }
  .hlr-footer-top { flex-direction: column; gap: 32px; }
  .hlr-search-box { flex-direction: column; }
  .hlr-finance-tool { padding: 24px; }
  .hlr-bar-label { min-width: 70px; font-size: 0.8rem; }
  .hlr-hero-btns { display: flex; flex-direction: column; gap: 12px; align-items: center; }
}
@media (max-width: 480px) {
  .hlr-hero-content h1 { font-size: 1.65rem; }
  .hlr-section-title { font-size: 1.6rem; }
  .hlr-header-inner { padding: 0; }
}

/* Scroll animation */
.hlr-fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.hlr-fade-up.hlr-visible { opacity: 1; transform: translateY(0); }

/* Override WP defaults */
.wp-site-blocks { padding: 0 !important; }
.wp-block-post-content { padding: 0 !important; }
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: none; margin-left: 0; margin-right: 0; }
.has-global-padding { padding: 0 !important; }
.wp-block-template-part { margin: 0 !important; }
header.wp-block-template-part { display: none !important; }
footer.wp-block-template-part { display: none !important; }
