/* =====================================================
HT DICTIONARY SYSTEM
Dictionary index and single term styling
===================================================== */

:root{
  --ht-bg:#f3f6fa;
  --ht-surface:#ffffff;
  --ht-surface-soft:#f7f9fc;
  --ht-border:#d9e2ec;
  --ht-border-strong:#c5d2e1;
  --ht-text:#223142;
  --ht-text-soft:#5f7084;
  --ht-heading:#14202c;
  --ht-link:#1d4f91;
  --ht-link-hover:#163d71;
  --ht-accent:#2c6aa0;
  --ht-purple:#7d67d9;
  --ht-shadow-xs:0 1px 3px rgba(17,24,39,0.04);
  --ht-shadow-sm:0 6px 18px rgba(17,24,39,0.06);
  --ht-shadow-md:0 14px 30px rgba(17,24,39,0.12);
  --ht-radius-lg:12px;
  --ht-transition:all .22s ease;
}

/* =====================================================
DICTIONARY INDEX
===================================================== */

.ht-dictionary-page{
  margin:0 0 36px;
  padding-top:20px;
  color:var(--ht-text);
}

.ht-dictionary-page-title{
  font-size:30px;
  font-weight:800;
  margin:0 0 22px;
  padding-bottom:20px;
  line-height:1.15;
  color:var(--ht-heading);
  letter-spacing:-0.02em;
}

.ht-dictionary-search{
  position:relative;
  z-index:200;
  margin:0 0 20px;
  max-width:930px;
}

.ht-dictionary-search-box{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  max-width:930px;
  padding:0 16px 0 26px;
  background:#fff;
  border:1px solid var(--ht-border);
  border-radius:999px;
  box-shadow:var(--ht-shadow-sm);
}

.ht-dictionary-search-input{
  flex:1 1 auto;
  min-width:0;
  height:56px;
  border:none!important;
  outline:none!important;
  background:transparent!important;
  font-size:16px;
  line-height:56px;
  color:var(--ht-text);
  padding:0!important;
  padding-top:5px!important;
  box-shadow:none!important;
}

.ht-dictionary-search-input::placeholder{
  color:#8fa1b3;
}

.ht-dictionary-search-submit,
.ht-dictionary-search-clear{
  border:none!important;
  cursor:pointer;
  transition:var(--ht-transition);
}

.ht-dictionary-search-submit{
  min-width:58px;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  background:var(--ht-link);
  color:#fff;
  font-weight:700;
}

.ht-dictionary-search-submit:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 24px rgba(44,106,160,0.22);
}

.ht-dictionary-search-clear{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  background:#eef3f8;
  color:#59708a;
  font-size:22px;
  line-height:1;
  flex:0 0 auto;
}

.ht-dictionary-search-clear:hover{
  background:#e1e9f2;
  color:var(--ht-link);
}

.ht-dictionary-search-results{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  right:0;
  z-index:30;
  background:#fff;
  border:1px solid var(--ht-border);
  border-radius:18px;
  box-shadow:var(--ht-shadow-md);
  padding:10px;
}

.ht-dictionary-search-result{
  display:block;
  width:97%;
  text-align:left;
  padding:12px 14px;
  border:none!important;
  background:transparent;
  color:var(--ht-text);
  border-radius:12px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:all .18s ease;
}

.ht-dictionary-search-result:hover,
.ht-dictionary-search-result.is-active{
  background:#eaf2fb;
  color:var(--ht-link);
}

.ht-dictionary-alpha{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 24px;
}

.ht-dictionary-alpha button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 11px;
  border-radius:999px;
  border:1px solid var(--ht-border);
  background:#fff;
  color:var(--ht-text-soft);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  box-shadow:var(--ht-shadow-xs);
  transition:var(--ht-transition);
}

.ht-dictionary-alpha button:hover,
.ht-dictionary-alpha button.active{
  background:var(--ht-link);
  border-color:var(--ht-link);
  color:#fff;
  box-shadow:0 8px 20px rgba(29,79,145,0.18);
}

.ht-dictionary-alpha button:disabled{
  opacity:.38;
  cursor:not-allowed;
  background:#f3f6fa;
  color:#9aa8b8;
  box-shadow:none;
}

.ht-dictionary-list{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.ht-dictionary-card{
  background:#fff;
  border:1px solid var(--ht-border);
  border-radius:var(--ht-radius-lg);
  overflow:hidden;
  transition:var(--ht-transition);
  box-shadow:var(--ht-shadow-xs);
  position:relative;
}

.ht-dictionary-card:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,var(--ht-accent) 0%, var(--ht-purple) 100%);
  opacity:.95;
}

.ht-dictionary-card:hover{
  transform:translateY(-3px);
  border-color:var(--ht-border-strong);
  box-shadow:var(--ht-shadow-md);
}

.ht-dictionary-card-link{
  display:block;
  padding:18px 20px 18px 24px;
  text-decoration:none!important;
  color:inherit!important;
}

.ht-dictionary-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:0 0 10px;
}

.ht-dictionary-card-title{
  font-size:22px;
  font-weight:800;
  margin:0;
  line-height:1.25;
  color:var(--ht-heading);
  letter-spacing:-0.01em;
}

.ht-dictionary-card-title span{
  display:inline-flex;
  vertical-align:middle;
  margin-left:7px;
  padding:4px 8px;
  border-radius:999px;
  background:#eef4fb;
  color:var(--ht-link);
  font-size:12px;
  line-height:1;
  font-weight:800;
  letter-spacing:.04em;
}

.ht-dictionary-card-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  flex:0 0 auto;
}

.ht-dictionary-category-pill,
.ht-dictionary-count-pill{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
}

.ht-dictionary-category-pill{
  background:#eaf2fb;
  color:var(--ht-link);
}

.ht-dictionary-count-pill{
  background:#f3f5f8;
  color:#65758a;
}

.ht-dictionary-card-description{
  max-width:960px;
  margin:0;
  color:var(--ht-text-soft);
  font-size:15px;
  line-height:1.65;
}

.ht-dictionary-empty{
  padding:18px 20px;
  background:#fff;
  border:1px solid var(--ht-border);
  border-radius:var(--ht-radius-lg);
  color:var(--ht-text-soft);
  font-weight:700;
}

/* =====================================================
SINGLE DICTIONARY TERM
===================================================== */

.single-ht_dictionary{
  background:var(--ht-bg);
}

.single-ht_dictionary .main-content,
.single-ht_dictionary .media-main-content{
  width:100%!important;
  max-width:100%!important;
  flex:0 0 100%!important;
}

.single-ht_dictionary .vc_sidebar{
  display:none!important;
}

.single-ht_dictionary .container,
.single-ht_dictionary .content-area{
  max-width:1320px;
  width:100%;
  margin:0 auto;
}

.ht-dictionary-single-wrap{
  margin:0 auto 46px;
  max-width:1320px;
  padding:6px 20px 0;
  box-sizing:border-box;
}

.ht-dictionary-single{
  width:100%;
  max-width:none;
  color:var(--ht-text);
}

.ht-dictionary-box{
  background:linear-gradient(180deg,#f8fbfe 0%, #ffffff 100%);
  border:1px solid var(--ht-border);
  border-radius:var(--ht-radius-lg);
  box-shadow:var(--ht-shadow-sm);
  position:relative;
  overflow:hidden;
}

.ht-dictionary-box:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,var(--ht-accent) 0%, var(--ht-purple) 100%);
  opacity:.95;
}

.ht-dictionary-breadcrumbs-wrap{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
}

.ht-dictionary-breadcrumbs{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  font-size:12px;
  line-height:1.3;
  color:#728295;
  margin:0 0 10px;
  padding-left:2px;
}

.ht-dictionary-breadcrumbs a{
  color:var(--ht-link);
  text-decoration:none;
  font-weight:600;
}

.ht-dictionary-breadcrumbs a:hover{
  color:var(--ht-link-hover);
}

.ht-dictionary-breadcrumb-sep{
  color:#99a6b5;
}

.ht-dictionary-breadcrumb-current{
  color:var(--ht-heading);
  font-weight:700;
}

.ht-dictionary-header{
  display:block;
  margin:0 0 28px;
  padding:26px 24px 22px;
}

.ht-dictionary-kicker{
  font-size:12px;
  line-height:1.2;
  color:var(--ht-link);
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin:0 0 10px;
}

.ht-dictionary-name{
  font-size:40px;
  font-weight:800;
  line-height:1.08;
  margin:0 0 16px;
  color:var(--ht-heading);
  letter-spacing:-0.02em;
}

.ht-dictionary-name span{
  display:inline-flex;
  vertical-align:middle;
  margin-left:9px;
  padding:6px 11px;
  border-radius:999px;
  background:#eef4fb;
  color:var(--ht-link);
  font-size:15px;
  line-height:1;
  font-weight:800;
  letter-spacing:.04em;
}

.ht-dictionary-header-snapshot{
  margin:0 0 18px;
  max-width:980px;
}

.ht-dictionary-header-snapshot p{
  margin:0;
  font-size:16px;
  line-height:1.65;
  color:var(--ht-text);
  font-weight:500;
}

.ht-dictionary-header-panel{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  align-content:stretch;
  max-width:980px;
}

.ht-dictionary-mini-stat{
  background:#fff;
  border:1px solid var(--ht-border);
  border-radius:10px;
  padding:11px 14px;
  box-shadow:var(--ht-shadow-xs);
}

.ht-dictionary-mini-stat span{
  display:block;
  font-size:11px;
  font-weight:800;
  color:#738396;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin:0 0 5px;
}

.ht-dictionary-mini-stat strong{
  display:block;
  font-size:15px;
  line-height:1.35;
  color:var(--ht-heading);
}

.ht-dictionary-synonyms,
.ht-dictionary-content,
.ht-dictionary-related-companies,
.ht-dictionary-related-terms,
.ht-dictionary-articles,
.ht-dictionary-disclaimer{
  margin:0 0 28px;
  padding:24px 22px 22px;
}

.ht-dictionary-synonyms h2,
.ht-dictionary-content h2,
.ht-dictionary-related-companies h2,
.ht-dictionary-related-terms h2,
.ht-dictionary-articles h2,
.ht-dictionary-disclaimer h2{
  font-size:24px;
  font-weight:800;
  line-height:1.2;
  color:var(--ht-heading);
  margin:0 0 16px;
  letter-spacing:-0.01em;
}

.ht-dictionary-content-text,
.ht-dictionary-content-text p,
.ht-dictionary-synonyms p{
  font-size:15px;
  line-height:1.78;
  color:var(--ht-text);
}

.ht-dictionary-content-text p,
.ht-dictionary-synonyms p{
  margin:0 0 14px;
}

.ht-dictionary-content-text h2,
.ht-dictionary-content-text h3,
.ht-dictionary-content-text h4{
  color:var(--ht-heading);
  margin-top:24px;
}

.ht-dictionary-company-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:16px;
}

.ht-dictionary-company-card{
  display:block;
  text-decoration:none!important;
  color:inherit!important;
  background:#fff;
  border:1px solid var(--ht-border);
  border-radius:10px;
  overflow:hidden;
  box-shadow:var(--ht-shadow-xs);
  transition:var(--ht-transition);
}

.ht-dictionary-company-card:hover{
  transform:translateY(-4px);
  border-color:var(--ht-border-strong);
  box-shadow:var(--ht-shadow-md);
}

.ht-dictionary-company-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:110px;
  padding:18px;
  background:linear-gradient(180deg,#f9fbfd 0%,#f3f7fb 100%);
  border-bottom:1px solid var(--ht-border);
}

.ht-dictionary-company-logo img{
  max-width:180px;
  max-height:80px;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

.ht-dictionary-company-fallback{
  font-size:15px;
  font-weight:800;
  color:var(--ht-heading);
  text-align:center;
}

.ht-dictionary-company-content{
  padding:15px 16px 17px;
}

.ht-dictionary-company-content h3{
  font-size:18px;
  font-weight:800;
  margin:0 0 7px;
  color:var(--ht-heading);
  line-height:1.3;
}

.ht-dictionary-company-content span,
.ht-dictionary-company-content em{
  display:block;
  font-style:normal;
  font-size:13px;
  line-height:1.45;
  color:var(--ht-text-soft);
}

.ht-dictionary-company-content em{
  color:var(--ht-link);
  font-weight:700;
  margin-top:4px;
}

.ht-dictionary-term-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.ht-dictionary-term-pills a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:10px 14px;
  background:#fff;
  border:1px solid var(--ht-border);
  border-radius:999px;
  color:var(--ht-link)!important;
  text-decoration:none!important;
  font-size:14px;
  font-weight:800;
  box-shadow:var(--ht-shadow-xs);
  transition:var(--ht-transition);
}

.ht-dictionary-term-pills a:hover{
  transform:translateY(-2px);
  border-color:var(--ht-border-strong);
  box-shadow:var(--ht-shadow-sm);
}

.ht-dictionary-term-pills span{
  padding:3px 7px;
  border-radius:999px;
  background:#eef4fb;
  font-size:11px;
  letter-spacing:.04em;
}

.ht-dictionary-article-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px;
}

.ht-dictionary-article-card{
  display:block;
  text-decoration:none!important;
  color:inherit!important;
  background:#fff;
  border:1px solid var(--ht-border);
  border-radius:10px;
  overflow:hidden;
  box-shadow:var(--ht-shadow-xs);
  transition:var(--ht-transition);
}

.ht-dictionary-article-card:hover{
  transform:translateY(-4px);
  border-color:var(--ht-border-strong);
  box-shadow:var(--ht-shadow-md);
}

.ht-dictionary-article-image{
  display:block;
  height:150px;
  overflow:hidden;
}

.ht-dictionary-article-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ht-dictionary-article-content{
  display:block;
  padding:15px 16px 17px;
}

.ht-dictionary-article-content strong{
  display:block;
  font-size:16px;
  line-height:1.35;
  color:var(--ht-link);
  margin:0 0 7px;
}

.ht-dictionary-article-content em{
  display:block;
  font-style:normal;
  font-size:12px;
  color:#777;
  margin:0 0 8px;
}

.ht-dictionary-article-content span{
  display:block;
  font-size:13px;
  line-height:1.5;
  color:#444;
}

.ht-dictionary-disclaimer{
  margin-top:8px;
  background:linear-gradient(180deg,#f7f9fc 0%, #ffffff 100%);
}

.ht-dictionary-disclaimer p{
  margin:0;
  font-size:13px;
  line-height:1.7;
  color:var(--ht-text-soft);
}


.ht-dictionary-ad-slot{
  margin:0 0 28px;
  text-align:center;
}

.ht-dictionary-ad-slot > *{
  max-width:100%;
}

@media (max-width:1100px){
  .ht-dictionary-header-panel{
    grid-template-columns:1fr;
    max-width:none;
  }
}

@media (max-width:768px){
  .ht-dictionary-search-box{
    padding:0 12px 0 18px;
    gap:8px;
  }

  .ht-dictionary-search-submit{
    min-width:54px;
    min-height:46px;
    padding:0 14px;
  }

  .ht-dictionary-search-clear{
    width:30px;
    height:30px;
    font-size:20px;
  }

  .ht-dictionary-card-head{
    display:block;
  }

  .ht-dictionary-card-meta{
    justify-content:flex-start;
    margin-top:10px;
  }

  .ht-dictionary-card-title{
    font-size:20px;
  }

  .ht-dictionary-single-wrap{
    padding-left:15px;
    padding-right:15px;
  }

  .ht-dictionary-name{
    font-size:31px;
  }

  .ht-dictionary-header,
  .ht-dictionary-synonyms,
  .ht-dictionary-content,
  .ht-dictionary-related-companies,
  .ht-dictionary-related-terms,
  .ht-dictionary-articles,
  .ht-dictionary-disclaimer{
    padding-left:18px;
    padding-right:18px;
  }
}
