:root{
  --rvgsa-accent: #1f2937;
  --rvgsa-accent-contrast: #ffffff;
  --rvgsa-bg: #ffffff;
  --rvgsa-bg-soft: #f8fafc;
  --rvgsa-border: #e5e7eb;
  --rvgsa-border-strong: #d1d5db;
  --rvgsa-text: #111827;
  --rvgsa-text-soft: #6b7280;
  --rvgsa-placeholder: #9ca3af;
  --rvgsa-shadow: 0 10px 30px rgba(15,23,42,.05);
  --rvgsa-radius-xl: 24px;
  --rvgsa-radius-lg: 18px;
  --rvgsa-radius-md: 14px;
  --rvgsa-radius-sm: 10px;
}

.rvgsa-page,
.rvgsa-hero,
.rvgsa-wrap{
  max-width:1120px;
  margin:0 auto;
  padding:20px 14px;
  box-sizing:border-box;
}

.rvgsa-page *,
.rvgsa-hero *,
.rvgsa-wrap *,
.rvgsa-box-only *,
.rvgsa-results-shell *{
  box-sizing:border-box;
}

.rvgsa-card,
.rvgsa-hero-card,
.rvgsa-page-hero-card,
.rvgsa-results-card{
  background:var(--rvgsa-bg);
  border:1px solid var(--rvgsa-border);
  border-radius:var(--rvgsa-radius-xl);
  box-shadow:var(--rvgsa-shadow);
}

.rvgsa-card,
.rvgsa-results-card{
  padding:24px;
}

.rvgsa-hero-card,
.rvgsa-page-hero-card{
  padding:28px;
  background:
    radial-gradient(circle at top right, rgba(15,23,42,.04), transparent 28%),
    linear-gradient(180deg, var(--rvgsa-bg) 0%, var(--rvgsa-bg-soft) 100%);
}

.rvgsa-head,
.rvgsa-hero-head,
.rvgsa-page-head{
  margin-bottom:18px;
}

.rvgsa-head h2,
.rvgsa-hero-head h2,
.rvgsa-page-head h1{
  margin:0 0 10px;
  color:var(--rvgsa-text);
  line-height:1.12;
  font-size:34px;
  font-weight:700;
  letter-spacing:-0.02em;
}

.rvgsa-head p,
.rvgsa-hero-head p,
.rvgsa-page-head p{
  margin:0;
  color:var(--rvgsa-text-soft);
  font-size:15px;
  line-height:1.75;
  max-width:780px;
}

.rvgsa-form{
  width:100%;
  margin:0;
}

.rvgsa-form-inner{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  width:100%;
  margin:0;
  padding:6px;
  min-height:auto;
  background:var(--rvgsa-bg);
  border:1px solid var(--rvgsa-border);
  border-radius:var(--rvgsa-radius-md);
  box-shadow:none;
}

.rvgsa-search-icon{
  width:34px;
  min-width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--rvgsa-text-soft);
  line-height:1;
  flex:0 0 auto;
}

.rvgsa-search-icon svg{
  width:16px;
  height:16px;
  display:block;
  stroke:currentColor;
}

.rvgsa-form input[type="text"]{
  flex:1 1 auto;
  min-width:0;
  width:auto;
  height:36px;
  min-height:36px;
  margin:0;
  padding:0 4px;
  border:0;
  outline:none;
  box-shadow:none;
  background:transparent;
  color:var(--rvgsa-text);
  font-size:14px;
  line-height:1.2;
  border-radius:0;
  appearance:none;
  -webkit-appearance:none;
}

.rvgsa-form input[type="text"]::placeholder{
  color:var(--rvgsa-placeholder);
  opacity:1;
}

.rvgsa-form input[type="text"]:focus{
  outline:none;
  box-shadow:none;
}

.rvgsa-form button{
  flex:0 0 auto;
  height:36px;
  min-height:36px;
  min-width:88px;
  margin:0;
  padding:0 16px;
  border:0;
  border-radius:var(--rvgsa-radius-sm);
  background:var(--rvgsa-accent);
  color:var(--rvgsa-accent-contrast);
  font-size:13px;
  font-weight:700;
  line-height:36px;
  text-align:center;
  cursor:pointer;
  box-shadow:none;
  transition:opacity .15s ease, transform .15s ease;
  appearance:none;
  -webkit-appearance:none;
}

.rvgsa-form button:hover{
  opacity:.94;
}

.rvgsa-form button:active{
  transform:translateY(1px);
}

.rvgsa-box-only{
  width:100%;
  max-width:100%;
}

.rvgsa-box-only .rvgsa-form,
.rvgsa-box-only .rvgsa-form-inner{
  margin:0 !important;
}

.rvgsa-box-only label,
.rvgsa-box-only .screen-reader-text,
.rvgsa-box-only .searchform label{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.rvgsa-popular{
  margin-top:16px;
}

.rvgsa-popular-label{
  font-size:12px;
  font-weight:700;
  color:var(--rvgsa-text-soft);
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.rvgsa-chip-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.rvgsa-chip{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid var(--rvgsa-border);
  background:var(--rvgsa-bg);
  color:#374151;
  text-decoration:none;
  font-size:13px;
  line-height:1.2;
  transition:border-color .15s ease, color .15s ease, background-color .15s ease;
}

.rvgsa-chip:hover{
  border-color:var(--rvgsa-border-strong);
  color:var(--rvgsa-text);
  background:var(--rvgsa-bg-soft);
}

.rvgsa-current-query{
  margin-top:16px;
  padding:12px 14px;
  border-radius:var(--rvgsa-radius-md);
  background:var(--rvgsa-bg-soft);
  border:1px solid var(--rvgsa-border);
  color:#4b5563;
  font-size:14px;
  line-height:1.5;
}

.rvgsa-results-wrap{
  margin-top:18px;
}

.rvgsa-results-shell{
  width:100%;
}

.rvgsa-alert{
  padding:14px 16px;
  border-radius:var(--rvgsa-radius-md);
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-size:14px;
}

.gsc-control-cse,
.gsc-control-cse-en{
  padding:0 !important;
  border:none !important;
  background:transparent !important;
  font-family:inherit !important;
  width:100% !important;
}

.gsc-results-wrapper-visible{
  width:100% !important;
}

.gsc-result{
  border-bottom:1px solid #eef2f7 !important;
  padding:16px 0 !important;
}

.gs-title a,
.gs-title b{
  text-decoration:none !important;
  font-size:19px !important;
  line-height:1.45 !important;
}

.gs-snippet{
  color:#4b5563 !important;
  line-height:1.8 !important;
  font-size:14px !important;
}

.gsc-url-top,
.gsc-url-bottom{
  font-size:12px !important;
  line-height:1.5 !important;
  word-break:break-word !important;
}

.gsc-table-result,
.gsc-thumbnail-inside,
.gsc-url-top{
  padding:0 !important;
}

.gsc-cursor-box{
  margin-top:18px !important;
}

.gsc-cursor-page{
  display:inline-block !important;
  min-width:36px !important;
  text-align:center !important;
  padding:8px 10px !important;
  border-radius:10px !important;
  border:1px solid var(--rvgsa-border) !important;
}

.gsc-selected-option-container,
.gsc-option-menu-container{
  max-width:220px !important;
}

.gsc-input-box{
  box-shadow:none !important;
}

.gs-image-box,
.gs-promotion-image-box{
  display:none !important;
}

.gsc-result .gs-title,
.gsc-result .gs-bidi-start-align{
  width:100% !important;
}

/* hide confusing google header/ui in our custom result layout */
.rvgsa-page .gsc-search-box,
.rvgsa-page .gsc-search-box-tools,
.rvgsa-page .gcse-searchbox,
.rvgsa-page .gsc-control-cse .gsc-search-box,
.rvgsa-page .gsc-control-cse .gsc-search-box-tools,
.rvgsa-page .gsc-control-cse .gsc-above-wrapper-area,
.rvgsa-page .gcsc-find-more-on-google-root,
.rvgsa-page .gcsc-more-maybe-branding-root,
.rvgsa-page .gcsc-branding,
.rvgsa-page .gsc-modal-background-image,
.rvgsa-page .gsc-resultsHeader,
.rvgsa-page .gsc-tabsArea,
.rvgsa-page .gsc-tabHeader,
.rvgsa-page .gsc-refinementsArea{
  display:none !important;
}

.rvgsa-page .gsc-control-cse,
.rvgsa-page .gsc-control-cse-en{
  padding:0 !important;
  margin:0 !important;
  border:none !important;
  background:transparent !important;
}

.rvgsa-page .gsc-results-wrapper-visible{
  margin-top:0 !important;
}

.rvgsa-page .gsc-webResult.gsc-result,
.rvgsa-page .gsc-result{
  padding:16px 0 !important;
  border-bottom:1px solid #eef2f7 !important;
}

.rvgsa-page .gs-title a,
.rvgsa-page .gs-title b{
  font-size:20px !important;
  line-height:1.4 !important;
}

.rvgsa-page .gs-snippet{
  font-size:14px !important;
  line-height:1.8 !important;
}

.rvgsa-page .gsc-url-top,
.rvgsa-page .gsc-url-bottom{
  font-size:12px !important;
}

.rvgsa-page .rvgsa-page-hero-card{
  padding:30px;
}

.rvgsa-page .rvgsa-page-head{
  margin-bottom:16px;
}

.rvgsa-page .rvgsa-page-head h1{
  font-size:32px;
  line-height:1.15;
  margin:0 0 8px;
}

.rvgsa-page .rvgsa-page-head p{
  margin:0;
  font-size:15px;
  line-height:1.7;
}

.rvgsa-page .rvgsa-page-searchbar{
  margin-top:12px;
}

.rvgsa-page .rvgsa-page-searchbar .rvgsa-box-only{
  width:100%;
}

.rvgsa-page .rvgsa-page-searchbar .rvgsa-form-inner{
  border:1px solid var(--rvgsa-border-strong);
  border-radius:18px;
  padding:8px;
  gap:10px;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}

.rvgsa-page .rvgsa-page-searchbar .rvgsa-search-icon{
  width:42px;
  min-width:42px;
  height:42px;
}

.rvgsa-page .rvgsa-page-searchbar .rvgsa-search-icon svg{
  width:18px;
  height:18px;
}

.rvgsa-page .rvgsa-page-searchbar .rvgsa-form input[type="text"]{
  height:48px;
  min-height:48px;
  font-size:16px;
  padding:0 6px;
}

.rvgsa-page .rvgsa-page-searchbar .rvgsa-form button{
  height:48px;
  min-height:48px;
  min-width:120px;
  font-size:14px;
  line-height:48px;
  border-radius:14px;
  padding:0 20px;
}

.rvgsa-page .rvgsa-results-card{
  margin-top:0;
  padding:24px;
}


@media (max-width:768px){
  .rvgsa-page,
  .rvgsa-hero,
  .rvgsa-wrap{
    padding:12px 10px;
  }

  .rvgsa-card,
  .rvgsa-results-card,
  .rvgsa-hero-card,
  .rvgsa-page-hero-card{
    padding:14px;
    border-radius:16px;
  }

  .rvgsa-head h2,
  .rvgsa-hero-head h2,
  .rvgsa-page-head h1{
    font-size:20px;
    line-height:1.2;
    margin-bottom:8px;
  }

  .rvgsa-head p,
  .rvgsa-hero-head p,
  .rvgsa-page-head p{
    font-size:13px;
    line-height:1.6;
  }

  .rvgsa-form-inner{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:8px;
    border-radius:14px;
  }

  .rvgsa-search-icon{
    display:none;
  }

  .rvgsa-form input[type="text"]{
    width:100%;
    flex:1 1 100%;
    height:42px;
    min-height:42px;
    padding:0 12px;
    background:var(--rvgsa-bg);
    border:1px solid var(--rvgsa-border);
    border-radius:12px;
    font-size:14px;
  }

  .rvgsa-form button{
    width:100%;
    min-width:0;
    height:42px;
    min-height:42px;
    line-height:42px;
    border-radius:12px;
    font-size:13px;
    padding:0 14px;
  }

  .rvgsa-current-query{
    margin-top:12px;
    padding:10px 12px;
    font-size:13px;
    border-radius:12px;
  }

  .rvgsa-popular{
    margin-top:12px;
  }

  .rvgsa-chip-row{
    gap:6px;
  }

  .rvgsa-chip{
    min-height:30px;
    padding:5px 10px;
    font-size:12px;
  }

  .rvgsa-results-wrap{
    margin-top:12px;
  }

  .gsc-result{
    padding:12px 0 !important;
  }

  .gs-title a,
  .gs-title b{
    font-size:16px !important;
    line-height:1.35 !important;
  }

  .gs-snippet{
    font-size:13px !important;
    line-height:1.6 !important;
  }

  .gsc-url-top,
  .gsc-url-bottom{
    font-size:11px !important;
    line-height:1.4 !important;
  }

  .gsc-cursor-box{
    margin-top:14px !important;
    text-align:left !important;
  }

  .gsc-cursor-page{
    min-width:32px !important;
    padding:6px 8px !important;
    font-size:12px !important;
    margin-right:4px !important;
  }

  .rvgsa-page .rvgsa-page-hero-card{
    padding:18px;
  }

  .rvgsa-page .rvgsa-page-head h1{
    font-size:24px;
  }

  .rvgsa-page .rvgsa-page-searchbar .rvgsa-form-inner{
    padding:8px;
    border-radius:16px;
  }

  .rvgsa-page .rvgsa-page-searchbar .rvgsa-search-icon{
    display:none;
  }

  .rvgsa-page .rvgsa-page-searchbar .rvgsa-form input[type="text"]{
    height:46px;
    min-height:46px;
    font-size:15px;
    border:1px solid var(--rvgsa-border);
    border-radius:12px;
    padding:0 12px;
    background:var(--rvgsa-bg);
  }

  .rvgsa-page .rvgsa-page-searchbar .rvgsa-form button{
    height:44px;
    min-height:44px;
    width:100%;
    min-width:0;
    border-radius:12px;
    line-height:44px;
  }

  .rvgsa-page .gs-title a,
  .rvgsa-page .gs-title b{
    font-size:17px !important;
  }

  .rvgsa-page .gs-snippet{
    font-size:13px !important;
    line-height:1.65 !important;
  }
}

.header .rvgsa-box-only,
.header-wrapper .rvgsa-box-only,
#header .rvgsa-box-only{
  width:100%;
  max-width:100%;
}

.header .rvgsa-box-only .rvgsa-form-inner,
.header-wrapper .rvgsa-box-only .rvgsa-form-inner,
#header .rvgsa-box-only .rvgsa-form-inner{
  gap:8px;
  padding:5px 6px;
  border-radius:14px;
}

.header .rvgsa-box-only .rvgsa-search-icon,
.header-wrapper .rvgsa-box-only .rvgsa-search-icon,
#header .rvgsa-box-only .rvgsa-search-icon{
  width:32px;
  min-width:32px;
  height:32px;
}

.header .rvgsa-box-only .rvgsa-form input[type="text"],
.header-wrapper .rvgsa-box-only .rvgsa-form input[type="text"],
#header .rvgsa-box-only .rvgsa-form input[type="text"]{
  height:34px;
  min-height:34px;
  font-size:14px;
  padding:0 4px;
  border:0;
  background:transparent;
}

.header .rvgsa-box-only .rvgsa-form button,
.header-wrapper .rvgsa-box-only .rvgsa-form button,
#header .rvgsa-box-only .rvgsa-form button{
  height:34px;
  min-height:34px;
  min-width:86px;
  line-height:34px;
  padding:0 16px;
  font-size:13px;
  border-radius:10px;
}

@media (max-width:768px){
  .header .rvgsa-box-only .rvgsa-form-inner,
  .header-wrapper .rvgsa-box-only .rvgsa-form-inner,
  #header .rvgsa-box-only .rvgsa-form-inner{
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:6px;
    border-radius:12px;
  }

  .header .rvgsa-box-only .rvgsa-search-icon,
  .header-wrapper .rvgsa-box-only .rvgsa-search-icon,
  #header .rvgsa-box-only .rvgsa-search-icon{
    display:none;
  }

  .header .rvgsa-box-only .rvgsa-form input[type="text"],
  .header-wrapper .rvgsa-box-only .rvgsa-form input[type="text"],
  #header .rvgsa-box-only .rvgsa-form input[type="text"]{
    height:38px;
    min-height:38px;
    font-size:13px;
    border:1px solid var(--rvgsa-border);
    border-radius:10px;
    padding:0 10px;
    background:var(--rvgsa-bg);
  }

  .header .rvgsa-box-only .rvgsa-form button,
  .header-wrapper .rvgsa-box-only .rvgsa-form button,
  #header .rvgsa-box-only .rvgsa-form button{
    width:100%;
    min-width:0;
    height:38px;
    min-height:38px;
    line-height:38px;
    font-size:12px;
    border-radius:10px;
  }
}

.rvgsa-icon-search{
  position:relative;
  display:inline-flex;
  align-items:center;
  line-height:1;
}

.rvgsa-icon-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  border-radius:999px;
  background:transparent;
  color:inherit;
  cursor:pointer;
  box-shadow:none;
}

.rvgsa-icon-trigger:hover{
  background:rgba(0,0,0,.05);
}

.rvgsa-icon-trigger svg{
  display:block;
}

.rvgsa-icon-panel{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  z-index:9999;
  min-width:320px;
  max-width:min(92vw, 420px);
  padding:12px;
  background:var(--rvgsa-bg);
  border:1px solid var(--rvgsa-border);
  border-radius:16px;
  box-shadow:0 18px 40px rgba(15,23,42,.12);
}

.rvgsa-icon-search.is-open .rvgsa-icon-panel{
  display:block;
}

.rvgsa-icon-form{
  display:flex;
  align-items:center;
  width:100%;
  gap:0;
  margin:0;
}

.rvgsa-icon-form input[type="text"]{
  flex:1 1 auto;
  min-width:0;
  height:46px;
  margin:0;
  padding:0 14px;
  border:1px solid var(--rvgsa-border-strong);
  border-right:0;
  border-radius:12px 0 0 12px;
  background:var(--rvgsa-bg);
  color:var(--rvgsa-text);
  font-size:14px;
  outline:none;
  box-shadow:none;
  appearance:none;
  -webkit-appearance:none;
}

.rvgsa-icon-form input[type="text"]::placeholder{
  color:var(--rvgsa-placeholder);
  opacity:1;
}

.rvgsa-icon-submit{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:46px;
  margin:0;
  padding:0;
  border:1px solid var(--rvgsa-accent);
  border-radius:0 12px 12px 0;
  background:var(--rvgsa-accent);
  color:var(--rvgsa-accent-contrast);
  cursor:pointer;
  box-shadow:none;
}

.rvgsa-icon-submit svg{
  display:block;
}

.rvgsa-icon-overlay{
  position:fixed;
  inset:0;
  z-index:9998;
  background:rgba(15,23,42,.2);
}

.rvgsa-icon-search-dropdown .rvgsa-icon-panel{
  left:0;
  right:auto;
}

.rvgsa-icon-search-modal .rvgsa-icon-panel{
  position:fixed;
  top:90px;
  left:50%;
  transform:translateX(-50%);
  width:min(92vw, 520px);
  min-width:0;
  z-index:9999;
  padding:14px;
  border-radius:18px;
}

.rvgsa-icon-search-modal .rvgsa-icon-form input[type="text"]{
  height:48px;
  font-size:15px;
}

.rvgsa-icon-search-modal .rvgsa-icon-submit{
  width:52px;
  height:48px;
}

@media (max-width:768px){
  .rvgsa-icon-trigger{
    width:36px;
    height:36px;
  }

  .rvgsa-icon-panel{
    min-width:280px;
    max-width:calc(100vw - 20px);
    padding:10px;
    border-radius:14px;
  }

  .rvgsa-icon-form input[type="text"]{
    height:42px;
    padding:0 12px;
    font-size:14px;
    border-radius:10px 0 0 10px;
  }

  .rvgsa-icon-submit{
    width:44px;
    height:42px;
    border-radius:0 10px 10px 0;
  }

  .rvgsa-icon-search-modal .rvgsa-icon-panel{
    top:76px;
    width:calc(100vw - 20px);
    padding:10px;
    border-radius:14px;
  }

  .rvgsa-icon-search-modal .rvgsa-icon-form input[type="text"]{
    height:44px;
    font-size:14px;
  }

  .rvgsa-icon-search-modal .rvgsa-icon-submit{
    width:46px;
    height:44px;
  }
}