/* LawHub Exams 10.13.16 — Unified Public Palette + Responsive Public Header
   Public Home / Tests / Demo / Lawyers / Lawyer Profile now inherit the authenticated LawHub palette.
   Core palette mirrors v94: #f3f4f6 / #fff / #171b24 / #737b89 / #e2e5ea / #182c49 / #274668 / #edf1f5. */
:root{
  --lh16-bg:#f3f4f6;
  --lh16-card:#ffffff;
  --lh16-text:#171b24;
  --lh16-muted:#737b89;
  --lh16-line:#e2e5ea;
  --lh16-accent:#182c49;
  --lh16-accent-2:#274668;
  --lh16-accent-3:#315f88;
  --lh16-accent-soft:#edf1f5;
  --lh16-accent-soft-2:#eef4fa;
  --lh16-shadow:0 18px 52px rgba(17,30,49,.075);
  --lh16-shadow-sm:0 10px 30px rgba(17,30,49,.055);
  --lh16-radius:18px;
  --lh16-radius-sm:12px;
}

/* ===== One public colour system ===== */
body.lhp-public-page,
body.lh137-directory-page{
  background:radial-gradient(circle at 50% -14%,#fff 0,#f7f8fa 27%,var(--lh16-bg) 62%)!important;
  color:var(--lh16-text)!important;
}
body.lhp-public-page main,
body.lh137-directory-page main{color:var(--lh16-text)!important}
.lhp-footer,body.lh137-directory-page .lh137-footer{
  color:var(--lh16-muted)!important;
  border-top-color:var(--lh16-line)!important;
}

/* ===== Shared public header ===== */
.lhp-site-header,body.lh137-directory-page .lh137-topbar{
  position:sticky!important;
  top:0!important;
  z-index:999!important;
  min-height:72px!important;
  background:linear-gradient(90deg,var(--lh16-accent) 0%,#1d3552 56%,var(--lh16-accent-2) 100%)!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 7px 24px rgba(17,30,49,.11)!important;
  transition:min-height .22s ease,background .22s ease,box-shadow .22s ease!important;
}
.lhp-header-inner,body.lh137-directory-page .lh137-topbar-inner{
  position:relative!important;
  min-height:72px!important;
  transition:min-height .22s ease,width .22s ease!important;
}
.lhp-brand,.lh137-brand{transition:transform .2s ease,opacity .2s ease!important}
.lhp-brand strong,.lh137-brand strong{color:#fff!important}
.lhp-brand span,.lh137-brand span{color:#aebdca!important}
.lhp-nav a,.lh137-public-nav a{color:#bcc8d2!important}
.lhp-nav a:hover,.lhp-nav a.is-active,.lh137-public-nav a:hover,.lh137-public-nav a.is-active{color:#fff!important}
.lhp-nav a.is-active:after,.lh137-public-nav a.is-active:after{background:#9db5c9!important}
.lhp-auth-actions a,.lh137-top-actions a{border-color:#4a6078!important;color:#e5ebf0!important;background:transparent!important}
.lhp-auth-actions a:hover,.lh137-top-actions a:hover{background:#274668!important;border-color:#60758b!important;color:#fff!important}
.lhp-auth-actions a.primary,.lh137-top-actions a.primary{background:#fff!important;border-color:#fff!important;color:var(--lh16-accent)!important}

/* Scroll state: only the LawHub wordmark remains visible. */
.lhp-site-header.is-logo-only,body.lh137-directory-page .lh137-topbar.is-logo-only{
  min-height:50px!important;
  background:rgba(24,44,73,.96)!important;
  box-shadow:0 7px 22px rgba(17,30,49,.13)!important;
  backdrop-filter:blur(16px)!important;
  -webkit-backdrop-filter:blur(16px)!important;
}
.lhp-site-header.is-logo-only .lhp-header-inner,
body.lh137-directory-page .lh137-topbar.is-logo-only .lh137-topbar-inner{
  width:100%!important;
  min-height:50px!important;
  grid-template-columns:1fr!important;
  justify-items:center!important;
  gap:0!important;
}
.lhp-site-header.is-logo-only .lhp-nav,
.lhp-site-header.is-logo-only .lhp-auth-actions,
.lhp-site-header.is-logo-only .lh16-menu-toggle,
.lhp-site-header.is-logo-only .lh16-mobile-menu,
body.lh137-directory-page .lh137-topbar.is-logo-only .lh137-public-nav,
body.lh137-directory-page .lh137-topbar.is-logo-only .lh137-top-actions,
body.lh137-directory-page .lh137-topbar.is-logo-only .lh16-menu-toggle,
body.lh137-directory-page .lh137-topbar.is-logo-only .lh16-mobile-menu{display:none!important}
.lhp-site-header.is-logo-only .lhp-brand,
body.lh137-directory-page .lh137-topbar.is-logo-only .lh137-brand{
  justify-self:center!important;
  align-items:center!important;
  transform:none!important;
}
.lhp-site-header.is-logo-only .lhp-brand strong,
body.lh137-directory-page .lh137-topbar.is-logo-only .lh137-brand strong{font-size:17px!important;letter-spacing:.14em!important}
.lhp-site-header.is-logo-only .lhp-brand span,
body.lh137-directory-page .lh137-topbar.is-logo-only .lh137-brand span{display:none!important}

/* ===== Mobile three-line menu ===== */
.lh16-menu-toggle{
  display:none;
  width:42px;height:42px;padding:0;
  border:1px solid rgba(255,255,255,.18);
  border-radius:11px;
  background:rgba(255,255,255,.04);
  align-items:center;justify-content:center;flex-direction:column;gap:4px;
  cursor:pointer;color:#fff;
}
.lh16-menu-toggle span{display:block;width:18px;height:1.5px;border-radius:9px;background:currentColor;transition:transform .18s ease,opacity .18s ease}
.lh16-menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(5.5px) rotate(45deg)}
.lh16-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.lh16-menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-5.5px) rotate(-45deg)}
.lh16-mobile-menu{
  position:absolute;top:calc(100% - 1px);right:0;z-index:1200;
  width:min(330px,calc(100vw - 28px));
  padding:10px;
  border:1px solid var(--lh16-line);
  border-radius:0 0 16px 16px;
  background:rgba(255,255,255,.985);
  box-shadow:0 24px 60px rgba(17,30,49,.18);
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translateY(-7px) scale(.985);transform-origin:top right;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}
.lh16-mobile-menu.is-open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1)}
.lh16-mobile-menu nav{display:grid;gap:3px}
.lh16-mobile-menu nav a{display:flex;align-items:center;justify-content:space-between;min-height:45px;padding:0 12px;border-radius:9px;color:#31465a;text-decoration:none;font-size:11px;font-weight:760}
.lh16-mobile-menu nav a:hover,.lh16-mobile-menu nav a.is-active{background:var(--lh16-accent-soft);color:var(--lh16-accent)}
.lh16-mobile-menu nav a:after{content:"→";color:#8795a2;font-weight:800}
.lh16-mobile-auth{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px;padding-top:9px;border-top:1px solid var(--lh16-line)}
.lh16-mobile-auth a{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid var(--lh16-line);border-radius:9px;color:var(--lh16-accent);text-decoration:none;font-size:10px;font-weight:820}
.lh16-mobile-auth a.is-primary{background:var(--lh16-accent);border-color:var(--lh16-accent);color:#fff}

/* ===== Same surfaces/cards across Home / Tests / Lawyers / Profile ===== */
.lhp-home-page .lhg136-proof,.lhp-home-page .lhg136-newsline,.lh15-service-strip,.lh15-explainer-grid article,
.lhp-home-lawyers-feature,.lhp-home-page .lhg136-demo-list,.lhp-home-page .lhg136-final,
.lhp-tests-overview,.lhp-tests-value-strip,.lhp-demo-test-card,.lhp-catalog-card,.lhp-test-toolbar,
.lh137-search-shell,.lh137-lawyer-card,.lh137-quick-card,.lh137-guide-card,
.lhp-profile-page .lh-public-card,.lhp-profile-page .lh-public-hero,.lhg-demo-app{
  border-color:var(--lh16-line)!important;
  background:var(--lh16-card)!important;
  box-shadow:var(--lh16-shadow-sm)!important;
}
.lhp-home-page .lhg136-final{background:linear-gradient(135deg,#fff,var(--lh16-accent-soft))!important}
.lhp-home-page .lhg136-final h2,.lh15-section-head h2,.lhp-section-heading h2,.lh137-results-head h2,.lh-public-section-title h2{color:var(--lh16-text)!important}
.lhp-home-page .lhg136-final p,.lh15-section-head p,.lhp-section-heading p,.lh137-about,.lh-public-about,.lh-public-consent-note{color:var(--lh16-muted)!important}

/* ===== One hero language: Main slider / Tests / Lawyers ===== */
.lh15-showcase,.lhp-tests-hero,.lh137-directory-hero{
  border:1px solid #35506d!important;
  border-radius:16px!important;
  background:
    radial-gradient(circle at 88% 4%,rgba(104,145,180,.20),transparent 30%),
    linear-gradient(135deg,var(--lh16-accent) 0%,#203a58 58%,var(--lh16-accent-2) 100%)!important;
  box-shadow:0 22px 56px rgba(17,30,49,.13)!important;
}
.lhp-tests-hero h1,.lh137-hero-copy h1,.lh15-slide-copy h1{color:#fff!important}
.lhp-tests-hero-copy>p,.lh137-hero-copy>p,.lh15-slide-copy>p{color:#c4cfda!important}
.lhp-eyebrow,.lh137-eyebrow,.lh15-kicker{color:#adbdca!important}
.lhp-eyebrow i,.lh137-eyebrow i,.lh15-kicker i{background:#86a8c4!important;box-shadow:0 0 0 4px rgba(134,168,196,.10)!important}

/* ===== Main slider refinement ===== */
.lhp-home-page .lhg-wrap{margin-top:22px!important}
.lh15-showcase{height:560px!important}
.lh15-showcase:after{
  content:"";position:absolute;inset:1px;z-index:0;pointer-events:none;border-radius:15px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055);
}
.lh15-slide.lhg-showcase-slide{grid-template-columns:minmax(0,1.03fr) minmax(390px,.97fr)!important;gap:48px!important;padding:48px 50px 70px!important}
.lh15-slide-copy h1{font-size:clamp(39px,4vw,58px)!important;letter-spacing:-.048em!important}
.lh15-slide-copy h1 em{color:#d5dfe7!important}
.lh15-slide-copy>p{font-size:12.5px!important;line-height:1.72!important}
.lh15-slide-points{margin-top:22px!important;border-top-color:rgba(255,255,255,.10)!important}
.lh15-slide-points li{min-height:51px!important;border-bottom-color:rgba(255,255,255,.09)!important}
.lh15-slide-points li>b{color:#89a4ba!important}
.lh15-slide-points strong{color:#f1f5f8!important}.lh15-slide-points small{color:#9fb0be!important}
.lh15-actions{margin-top:22px!important}
.lh15-actions a,.lh15-actions button{min-height:42px!important;border-color:#5b7187!important;border-radius:9px!important;color:#e7edf2!important}
.lh15-actions .is-primary{background:#fff!important;border-color:#fff!important;color:var(--lh16-accent)!important}
.lh15-visual{border-color:#d9e0e6!important;border-radius:14px!important;box-shadow:0 30px 70px rgba(8,20,35,.22)!important}
.lh15-visual>header{background:#f7f8fa!important;border-bottom-color:var(--lh16-line)!important}
.lh15-test-progress i{background:var(--lh16-accent-3)!important}
.lh15-test-options span.is-selected{border-color:#c9d8e4!important;background:var(--lh16-accent-soft-2)!important;color:#315270!important}
.lh15-test-options span.is-selected b{border-color:#b8cada!important;background:#dfeaf3!important;color:#274668!important}
.lh15-lawyer-search b{background:var(--lh16-accent)!important}
.lh15-lawyer-stats,.lh15-network-grid{background:var(--lh16-line)!important;border-color:var(--lh16-line)!important}
.lh15-network-grid div,.lh15-lawyer-stats span{background:#f8f9fb!important}
.lh15-slider-bar{
  left:50px!important;right:50px!important;bottom:15px!important;
  min-height:45px;padding-top:10px;border-top:1px solid rgba(255,255,255,.10)!important;
}
.lh15-slider-dots button{height:3px!important;background:rgba(255,255,255,.16)!important}
.lh15-slider-dots button.is-active{width:58px!important}.lh15-slider-dots button i{background:#b9cada!important}
.lh15-slider-arrows button{width:34px!important;height:34px!important;border-radius:9px!important;border-color:#566f86!important;background:rgba(255,255,255,.035)!important}
.lh15-slider-arrows button:hover{background:#fff!important;color:var(--lh16-accent)!important}
.lh15-service-strip{border-color:var(--lh16-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:var(--lh16-shadow-sm)!important}
.lh15-service-strip>a,.lh15-service-strip>button{background:#fff!important;border-color:var(--lh16-line)!important}.lh15-service-strip>a:hover,.lh15-service-strip>button:hover{background:var(--lh16-accent-soft)!important}
.lh15-service-strip strong{color:#243d55!important}.lh15-service-strip span{color:var(--lh16-muted)!important}.lh15-service-strip>a>b,.lh15-service-strip>button>b{color:#6f879b!important}

/* Home news line / lawyer feature now use the same authenticated palette. */
.lhg-news-ticker{background:var(--lh16-accent-soft)!important;border-bottom:1px solid var(--lh16-line)!important}
.lhg-news-label{color:var(--lh16-accent)!important}.lhg-news-track a{color:#526579!important}.lhg-news-all{color:var(--lh16-accent-2)!important}
.lhp-home-lawyers-feature{border-radius:16px!important;overflow:hidden!important}
.lhp-home-lawyers-intro{background:linear-gradient(145deg,var(--lh16-accent),var(--lh16-accent-2))!important}
.lhp-home-lawyer-preview{background:#fff!important}.lhp-home-lawyer-card:hover{background:var(--lh16-accent-soft)!important}
.lhp-home-lawyer-search label{background:#fff!important;border-color:#d8e0e7!important}.lhp-home-lawyer-search button{background:#fff!important;color:var(--lh16-accent)!important;border-color:#fff!important}

/* Tests */
.lhp-tests-value-strip,.lhp-tests-overview,.lhp-test-toolbar,.lhp-demo-test-card,.lhp-catalog-card{border-color:var(--lh16-line)!important}
.lhp-test-filters button{background:#fff!important;border-color:var(--lh16-line)!important;color:#637587!important}.lhp-test-filters button:hover{background:var(--lh16-accent-soft)!important}.lhp-test-filters button.is-active{background:var(--lh16-accent)!important;border-color:var(--lh16-accent)!important;color:#fff!important}
.lhp-tests-account{background:linear-gradient(135deg,var(--lh16-accent),var(--lh16-accent-2))!important;border-color:#35506d!important}
.lhp-demo-test-card:hover,.lhp-catalog-card:hover{border-color:#c7d3dc!important;box-shadow:var(--lh16-shadow)!important}

/* Demo */
.lhg-demo-head{background:linear-gradient(135deg,var(--lh16-accent),var(--lh16-accent-2))!important;border-color:#35506d!important}.lhg-demo-app{background:#fff!important}.lhg-demo-options button{background:#fbfcfd!important;border-color:var(--lh16-line)!important}.lhg-demo-actions button{background:var(--lh16-accent)!important}

/* Directory */
.lh137-hero-panel{background:#fff!important;border-color:var(--lh16-line)!important}
.lh137-search-shell,.lh137-lawyer-card,.lh137-guide-card,.lh137-quick-card{background:#fff!important;border-color:var(--lh16-line)!important}
.lh137-filters select,.lh137-search-field>div{background:#f8f9fb!important;border-color:var(--lh16-line)!important}.lh137-search-button{background:var(--lh16-accent)!important}.lh137-lawyer-card:hover{border-color:#c9d4de!important;box-shadow:var(--lh16-shadow)!important}.lh137-chips span{background:var(--lh16-accent-soft)!important;border-color:#dce3e9!important;color:#526b80!important}.lh137-open{color:var(--lh16-accent-2)!important}

/* Public lawyer profile: same navy hero + white content cards. */
.lhp-profile-page .lh-public-hero{
  border-color:#35506d!important;
  background:radial-gradient(circle at 92% 8%,rgba(103,145,181,.20),transparent 30%),linear-gradient(135deg,var(--lh16-accent),var(--lh16-accent-2))!important;
  color:#fff!important;
  box-shadow:0 22px 56px rgba(17,30,49,.13)!important;
}
.lhp-profile-page .lh-public-identity h1{color:#fff!important}.lhp-profile-page .lh-public-headline,.lhp-profile-page .lh-public-meta span,.lhp-profile-page .lh-public-kicker{color:#c5d0da!important}
.lhp-profile-page .lh-public-chips span{background:rgba(255,255,255,.09)!important;border-color:rgba(255,255,255,.15)!important;color:#e9eef2!important}
.lhp-profile-page .lh-public-btn{border-color:rgba(255,255,255,.28)!important;color:#fff!important;background:transparent!important}.lhp-profile-page .lh-public-btn.primary{background:#fff!important;border-color:#fff!important;color:var(--lh16-accent)!important}
.lhp-profile-page .lh-public-card{background:#fff!important;border-color:var(--lh16-line)!important}
.lhp-profile-page .lh-public-practice-list span{background:var(--lh16-accent-soft)!important;border-color:#dde4ea!important;color:#516a7f!important}
.lhp-profile-page .lh-public-cta-card{background:linear-gradient(145deg,var(--lh16-accent),var(--lh16-accent-2))!important;border-color:#35506d!important}
.lhp-profile-page .lh-public-cta-card .lh-public-btn.primary{background:#fff!important;border-color:#fff!important;color:var(--lh16-accent)!important}

/* Auth modal parity */
.lhg-auth-modal section{border-color:var(--lh16-line)!important;background:#fff!important}.lhg-auth-mark,.lhg-auth-modal .primary{background:var(--lh16-accent)!important;border-color:var(--lh16-accent)!important}

@media(max-width:980px){
  .lhp-header-inner,body.lh137-directory-page .lh137-topbar-inner{grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important}
  .lhp-nav,.lh137-public-nav,.lhp-auth-actions,.lh137-top-actions{display:none!important}
  .lh16-menu-toggle{display:flex!important;justify-self:end}
  .lh15-showcase{height:690px!important}
  .lh15-slide.lhg-showcase-slide{grid-template-columns:1fr!important;grid-template-rows:auto 1fr!important;gap:22px!important;padding:34px 30px 64px!important}
  .lh15-slide-points{grid-template-columns:repeat(3,1fr)!important;border:1px solid rgba(255,255,255,.10)!important;background:rgba(255,255,255,.08)!important}
  .lh15-slide-points li{border:0!important;background:rgba(24,44,73,.44)!important;padding:8px 10px!important}
  .lh15-slider-bar{left:30px!important;right:30px!important}
}
@media(max-width:680px){
  .lhp-site-header,body.lh137-directory-page .lh137-topbar{min-height:62px!important}
  .lhp-header-inner,body.lh137-directory-page .lh137-topbar-inner{min-height:62px!important;width:calc(100% - 20px)!important}
  .lhp-brand strong,.lh137-brand strong{font-size:18px!important}.lhp-brand span,.lh137-brand span{display:none!important}
  .lh16-menu-toggle{width:38px;height:38px;border-radius:10px}
  .lh16-mobile-menu{right:0;width:min(320px,calc(100vw - 20px));border-radius:0 0 14px 14px}
  .lh15-showcase{height:610px!important;border-radius:13px!important}
  .lh15-slide.lhg-showcase-slide{display:block!important;padding:27px 20px 62px!important}
  .lh15-slide-copy h1{font-size:32px!important;line-height:1.05!important}.lh15-slide-copy>p{font-size:10.5px!important}
  .lh15-slide-points{grid-template-columns:1fr!important;margin-top:16px!important;background:transparent!important;border:0!important}
  .lh15-slide-points li{min-height:43px!important;grid-template-columns:25px 1fr!important;padding:5px 0!important;border-bottom:1px solid rgba(255,255,255,.09)!important;background:transparent!important}
  .lh15-slide-points li span{display:flex!important;flex-direction:column!important;gap:2px!important}.lh15-slide-points small{white-space:normal!important;font-size:7.5px!important}.lh15-actions{margin-top:16px!important;display:grid!important;grid-template-columns:1fr 1fr!important}.lh15-actions a,.lh15-actions button{min-height:39px!important;font-size:8px!important}
  /* Mobile slider prioritises the message; the visual mockup is hidden to keep the first screen calm. */
  .lh15-visual{display:none!important}
  .lh15-slider-bar{left:20px!important;right:20px!important;bottom:13px!important}
  .lh15-service-strip{border-radius:12px!important}
  .lh15-service-strip>a,.lh15-service-strip>button{min-height:72px!important}
}
@media(max-width:390px){
  .lh15-showcase{height:635px!important}.lh15-actions{grid-template-columns:1fr!important}.lh16-mobile-auth{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){
  .lhp-site-header,.lh137-topbar,.lh16-mobile-menu,.lh16-menu-toggle span{transition:none!important}
}
