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

body {
  font-family: system-ui, sans-serif;
  background: #fff;
  color: #111;
}

/* Top Header */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  background: white;
}

.logo {
  height: 32px;
}

.site-name {
  font-size: 30px;
  font-weight: 500;
  color: #444;
}

.hamburger {
  font-size: 22px;
  cursor: pointer;
}

/* Sticky Search Header */
.search-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 10px 16px;
}

/* --- SEARCH BAR UPDATE --- */

.search-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-box-wrapper {
  position: relative;
  width: 400px; /* << not full-width, set a fixed size */
  max-width: 100%;
  display: flex;
  align-items: center;
}

.search-box {
  width: 100%;
  padding: 10px 75px 10px 12px; /* space for buttons */
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* Buttons inside the search field */
.clear-btn,
.search-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: none; /* JS toggles .clear-btn */
}

.clear-btn svg,
.search-btn svg {
  pointer-events: none;
}

.clear-btn {
  right: 38px;
}

.search-btn {
  right: 8px;
  display: flex;
}

/* Divider between buttons */
.divider {
  position: absolute;
  right: 34px;
  height: 16px;
  width: 1px;
  background: #ccc;
  top: 50%;
  transform: translateY(-50%);
}

/* --- MENU (Hamburger) --- */
.menu {
  position: absolute;
  top: 56px;
  right: 16px;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.menu a {
  text-decoration: none;
  color: #444;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
}

.menu a:hover {
  background: #f2f2f2;
}

/* --- Tabs Tweak --- */

.tabs {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px; /* reduced from 12px */
  flex-wrap: nowrap; /* prevent wrapping */
  overflow-x: auto; /* horizontal scroll if needed */
}

.tab {
  text-decoration: none;
  padding: 4px 8px; /* slightly reduced */
  font-size: 0.85rem; /* reduced font */
  color: #444;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.3s ease
}

.tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0px;
  width: 100%;
  background: #1a73e8;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.tab.active {
  color: #1a73e8;
  border-color: #1a73e8;
  font-weight: 500;
}

.tab.active::after {
  transform: scaleX(1);
}

.assist-btn {
  margin-left: auto;
  padding: 4px 10px;
  background: #eef3ff;
  border-radius: 20px;
  color: #1a73e8;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
/*
  border-bottom: 1px solid #e0e0e0;
*/
/* Old-style tabs */
.gsc-tabsArea {
  display: none !important;
}

/* Newer refinements area */
.gsc-refinementsArea {
  display: none !important;
}
