:root {
  --accent: #1E7C6E;
  --header-bg: #ffffff;
  --footer-bg: #0f1417;
  --footer-text: #cbd5db;
}

/* Modern Header System */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--mono-white);
  box-shadow: 0 2px 10px var(--shadow-subtle);
  transition: var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px var(--shadow-medium);
}

/* Header Main Bar */
.header-main {
  border-bottom: 1px solid var(--mono-gray);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 60px;
}

.header-content .brand {
  flex-shrink: 0;
}

.header-content .primary-nav {
  flex: 1;
  margin: 0 2rem;
}

.header-content .header-actions {
  flex-shrink: 0;
}

/* Brand / Logo */
.brand .logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.site-title {
  font-weight: 800;
  color: var(--mono-dark);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Primary Navigation */
.primary-nav .menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.primary-nav .menu a {
  text-decoration: none;
  color: var(--mono-medium);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-small);
  transition: var(--transition);
  font-weight: 500;
  position: relative;
}

.primary-nav .menu a:hover {
  color: var(--mono-dark);
  background: rgba(0,0,0,0.05);
}

.primary-nav .menu a:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-location);
  transition: var(--transition);
  transform: translateX(-50%);
}

.primary-nav .menu a:hover:after {
  width: 80%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link {
  background: transparent;
  border: none;
  padding: 0.8rem;
  cursor: pointer;
  color: var(--mono-medium);
  border-radius: var(--radius-small);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.btn-link:hover {
  color: var(--mono-dark);
  background: rgba(0,0,0,0.05);
}

.distance-toggle[aria-pressed="true"] {
  background: var(--accent-location);
  color: var(--mono-white);
}

.distance-toggle[aria-pressed="true"]:hover {
  background: #ff6666;
}

/* Hamburger Menu */
.hamburger {
  --size: 24px;
  display: none;
  width: var(--size);
  height: var(--size);
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  padding: 0.5rem;
}

.hamburger span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--mono-medium);
  transition: var(--transition);
  border-radius: 1px;
}

.hamburger span:nth-child(1) { top: 6px; }
.hamburger span:nth-child(2) { top: 12px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger:hover span {
  background: var(--mono-dark);
}

/* Breadcrumb Section */
.breadcrumb-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid var(--mono-gray);
  padding: 0.8rem 0;
}

.breadcrumb-section .breadcrumb-nav {
  margin: 0;
}

.breadcrumb-nav .breadcrumbs,
.breadcrumb-nav #breadcrumbs {
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--mono-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-nav a {
  color: var(--mono-medium);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-small);
  transition: var(--transition);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb-nav a:hover {
  color: var(--mono-dark);
  background: rgba(0,0,0,0.05);
}

.breadcrumb-nav .breadcrumb_sep,
.breadcrumb-nav .sep {
  color: var(--mono-lighter);
  margin: 0;
}

.breadcrumb-nav .breadcrumb_last,
.breadcrumb-nav .current {
  color: var(--mono-dark);
  font-weight: 600;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Search Bar */
.header-search {
  background: var(--mono-off-white);
  border-bottom: 1px solid var(--mono-gray);
  padding: 1rem 0;
}

.header-search .search-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Drawer */
.mobile-drawer { position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(2px); z-index: 9999; }
.mobile-drawer .drawer-inner { position: absolute; right: 0; top: 0; height: 100%; width: min(86vw, 360px); background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 16px; box-shadow: -8px 0 18px rgba(0,0,0,.12); }
.mobile-drawer .drawer-close { align-self: flex-end; font-size: 24px; border: none; background: transparent; cursor: pointer; }
.drawer-nav .menu { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.drawer-nav .menu a { color: #111; text-decoration: none; padding: 10px 6px; border-radius: 6px; }
.drawer-nav .menu a:hover { background: #f3f4f6; }
.drawer-search .search-form { width: 100%; }

/* Drawer Taxonomy */
.drawer-taxonomy { 
  margin-top: 16px; 
  padding-top: 16px; 
  border-top: 1px solid #e5e7eb; 
}
.taxonomy-section { margin-bottom: 20px; }
.taxonomy-title { 
  font-size: 14px; 
  font-weight: 600; 
  margin: 0 0 8px; 
  color: #374151; 
}
.taxonomy-cloud { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 6px; 
}
.taxonomy-tag { 
  display: inline-block; 
  padding: 4px 8px; 
  background: #f3f4f6; 
  color: #6b7280; 
  text-decoration: none; 
  border-radius: 4px; 
  font-size: 12px; 
  transition: all 0.2s; 
}
.taxonomy-tag:hover { 
  background: #e5e7eb; 
  color: #374151; 
}
.category-tag { 
  background: #dbeafe; 
  color: #1e40af; 
}
.category-tag:hover { 
  background: #bfdbfe; 
}
.tag-tag { 
  background: #fce7f3; 
  color: #be185d; 
}
.tag-tag:hover { 
  background: #f9a8d4; 
}
.taxonomy-tag .count { 
  opacity: 0.6; 
  font-size: 10px; 
}

.no-scroll { overflow: hidden; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 40px; }
.footer-main.uk-container { padding: 32px 16px; }
.footer-title { font-size: 1rem; color: #e8eef2; margin: 0 0 10px; }
.footer-desc { margin: 0 0 12px; }
.footer-sns { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0; }
.footer-sns a { color: #cbd5db; text-decoration: none; }
.footer-cats { list-style: none; padding: 0; margin: 0; }
.footer-cats li { margin: 4px 0; }
.menu--footer { list-style: none; padding: 0; margin: 0; }
.menu--footer a { color: #cbd5db; text-decoration: none; }
.footer-legal { border-top: 1px solid #1f2937; }
.footer-legal .uk-container { padding: 14px 16px; color: #9fb0ba; }

/* Back to top */
.back-to-top { position: fixed; right: 16px; bottom: 18px; border: none; background: var(--accent); color: #fff; padding: 10px 12px; border-radius: 999px; cursor: pointer; box-shadow: 0 10px 20px rgba(30,124,110,.3); }

/* Responsive Header */
@media (max-width: 1024px) {
  .header-content {
    gap: 1rem;
    padding: 0.8rem 1rem;
  }
  
  .primary-nav .menu {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .primary-nav {
    display: none;
  }
  
  .hamburger {
    display: inline-block;
  }
  
  .site-title {
    font-size: 1.3rem;
  }
  
  .btn-link .text {
    display: none;
  }
  
  .btn-link .icon {
    font-size: 1.1rem;
  }
  
  .breadcrumb-nav a {
    max-width: 120px;
    padding: 0.1rem 0.3rem;
  }
  
  .breadcrumb-nav .breadcrumb_last,
  .breadcrumb-nav .current {
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0.6rem 0.8rem;
  }
  
  .site-title {
    font-size: 1.1rem;
  }
  
  .header-actions {
    gap: 0.2rem;
  }
  
  .btn-link {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
  
  .breadcrumb-nav a {
    max-width: 80px;
  }
  
  .breadcrumb-nav .breadcrumb_last,
  .breadcrumb-nav .current {
    max-width: 100px;
  }
  
  .header-breadcrumb {
    padding: 0.6rem 0;
  }
  
  .breadcrumb-nav .breadcrumbs,
  .breadcrumb-nav #breadcrumbs {
    font-size: 0.75rem;
  }
}

