/* LANDS OF JAIL - MODERN WIKI READER DESIGN SYSTEM */
:root {
  --bg-body: #0a0e1a;
  --bg-header: rgba(13, 19, 33, 0.92);
  --bg-sidebar: #0e1526;
  --bg-card: #131c31;
  --bg-card-hover: #18243e;
  --border-color: rgba(249, 115, 22, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-glow: rgba(249, 115, 22, 0.35);
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --sidebar-width: 320px;
  --header-height: 64px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ==================== HEADER ==================== */
.top-header {
  height: var(--header-height);
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-icon {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
}

.brand-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 8px var(--primary-glow));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
}

/* Header Search */
.header-search {
  position: relative;
  width: 440px;
  max-width: 100%;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
}

#wikiSearchInput {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 40px;
  background: rgba(19, 28, 49, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: #fff;
  font-size: 0.88rem;
  transition: var(--transition);
}

#wikiSearchInput:focus {
  outline: none;
  background: #141f38;
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.search-dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0,0,0,0.7);
  max-height: 420px;
  overflow-y: auto;
  z-index: 200;
  padding: 8px;
}

.search-hit-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.search-hit-item:hover {
  background: rgba(249, 115, 22, 0.14);
}

.search-hit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-hit-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.92rem;
}

.search-hit-cat {
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.search-hit-snippet {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Quick Navigation */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.quick-nav-btn:hover {
  background: rgba(249, 115, 22, 0.18);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ==================== LAYOUT ==================== */
.app-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  position: relative;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
  z-index: 50;
}

.sidebar-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.btn-small-link {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  cursor: pointer;
}

.nav-tree {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px 24px 8px;
}

.nav-tree::-webkit-scrollbar {
  width: 5px;
}
.nav-tree::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

/* Tree Category Accordion */
.tree-cat {
  margin-bottom: 6px;
}

.tree-cat-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.tree-cat-header:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tree-cat-header.active-cat {
  color: var(--primary);
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.2);
}

.tree-cat-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-chevron {
  font-size: 0.65rem;
  color: var(--text-dim);
  transition: transform 0.2s ease;
  display: inline-block;
}

.tree-cat.open .cat-chevron {
  transform: rotate(90deg);
  color: var(--primary);
}

.cat-badge {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

.tree-items-list {
  display: none;
  padding: 4px 0 4px 20px;
  border-left: 1px dashed rgba(255, 255, 255, 0.1);
  margin-left: 18px;
}

.tree-cat.open .tree-items-list {
  display: block;
}

.tree-doc-link {
  display: block;
  padding: 7px 10px;
  color: var(--text-muted);
  font-size: 0.84rem;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 2px;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 2px solid transparent;
}

.tree-doc-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(3px);
}

.tree-doc-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2) 0%, transparent 100%);
  border-left-color: var(--primary);
  font-weight: 700;
}

.sidebar-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.72rem;
  text-align: center;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

.main-content::-webkit-scrollbar {
  width: 7px;
}
.main-content::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.3);
  border-radius: 4px;
}

/* Breadcrumbs Bar */
.content-breadcrumbs-bar {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 0;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(12px);
  padding: 12px 32px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs span::after {
  content: "›";
  margin-left: 8px;
  color: var(--text-dim);
}

.breadcrumbs span:last-child {
  color: var(--primary);
  font-weight: 700;
}
.breadcrumbs span:last-child::after {
  display: none;
}

.btn-text-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-text-action:hover {
  color: var(--primary);
}

/* Article Viewport */
.article-viewport {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 32px 60px 32px;
}

/* Loading & Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(249, 115, 22, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.tree-loading, .article-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: var(--text-muted);
}

/* ==================== MARKDOWN BODY STYLING ==================== */
.article-markdown-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #e2e8f0;
}

.article-markdown-body h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  letter-spacing: -0.5px;
}

.article-markdown-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fdba74;
  margin: 36px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-markdown-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  margin: 24px 0 12px 0;
}

.article-markdown-body h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--accent);
  margin: 18px 0 8px 0;
}

.article-markdown-body p {
  margin-bottom: 16px;
}

.article-markdown-body ul, .article-markdown-body ol {
  margin: 12px 0 18px 24px;
}

.article-markdown-body li {
  margin-bottom: 8px;
}

.article-markdown-body strong {
  color: #fff;
  font-weight: 700;
}

.article-markdown-body hr {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 32px 0;
}

.article-markdown-body blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(249, 115, 22, 0.08);
  padding: 12px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0;
  color: #fed7aa;
  font-style: italic;
}

.article-markdown-body code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  color: #fdba74;
  font-size: 0.88em;
  font-family: Consolas, monospace;
}

/* Tables */
.article-markdown-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.article-markdown-body th, .article-markdown-body td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.article-markdown-body th {
  background: #19243d;
  font-family: 'Outfit', sans-serif;
  color: #fdba74;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-markdown-body tr:last-child td {
  border-bottom: none;
}

.article-markdown-body tr:hover td {
  background: rgba(249, 115, 22, 0.04);
}

/* Images */
.article-markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  display: inline-block;
  vertical-align: middle;
}

/* ==================== BOTTOM PAGINATION ==================== */
.article-footer {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px 48px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.nav-doc-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  color: var(--text-main);
}

.nav-doc-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.15);
}

.next-btn {
  text-align: right;
}

.nav-dir {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 860px) {
  .btn-icon {
    display: flex;
  }

  .header-search {
    width: 240px;
  }

  .header-right {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0,0,0,0.8);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-backdrop {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 40;
    display: none;
  }

  .mobile-backdrop.open {
    display: block;
  }

  .content-breadcrumbs-bar {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 10px 16px;
  }

  .article-viewport {
    padding: 20px 16px 40px 16px;
  }

  .article-footer {
    padding: 0 16px 36px 16px;
    flex-direction: column;
  }

  .next-btn {
    text-align: left;
  }
}


/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN SYSTEM ENHANCEMENTS
   ========================================================================== */

/* High-Contrast Links */
.article-markdown-body a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.article-markdown-body a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Action button links in tables */
.article-markdown-body td a[href*=".md"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.article-markdown-body td a[href*=".md"]:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* Prevent Badges from wrapping awkwardly */
.article-markdown-body td code,
.article-markdown-body th code {
  white-space: nowrap !important;
  display: inline-block;
}

/* Table Scroll Wrapper */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  position: relative;
}

.table-scroll-hint {
  display: none;
}

.table-scroll-wrap table {
  width: 100%;
  min-width: 600px; /* Never crushed on mobile */
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Floating Action Button (Scroll to Top) */
.fab-scroll-top {
  position: fixed;
  bottom: 74px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 26, 47, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.3);
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.15s ease;
}

.fab-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.fab-scroll-top:hover, .fab-scroll-top:active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5);
}

@media (min-width: 769px) {
  .fab-scroll-top {
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
  }
}

/* Sidebar Close Button */
.sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .sidebar-close-btn {
    display: flex;
  }

  .table-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border-bottom: 1px dashed rgba(56, 189, 248, 0.25);
    letter-spacing: 0.3px;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10, 15, 30, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.75);
    z-index: 55;
    align-items: center;
    justify-content: space-around;
  }

  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  .mob-nav-item:active, .mob-nav-item.active {
    color: #38bdf8;
    transform: scale(0.95);
  }

  /* Safe padding for bottom navigation */
  .main-content {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  /* Mobile Header optimizations */
  .brand-badge {
    display: none;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .header-left {
    gap: 8px;
  }

  .header-search {
    flex: 1;
    width: auto !important;
    max-width: 200px;
  }

  .search-input-wrap input {
    font-size: 0.82rem;
    padding: 7px 10px 7px 32px;
  }

  /* Sidebar Drawer on mobile */
  .sidebar {
    top: var(--header-height) !important;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    width: min(320px, 86vw) !important;
    z-index: 75 !important;
  }

  .mobile-backdrop {
    top: var(--header-height) !important;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 70 !important;
  }

  #btnScrollTop {
    display: none !important;
  }

  /* Compact typography on mobile */
  .article-markdown-body h1 {
    font-size: 1.45rem !important;
    line-height: 1.35 !important;
  }

  .article-markdown-body h2 {
    font-size: 1.25rem !important;
    margin-top: 28px !important;
  }

  .article-markdown-body h3 {
    font-size: 1.08rem !important;
  }

  .content-breadcrumbs-bar {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
  }

  .article-viewport {
    padding: 16px 14px 32px 14px !important;
  }
}

@media (max-width: 480px) {
  .header-search {
    max-width: 140px;
  }

  .brand-title {
    font-size: 0.88rem;
  }

  .brand-icon {
    font-size: 1.2rem;
  }
}
