:root {
  --hs-ink: #183230;
  --hs-muted: #496461;
  --hs-paper: #f6f3eb;
  --hs-surface: #fffdf8;
  --hs-pine: #153b3a;
  --hs-teal: #217b73;
  --hs-coral: #d56c50;
  --hs-line: rgba(24, 50, 48, .16);
  --hs-shadow: 0 22px 60px rgba(21, 59, 58, .09);
  --hs-serif: Georgia, "Times New Roman", serif;
  --hs-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--hs-ink);
  background: var(--hs-paper);
  font-family: var(--hs-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body { overflow: auto !important; }

.ent_wrapper {
  position: static !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

.ent_header {
  position: sticky !important;
  z-index: 20;
  top: 0 !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2)) !important;
  border-bottom: 1px solid var(--hs-line);
  background: rgba(246, 243, 235, .92);
  backdrop-filter: blur(14px);
}

.logo_intro {
  width: auto !important;
  height: auto !important;
  min-width: 0;
  background: none !important;
}

.heurisko-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--hs-pine);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.heurisko-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.heurisko-mark::before,
.heurisko-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: currentColor;
}

.heurisko-mark::before {
  width: 6px;
  height: 6px;
  top: 10px;
  left: 10px;
}

.heurisko-mark::after {
  width: 3px;
  height: 3px;
  top: 5px;
  right: 5px;
}

.heurisko-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.heurisko-nav a {
  color: var(--hs-muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
}

.heurisko-nav a:hover { color: var(--hs-teal); }

.heurisko-nav .primary-link {
  padding: .72rem 1rem;
  border: 1px solid var(--hs-pine);
  color: var(--hs-pine);
}

.ent_content_full,
.bg_intro {
  position: static !important;
  min-height: calc(100vh - 79px);
  overflow: visible !important;
  border: 0 !important;
  background: var(--hs-paper) !important;
}

.center-box.screen8 {
  width: min(calc(100% - 40px), 1180px) !important;
  height: auto !important;
  min-height: 640px;
  margin: 0 auto !important;
  padding: 78px 0 96px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.screen8 > h1 {
  display: block !important;
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--hs-ink) !important;
  font-family: var(--hs-serif);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 400 !important;
  letter-spacing: -.05em;
  line-height: 1;
}

.screen8 > h1::before {
  content: "Research databases";
  display: block;
  margin-bottom: 18px;
  color: var(--hs-teal);
  font-family: var(--hs-sans);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.screen8 > h1::after { content: "Access the databases hosted and supported by Heurisko."; }
.screen8 > h1 { font-size: 0; }
.screen8 > h1::after {
  font-family: var(--hs-serif);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.heurisko-intro {
  max-width: 650px;
  margin: 0 0 46px;
  color: var(--hs-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

#tabs-view.ui-tabs,
#tabs-view {
  padding: 0 !important;
  border: 1px solid var(--hs-line) !important;
  border-radius: 0 !important;
  background: var(--hs-surface) !important;
  box-shadow: var(--hs-shadow);
}

#tabs-server-list.ui-tabs-nav,
#tabs-server-list {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin: 0 !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hs-line) !important;
  border-radius: 0 !important;
  background: var(--hs-surface) !important;
}

#tabs-server-list li,
#tabs-server-list .ui-tabs-tab,
#tabs-server-list .ui-tabs-active {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

#tabs-server-list a,
#tabs-server-list .ui-tabs-anchor {
  padding: 19px 0 16px !important;
  border-bottom: 3px solid var(--hs-teal);
  color: var(--hs-ink) !important;
  font-size: .85rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#tabs-view .ui-tabs-panel,
.server-tab {
  height: auto !important;
  min-height: 390px;
  padding: 32px !important;
  overflow: visible !important;
}

.server-tab h3 {
  margin: 0 0 22px;
  color: var(--hs-ink) !important;
  font-family: var(--hs-serif);
  font-size: 1.8rem;
  font-weight: 400 !important;
}

.server-tab > span:first-of-type {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#current-tabs-filter_database,
.server-tab input[id$="tabs-filter_database"] {
  width: min(100%, 480px);
  min-height: 48px;
  margin-bottom: 30px;
  padding: 0 48px 0 16px !important;
  border: 1px solid var(--hs-line) !important;
  border-radius: 0 !important;
  background-color: var(--hs-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23217b73' stroke-width='1.8'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: var(--hs-ink);
  font: 1rem var(--hs-sans);
  outline: none;
}

#current-tabs-filter_database:focus,
.server-tab input[id$="tabs-filter_database"]:focus {
  border-color: var(--hs-teal) !important;
  box-shadow: 0 0 0 3px rgba(33, 123, 115, .12);
}

#btnNewDatabase { display: none !important; }

.db-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  clear: both;
  margin: 0;
  padding: 0 !important;
  column-width: auto !important;
}

.db-list .db-info,
.db-list li {
  position: relative;
  min-width: 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 10px 38px 10px 42px !important;
  border: 1px solid var(--hs-line);
  background: transparent !important;
  background-image: none !important;
  color: var(--hs-ink);
  font-size: .88rem;
  line-height: 1.25 !important;
  list-style: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.db-list .db-info::before,
.db-list li::before {
  content: "";
  position: absolute;
  left: 15px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--hs-teal);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--hs-surface);
  background: var(--hs-teal);
}

.db-list .db-info::after,
.db-list li::after {
  content: "↗";
  position: absolute;
  right: 15px;
  color: var(--hs-teal);
  opacity: 0;
  transition: opacity .18s ease;
}

.db-list .db-info:hover,
.db-list li:hover {
  z-index: 1;
  border-color: var(--hs-teal);
  background: rgba(33, 123, 115, .055) !important;
  transform: translateY(-1px);
}

.db-list .db-info:hover::after,
.db-list li:hover::after { opacity: 1; }

.no-filtered-results {
  display: block;
  padding: 24px 0;
  color: var(--hs-coral);
  font-weight: 700;
}

.no-filtered-results[hidden] { display: none !important; }

.heurisko-access-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--hs-line);
  color: var(--hs-muted);
  background: var(--hs-paper);
  font-size: .86rem;
  line-height: 1.55;
}

.heurisko-access-note strong { color: var(--hs-ink); }

.heurisko-footer {
  padding: 28px 20px;
  border-top: 1px solid var(--hs-line);
  color: var(--hs-muted);
  background: var(--hs-paper);
  text-align: center;
  font-size: .84rem;
}

@media (max-width: 820px) {
  .ent_header { padding-inline: 20px !important; }
  .heurisko-nav a:not(.primary-link) { display: none; }
  .center-box.screen8 { padding-top: 54px !important; }
  .db-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .heurisko-mark { display: none; }
  .heurisko-brand { font-size: .93rem; letter-spacing: .15em; }
  .heurisko-nav .primary-link { padding: .55rem .7rem; font-size: .76rem; }
  .center-box.screen8 { width: min(calc(100% - 28px), 1180px) !important; }
  #tabs-view .ui-tabs-panel, .server-tab { padding: 22px !important; }
  .db-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
