/* client/entries/base.scss */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --primary: #2563eb;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08);
}
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-action {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-action:hover {
  background: var(--bg);
}
.header-action--menu {
  width: 40px;
  height: 40px;
  position: relative;
  flex-direction: column;
  gap: 5px;
}
.burger-line {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.header-action--menu[aria-expanded=true] .burger-line--top {
  transform: translateY(7px) rotate(45deg);
}
.header-action--menu[aria-expanded=true] .burger-line--middle {
  opacity: 0;
}
.header-action--menu[aria-expanded=true] .burger-line--bottom {
  transform: translateY(-7px) rotate(-45deg);
}
.header__nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-elevated);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1001;
}
.header__nav[data-active=true] {
  transform: translateX(0);
}
.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav__brand .brand-logo {
  width: 32px;
  height: 32px;
}
.mobile-nav__close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
}
.mobile-nav__close:hover {
  background: var(--bg);
}
.mobile-nav__progress {
  height: 2px;
  background: var(--bg);
  overflow: hidden;
}
.mobile-nav__progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}
.nav-list {
  list-style: none;
  padding: 0.5rem 0;
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 0.938rem;
}
.nav-link:hover {
  background: var(--bg);
}
.nav-link--active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}
.nav-link__icon {
  flex-shrink: 0;
}
.nav-link__text {
  flex: 1;
}
.nav-link__chevron {
  transition: transform 0.3s ease;
}
.nav-link--dropdown[aria-expanded=true] .nav-link__chevron {
  transform: rotate(180deg);
}
.nav-link__badge {
  color: var(--primary);
  font-size: 1.25rem;
}
.dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg);
}
.nav-item--dropdown[data-open=true] .dropdown-menu {
  max-height: 800px;
}
.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem 0.625rem 3rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all 0.2s;
}
.dropdown-link:hover {
  color: var(--text);
  background: rgba(37, 99, 235, 0.05);
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 1rem;
}
.dropdown-section {
  padding: 0.5rem 0;
}
.dropdown-label {
  display: block;
  padding: 0.5rem 1rem 0.5rem 3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dropdown-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.mobile-nav__footer {
  border-top: 1px solid var(--border);
  padding: 1rem;
}
.mobile-search-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.75rem;
}
.mobile-search-btn:hover {
  border-color: var(--primary);
}
.mobile-search-btn__text {
  flex: 1;
  text-align: left;
  color: var(--text-muted);
}
.mobile-search-btn__shortcut {
  padding: 0.25rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: monospace;
}
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}
.theme-toggle:hover {
  background: var(--bg);
}
.theme-toggle__text {
  flex: 1;
  text-align: left;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}
.nav-backdrop[data-active=true] {
  opacity: 1;
  pointer-events: auto;
}
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.search-overlay[data-active=true] {
  display: flex;
}
.search-overlay__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}
.search-overlay__content {
  position: relative;
  background: var(--bg-elevated);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.search-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.search-overlay__title {
  font-size: 1.25rem;
  font-weight: 600;
}
.search-close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
}
.search-close:hover {
  background: var(--bg);
}
.search-form {
  padding: 1.5rem;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
}
.search-submit {
  padding: 0.875rem 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.search-submit:hover {
  opacity: 0.9;
}
.search-tips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.search-tips__key {
  padding: 0.25rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: monospace;
}
.search-suggestions {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}
.search-suggestions__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.search-suggestions__title {
  font-weight: 600;
  font-size: 0.875rem;
}
.search-suggestions__count {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.search-suggestions__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.search-suggestion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}
.search-suggestion:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}
.search-suggestion__count {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--banner-image);
  background-size: cover;
  background-position: center;
  color: white;
  margin-bottom: 3rem;
}
.hero-content {
  max-width: 700px;
  padding: 3rem 0;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 700;
}
.lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.95;
  line-height: 1.7;
}
.page-content {
  padding: 2rem 0 4rem;
}
.content-prose {
  max-width: 750px;
  margin: 0 auto;
  background: var(--bg-elevated);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.content-prose h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.content-prose p {
  margin-bottom: 1.25rem;
}
.content-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}
.content-prose a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}
.content-prose a:hover {
  opacity: 0.8;
  text-decoration: underline;
}
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer__content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}
.footer-description {
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.footer-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-nav,
.footer-categories {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-nav-link,
.footer-categories-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.875rem;
}
.footer-nav-link:hover,
.footer-categories-link:hover {
  color: var(--text);
}
.footer-categories-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}
@media (min-width: 768px) {
  .header-action--menu {
    display: none;
  }
  .header__nav {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    flex-direction: row;
    overflow: visible;
    box-shadow: none;
    background: transparent;
  }
  .mobile-nav__header,
  .mobile-nav__progress,
  .mobile-nav__footer {
    display: none;
  }
  .nav-list {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0;
  }
  .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }
  .nav-link__icon {
    display: none;
  }
  .nav-item--dropdown {
    position: relative;
  }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    padding: 0.5rem;
    max-height: none;
    overflow: visible;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.2s ease;
  }
  .nav-item--dropdown[data-open=true] .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .dropdown-link {
    padding: 0.625rem 1rem;
    border-radius: 6px;
  }
  .dropdown-label {
    padding: 0.5rem 1rem;
  }
  .footer__content {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .content-prose {
    padding: 3rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  .hero {
    min-height: 500px;
  }
}
.icon {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/*# sourceMappingURL=base.css.map */
