/*
 * LawHub 9.3 — Official Identity
 * Visual language sampled from lawhub.ge: #14213d navy, #0a0e1a ink, #f4f4f4 paper.
 * This file intentionally loads last and only refines presentation; functional selectors remain unchanged.
 */
:root,
html[data-lh-theme="lawhub"]{
  --lh-bg:#f4f4f4;
  --lh-card:#ffffff;
  --lh-text:#171b23;
  --lh-muted:#6f7785;
  --lh-line:#dde2ea;
  --lh-red:#14213d;
  --lh-red2:#20355f;
  --lh-accent:#14213d;
  --lh-accent2:#20355f;
  --lh-accent-soft:#edf1f7;
  --lh-accent-rgb:20,33,61;
  --lh-dark:#0a0e1a;
  --lh-shadow:0 16px 42px rgba(20,33,61,.07);
  --lh-radius:14px;
  --lh93-navy:#14213d;
  --lh93-ink:#0a0e1a;
  --lh93-paper:#f4f4f4;
  --lh93-steel:#a7acb6;
}
html[data-lh-theme="navy"]{--lh-accent:#1a2d52;--lh-accent2:#294a7d;--lh-accent-soft:#edf2f8;--lh-accent-rgb:26,45,82;--lh-red:#1a2d52;--lh-red2:#294a7d}
html[data-lh-theme="graphite"]{--lh-accent:#2d3440;--lh-accent2:#4b5665;--lh-accent-soft:#eff1f3;--lh-accent-rgb:45,52,64;--lh-red:#2d3440;--lh-red2:#4b5665}
html[data-lh-theme="emerald"]{--lh-accent:#164f45;--lh-accent2:#267467;--lh-accent-soft:#edf6f3;--lh-accent-rgb:22,79,69;--lh-red:#164f45;--lh-red2:#267467}
html[data-lh-theme="violet"]{--lh-accent:#692c3d;--lh-accent2:#8e4157;--lh-accent-soft:#f7eef1;--lh-accent-rgb:105,44,61;--lh-red:#692c3d;--lh-red2:#8e4157}

html,body,.lhv8-body{background:var(--lh-bg)}
body{font-feature-settings:"kern" 1,"liga" 1;text-rendering:optimizeLegibility}

/* Top bar — same calm navy identity as the public LawHub site */
.lhv8-topbar{
  height:66px;
  background:var(--lh93-navy)!important;
  grid-template-columns:270px minmax(260px,650px) 1fr;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 8px 24px rgba(10,14,26,.12);
}
.lhv8-brand{display:grid;grid-template-columns:auto;align-content:center;gap:0;line-height:1;text-decoration:none;letter-spacing:0}
.lhv8-brand .lhv93-wordmark,.lhv8-brand>span:first-child{font-family:Georgia,"Times New Roman",serif;font-size:25px;font-weight:700;letter-spacing:.7px;color:#fff}
.lhv8-brand>b{font-family:Georgia,"Times New Roman",serif;color:#fff!important;background:transparent!important;padding:0!important;margin-left:2px!important;border-radius:0!important;font-size:25px;line-height:1}
.lhv8-brand small{display:block;margin:5px 0 0!important;color:#c8ced8!important;font-size:9px!important;letter-spacing:.35px!important;text-transform:none!important;font-weight:600}
.lhv8-global-search{height:38px;background:rgba(7,13,25,.23);border-color:rgba(255,255,255,.14);border-radius:8px}
.lhv8-global-search:focus-within{border-color:rgba(255,255,255,.34);box-shadow:0 0 0 3px rgba(255,255,255,.06)}
.lhv8-icon-link{border-radius:8px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.08)}
.lhv8-icon-link:hover{background:rgba(255,255,255,.13)}
.lhv8-icon-link i{background:#fff!important;color:var(--lh93-navy)!important;border-color:var(--lh93-navy)!important;font-weight:900}
.lhv8-top-user{border-radius:8px}.lhv8-top-user:hover{background:rgba(255,255,255,.08)}

/* Structural surfaces */
.lhv8-layout{max-width:1510px;gap:20px}
.lhv8-left,.lhv8-right{background:#fff;border-color:var(--lh-line)}
.lhv8-side-inner{top:66px}
.lhv8-mini-profile{padding-top:5px}.lhv8-mini-profile img{border-radius:10px;box-shadow:0 0 0 1px var(--lh-line)}
.lhv8-nav{gap:3px}
.lhv8-nav a{position:relative;border-radius:8px;color:#343b47;font-weight:680;padding:10px 12px}
.lhv8-nav a:hover{background:#f4f6f8;color:var(--lh-accent)}
.lhv8-nav a.is-active{background:var(--lh-accent-soft)!important;color:var(--lh-accent)!important;font-weight:850}
.lhv8-nav a.is-active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:var(--lh-accent)}
.lhv8-card,.lhv8-profile-card,.lhv8-stat{border-color:var(--lh-line);box-shadow:0 3px 14px rgba(20,33,61,.035)}
.lhv8-card{border-radius:13px}.lhv8-stat{border-radius:11px}

/* Hero surfaces: official site dark editorial look */
.lhv8-welcome,.lhv8-page-head,.lhv8-test-hero,.lhv8-arena-hero,.lhv8-group-hero,.lhv8-result-hero{
  position:relative;overflow:hidden;
  background:linear-gradient(120deg,#0a0e1a 0%,#14213d 64%,#1b2a4a 100%)!important;
  border:1px solid rgba(255,255,255,.06);
  border-radius:13px!important;
  box-shadow:0 16px 42px rgba(10,14,26,.13)!important;
}
.lhv8-welcome:after,.lhv8-page-head:after,.lhv8-arena-hero:after,.lhv8-group-hero:after,.lhv8-result-hero:after{content:"";position:absolute;inset:0;pointer-events:none;opacity:.18;background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(90deg,transparent,rgba(0,0,0,.45),transparent)}
.lhv8-welcome>* ,.lhv8-page-head>* ,.lhv8-arena-hero>* ,.lhv8-group-hero>* ,.lhv8-result-hero>*{position:relative;z-index:1}
.lhv8-welcome small,.lhv8-page-head small,.lhv8-test-hero small,.lhv8-arena-hero small,.lhv8-group-hero small,.lhv8-result-hero small{color:#c4cad4!important;letter-spacing:.13em}
.lhv8-welcome p,.lhv8-page-head p{color:#c9ced7}

/* Buttons and form controls */
.lhv8-primary,.lhv85-primary,.lhv92-donation-custom,.lhv88-reply-form button{background:var(--lh-accent)!important;border-color:var(--lh-accent)!important;color:#fff!important;box-shadow:none!important}
.lhv8-primary:hover,.lhv85-primary:hover{filter:brightness(1.12)}
.lhv8-secondary{background:#eef1f4;color:#2f3743;border:1px solid #e0e4ea}
input,textarea,select{accent-color:var(--lh-accent)}
.lhv8-composer-row textarea,.lhv8-comment-form input{background:#f5f6f8;border-color:var(--lh-line)}

/* Profiles / community */
.lhv8-cover{background:linear-gradient(120deg,#0a0e1a,#14213d 68%,#243c6b)}
.lhv8-profile-avatar{box-shadow:0 0 0 5px #fff,0 7px 24px rgba(20,33,61,.12)}
.lhv8-verified{background:var(--lh-accent)!important;color:#fff!important}
.lhv8-post-actions button.is-on,.lhv8-link-btn,.lhv8-empty a{color:var(--lh-accent)!important}
.lhv8-comment-bubble{background:#f2f4f7}
.lhv8-system-icon{background:var(--lh93-navy)}
.lhv8-notification.is-unread{background:#f1f4f8}

/* Palette — calm material swatches instead of bright gimmick colors */
.lhv92-palette-menu{border-radius:15px!important;border:1px solid var(--lh-line)!important;box-shadow:0 24px 70px rgba(10,14,26,.22)!important;padding:12px!important}
.lhv92-palette-menu header{padding:2px 2px 10px!important}.lhv92-palette-menu header span{background:var(--lh-accent-soft)!important;color:var(--lh-accent)!important}
.lhv92-palette-grid{gap:7px!important}
.lhv92-palette-grid button{min-height:72px;border:1px solid var(--lh-line)!important;border-radius:11px!important;background:#fff!important}
.lhv92-palette-grid button:hover,.lhv92-palette-grid button.is-active{border-color:rgba(var(--lh-accent-rgb),.42)!important;background:var(--lh-accent-soft)!important;transform:translateY(-1px)}
.lhv92-palette-grid button i{width:30px!important;height:30px!important;border-radius:9px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 4px 10px rgba(10,14,26,.08)}
.lhv92-palette-grid button[data-lhv81-theme="lawhub"] i{background:linear-gradient(135deg,#14213d 0 55%,#f4f4f4 55% 77%,#0a0e1a 77%)}
.lhv92-palette-grid button[data-lhv81-theme="navy"] i{background:linear-gradient(135deg,#1a2d52,#294a7d)}
.lhv92-palette-grid button[data-lhv81-theme="graphite"] i{background:linear-gradient(135deg,#2d3440,#687384)}
.lhv92-palette-grid button[data-lhv81-theme="emerald"] i{background:linear-gradient(135deg,#164f45,#2a7b6c)}
.lhv92-palette-grid button[data-lhv81-theme="violet"] i{background:linear-gradient(135deg,#692c3d,#9b4d63)}
.lhv92-palette-grid button[data-lhv81-theme="dark"] i{background:linear-gradient(135deg,#080d14,#1a2637)}

/* Auth page: align it with official LawHub instead of a generic SaaS gradient */
.lhv90-auth-body,.lhv8-auth-body{background:#0a0e1a!important}
.lhv90-auth-bg{background:radial-gradient(circle at 25% 15%,rgba(32,53,95,.44),transparent 36%),linear-gradient(145deg,#080c16,#111b31 68%,#0a0e1a)!important}
.lhv90-auth-brand span,.lhv90-auth-brand b,.lhv90-site-auth-brand span,.lhv90-site-auth-brand b{font-family:Georgia,"Times New Roman",serif!important;background:transparent!important;color:#fff!important;padding:0!important;letter-spacing:.4px!important}
.lhv90-auth-brand b,.lhv90-site-auth-brand b{margin-left:2px!important}
.lhv90-auth-hero h1{max-width:700px}.lhv90-eyebrow{color:#bcc4d0!important}
.lhv90-auth-card{border-radius:18px!important}.lhv90-auth-tabs button.is-active{color:var(--lh93-navy)!important;border-color:var(--lh93-navy)!important}
.lhv90-auth-submit{background:var(--lh93-navy)!important}
.lhv90-input:focus-within{border-color:#8e9db5!important;box-shadow:0 0 0 3px rgba(20,33,61,.08)!important}

/* Exam simulator official palette */
html[data-exam-theme="navy"] .lhv85-runner{--exam-surface:#fff;--exam-bg:#f4f4f4;--exam-line:#dde2ea;--exam-text:#171b23;--exam-muted:#6f7785}
html[data-exam-theme="navy"] .lhv85-progress i{background:#14213d!important}
.lhv85-run-brand span,.lhv85-run-brand b{font-family:Georgia,"Times New Roman",serif!important;color:#14213d!important;background:transparent!important;padding:0!important}
.lhv87-owner-card{border-color:var(--lh-line)!important;box-shadow:0 10px 30px rgba(20,33,61,.06)!important}

/* Right rail / support */
.lhv92-donation-card{background:linear-gradient(155deg,#f7f8fa,#eef1f5)!important;border-color:#dbe0e8!important}
.lhv92-donation-presets button{color:#14213d!important}
.lhv92-donation-presets button:hover{border-color:#96a1b2!important;background:#f4f6f8!important}

/* Dark theme still belongs to the same identity */
html[data-lh-theme="dark"]{--lh-bg:#0a0e1a;--lh-card:#111826;--lh-text:#edf1f6;--lh-muted:#99a4b3;--lh-line:#263244;--lh-red:#8ca6ce;--lh-red2:#aec0dd;--lh-accent:#8ca6ce;--lh-accent2:#aec0dd;--lh-accent-soft:#18253a;--lh-accent-rgb:140,166,206;--lh-dark:#070a11}
html[data-lh-theme="dark"] .lhv8-left,html[data-lh-theme="dark"] .lhv8-right{background:#111826!important}
html[data-lh-theme="dark"] .lhv8-card,html[data-lh-theme="dark"] .lhv8-profile-card,html[data-lh-theme="dark"] .lhv8-stat{background:#111826!important;border-color:#263244!important}

@media(max-width:850px){
  .lhv8-topbar{height:62px;grid-template-columns:155px minmax(120px,1fr) auto}
  .lhv8-side-inner{top:62px}
  .lhv8-nav a.is-active:before{display:none}
}
@media(max-width:620px){
  .lhv8-topbar{grid-template-columns:130px 1fr}
  .lhv8-brand .lhv93-wordmark,.lhv8-brand>span:first-child,.lhv8-brand>b{font-size:20px!important}
  .lhv8-brand small{font-size:7.5px!important}
  .lhv8-layout{padding:0 8px}
  .lhv8-card{border-radius:11px}
}
