/* LawHub 9.0 — current navy/blue brand, premium exam, Arena & unified auth */
:root,[data-lh-theme="lawhub"],[data-lh-theme="navy"]{
  --lh-accent:#1f4678;--lh-accent2:#2d5f9b;--lh-accent-soft:#edf3fb;--lh-accent-rgb:31,70,120;
  --lh-red:#1f4678;--lh-red2:#2d5f9b;
  --lh90-navy:#142440;--lh90-blue:#1f4678;--lh90-blue2:#2d5f9b;--lh90-ice:#edf3fb;--lh90-line:#dce5f0;
}
/* Compatibility: older components still target “red” variables, but LawHub's current brand is navy. */
.lhv8-brand b,.lhv81-login-brand b{background:transparent!important;color:#8ea9ce!important;padding:0!important;border-radius:0!important}
.lhv8-brand span{color:#fff!important}.lhv8-brand{letter-spacing:.02em}
.lhv81-palette-menu [data-lhv81-theme="lawhub"]{background:linear-gradient(135deg,#142440,#2d5f9b)!important}
.lhv8-topbar{background:linear-gradient(90deg,#101d33,#172b4b 60%,#1e3d68)!important}
.lhv8-nav a.is-active{background:#edf3fb!important;color:#183b68!important}
.lhv8-primary,.lhv85-primary{background:linear-gradient(135deg,#173c6b,#28588f)!important;border-color:#173c6b!important;box-shadow:0 10px 24px rgba(23,60,107,.18)!important}
.lhv8-link-btn,.lhv8-secondary{color:#173c6b!important}

/* Unified site modal */
.lhv90-site-auth{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.lhv90-site-auth .lhv81-site-login-backdrop{background:rgba(7,17,31,.74);backdrop-filter:blur(12px)}
.lhv90-site-auth-card{position:relative;width:min(470px,calc(100vw - 28px));max-height:min(720px,calc(100vh - 30px));overflow:auto;background:linear-gradient(180deg,#fff,#f7f9fc);border:1px solid rgba(31,70,120,.14);border-radius:24px;padding:26px;box-shadow:0 34px 100px rgba(5,16,34,.34);z-index:2}
.lhv90-site-auth-brand{display:flex;align-items:baseline;gap:3px;margin:2px 0 18px;font-weight:950;font-size:24px;letter-spacing:-.8px}.lhv90-site-auth-brand span{color:#101a2b}.lhv90-site-auth-brand b{color:#2c5588}.lhv90-site-auth-brand small{font-size:9px;color:#8390a2;font-weight:700;letter-spacing:.12em;margin-left:8px}
.lhv90-site-auth-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:#edf1f6;border-radius:13px;padding:4px;margin-bottom:17px}.lhv90-site-auth-tabs button{border:0;background:transparent;border-radius:10px;padding:9px 5px;font:700 10px inherit;color:#697486;cursor:pointer}.lhv90-site-auth-tabs button.is-active{background:#fff;color:#173c6b;box-shadow:0 3px 12px rgba(16,34,58,.08)}
.lhv90-site-auth-form{display:grid;gap:12px}.lhv90-site-auth-form[hidden]{display:none!important}.lhv90-site-auth-form>p{margin:0;padding:11px 12px;background:#edf3fb;color:#52647b;border-radius:12px;font-size:11px;line-height:1.55}.lhv90-site-auth-form label{font-size:10px;font-weight:800;color:#526070;letter-spacing:.02em}.lhv90-site-auth-form input:not([type=checkbox]){width:100%;margin-top:5px;padding:12px 13px;border:1px solid #dbe2eb;border-radius:11px;background:#fff;color:#182231;outline:0}.lhv90-site-auth-form input:focus{border-color:#4775aa;box-shadow:0 0 0 3px rgba(45,95,155,.1)}.lhv90-site-auth-form>button{border:0;border-radius:11px;padding:12px 14px;background:linear-gradient(135deg,#142440,#2d5f9b);color:#fff;font-weight:850;cursor:pointer}.lhv90-site-auth-form>small{min-height:16px;color:#52647b;font-size:10px}.lhv90-site-auth-card footer{margin-top:18px;border-top:1px solid #e5eaf0;padding-top:13px;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:9.5px;color:#8a94a3}.lhv90-site-auth-card footer a{color:#1f4678;text-decoration:none;font-weight:800;white-space:nowrap}
.lhv81-floating-login{background:linear-gradient(135deg,#142440,#2d5f9b)!important}.lhv82-fmsg.mine p,.lhv82-floating-chat>form>button[type=submit]{background:#1f4678!important}

/* /exams animated welcome */
.lhv90-auth-body{min-height:100vh;margin:0;background:#07101f;color:#17202e;overflow-x:hidden;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}.lhv90-auth-bg{position:fixed;inset:0;overflow:hidden;pointer-events:none;background:radial-gradient(circle at 15% 20%,rgba(62,105,160,.26),transparent 34%),radial-gradient(circle at 85% 76%,rgba(35,73,123,.34),transparent 37%),linear-gradient(135deg,#07101f,#0d1b31 53%,#132846)}.lhv90-auth-bg:after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px);background-size:40px 40px;mask-image:linear-gradient(to bottom,transparent,black 25%,black 75%,transparent)}.lhv90-auth-bg>i{position:absolute;border:1px solid rgba(130,167,212,.14);border-radius:50%;animation:lh90float 8s ease-in-out infinite}.lhv90-auth-bg>i:nth-child(1){width:310px;height:310px;left:-90px;top:12%}.lhv90-auth-bg>i:nth-child(2){width:520px;height:520px;right:-220px;bottom:-130px;animation-delay:-3s}.lhv90-auth-bg>i:nth-child(3){width:110px;height:110px;right:24%;top:14%;animation-delay:-5s}.lhv90-auth-bg>svg{position:absolute;width:min(58vw,780px);right:-7vw;top:8vh;opacity:.08;fill:none;stroke:#b6c9e4;stroke-width:4}@keyframes lh90float{50%{transform:translateY(-18px) scale(1.03)}}
.lhv90-auth-shell{position:relative;z-index:1;min-height:100vh;width:min(1180px,calc(100% - 36px));margin:auto;display:grid;grid-template-columns:minmax(0,1.18fr) minmax(360px,.72fr);gap:72px;align-items:center;padding:44px 0}.lhv90-auth-hero{color:#fff;padding:30px 0}.lhv90-auth-brand{display:flex;align-items:baseline;font-size:42px;font-weight:950;letter-spacing:-2px}.lhv90-auth-brand span{color:#fff}.lhv90-auth-brand b{color:#8fafd7}.lhv90-eyebrow{display:block;margin-top:26px;color:#86a4ca;font-weight:800;letter-spacing:.22em;font-size:10px}.lhv90-auth-hero h1{font-size:clamp(38px,5.2vw,70px);line-height:1.02;letter-spacing:-.047em;margin:13px 0 18px;max-width:760px}.lhv90-auth-hero>p{max-width:680px;color:#b9c7d8;font-size:15px;line-height:1.75}.lhv90-auth-features{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:34px}.lhv90-auth-features article{display:flex;gap:10px;align-items:center;border:1px solid rgba(179,204,235,.13);background:rgba(255,255,255,.045);border-radius:14px;padding:13px;backdrop-filter:blur(8px)}.lhv90-auth-features svg{width:23px;height:23px;stroke:#8eadd4;fill:none;stroke-width:1.7;flex:0 0 auto}.lhv90-auth-features b,.lhv90-auth-features span{display:block}.lhv90-auth-features b{font-size:10px}.lhv90-auth-features span{font-size:8.5px;color:#9dafc6;margin-top:2px;line-height:1.35}.lhv90-auth-orbit{display:flex;gap:7px;flex-wrap:wrap;margin-top:17px}.lhv90-auth-orbit span{border:1px solid rgba(160,190,228,.15);border-radius:999px;padding:5px 9px;font-size:8px;color:#9cb1cc}
.lhv90-auth-card{background:rgba(255,255,255,.985);border:1px solid rgba(255,255,255,.55);border-radius:25px;padding:28px;box-shadow:0 36px 100px rgba(0,0,0,.35)}.lhv90-auth-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.lhv90-auth-card-head small{font-size:8px;letter-spacing:.2em;color:#8290a2;font-weight:900}.lhv90-auth-card-head h2{font-size:25px;margin:3px 0 0;color:#142035}.lhv90-auth-card-head>a{width:35px;height:35px;border-radius:10px;background:#f0f3f7;display:grid;place-items:center;color:#516177}.lhv90-auth-card-head svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.lhv90-auth-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:4px;background:#eef2f6;border-radius:12px;gap:4px;margin-bottom:17px}.lhv90-auth-tabs button{border:0;background:transparent;border-radius:9px;padding:9px 5px;color:#748093;font:800 9.5px inherit;cursor:pointer}.lhv90-auth-tabs button.is-active{background:#fff;color:#1f4678;box-shadow:0 4px 13px rgba(15,35,64,.09)}.lhv90-auth-form{display:grid;gap:12px}.lhv90-auth-form[hidden]{display:none!important}.lhv90-auth-form label{font-size:9px;font-weight:850;color:#556274}.lhv90-input{display:flex;align-items:center;gap:8px;margin-top:5px;border:1px solid #dbe2eb;border-radius:11px;background:#fbfcfe;padding:0 11px}.lhv90-input:focus-within{border-color:#5c84b4;box-shadow:0 0 0 3px rgba(45,95,155,.09);background:#fff}.lhv90-input svg{width:16px;height:16px;fill:none;stroke:#7b8ba0;stroke-width:1.6;flex:0 0 auto}.lhv90-input>span{font-weight:900;color:#8090a5}.lhv90-input input{width:100%;border:0!important;background:transparent!important;outline:0;padding:12px 0!important;font-size:12px!important;box-shadow:none!important}.lhv90-auth-submit{min-height:44px;border-radius:11px!important;display:flex;justify-content:center;align-items:center;gap:10px}.lhv90-auth-explain{display:flex;gap:10px;padding:12px;border-radius:12px;background:#edf3fb;color:#536b89}.lhv90-auth-explain svg{width:25px;height:25px;flex:0 0 auto;fill:none;stroke:#2d5f9b;stroke-width:1.6}.lhv90-auth-explain p{margin:0;font-size:10px;line-height:1.55}.lhv90-verify-resend{display:grid;grid-template-columns:1fr auto;gap:6px;padding-top:11px;border-top:1px solid #e8ecf1}.lhv90-verify-resend>span,.lhv90-verify-resend>small{grid-column:1/-1;font-size:9px;color:#8290a0}.lhv90-verify-resend input{min-width:0;border:1px solid #e0e5eb;border-radius:9px;padding:8px 9px}.lhv90-verify-resend button{border:0;border-radius:9px;background:#eaf1fa;color:#1f4678;font-weight:800;font-size:9px;padding:8px 10px;cursor:pointer}.lhv90-auth-foot{display:flex;gap:8px;align-items:center;border-top:1px solid #e8ecf1;margin-top:18px;padding-top:13px;color:#8591a1;font-size:8.5px}.lhv90-auth-foot i{width:7px;height:7px;background:#23a36c;border-radius:50%;box-shadow:0 0 0 4px rgba(35,163,108,.09)}
@media(max-width:900px){.lhv90-auth-shell{grid-template-columns:1fr;gap:20px;padding:24px 0 40px}.lhv90-auth-hero{padding:20px 4px 0}.lhv90-auth-hero h1{font-size:42px}.lhv90-auth-features{grid-template-columns:1fr}.lhv90-auth-card{width:min(560px,100%);margin:auto}.lhv90-auth-bg>svg{width:110vw;opacity:.045}}
@media(max-width:520px){.lhv90-auth-shell{width:min(100% - 20px,1180px)}.lhv90-auth-brand{font-size:34px}.lhv90-auth-hero h1{font-size:34px}.lhv90-auth-card{padding:20px}.lhv90-auth-tabs{grid-template-columns:1fr}.lhv90-auth-orbit{display:none}}

/* Exam: state clarity from the user's ib.html reference, without visual clutter */
.lhv85-navigator button.is-viewed{background:#eef2f6!important;border-color:#c9d3df!important;color:#607086!important;position:relative}.lhv85-navigator button.is-viewed:after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;right:5px;bottom:5px;background:#8b98a8}.lhv85-navigator button.is-skipped{background:#fff!important;border-style:dashed!important;border-color:#c0cad6!important;color:#758294!important}.lhv85-navigator button.is-answered,.lhv85-navigator button.is-done{background:#edf8f3!important;border-color:#9bd6bb!important;color:#157348!important}.lhv85-navigator button.is-active{background:#142440!important;color:#fff!important;border-color:#142440!important}.lhv85-navigator button.is-starred{box-shadow:inset 0 0 0 2px #d4a342!important}.lhv85-legend i.viewed{background:#d3dbe5}.lhv85-legend i.skipped{background:#fff;border:1px dashed #8997a7}.lhv85-legend i.starred{background:#fff6d8;border:1px solid #d4a342}
.lhv88-qtool svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.lhv88-qtool.active{background:#eaf1fa!important;color:#1f4678!important;border-color:#a9c0dd!important}.lhv85-option.is-eliminated{opacity:.42;filter:grayscale(.3);text-decoration:line-through;background:#f5f6f8!important;border-style:dashed!important}.lhv85-option.is-eliminated:hover{opacity:.68}.lhv90-pause-overlay[hidden]{display:none!important}.lhv90-pause-overlay{position:fixed;inset:0;z-index:120000;display:grid;place-items:center;padding:20px;background:rgba(8,18,34,.78);backdrop-filter:blur(18px)}.lhv90-pause-overlay section{width:min(410px,100%);text-align:center;background:#fff;border-radius:24px;padding:32px;box-shadow:0 30px 90px rgba(0,0,0,.35)}.lhv90-pause-mark{width:68px;height:68px;margin:0 auto 14px;border-radius:20px;background:#edf3fb;display:grid;place-items:center;color:#1f4678}.lhv90-pause-mark svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:4}.lhv90-pause-overlay small{color:#7790ae;letter-spacing:.18em;font-size:8px;font-weight:900}.lhv90-pause-overlay h2{margin:6px 0 8px;font-size:25px;color:#142440}.lhv90-pause-overlay p{font-size:11px;line-height:1.6;color:#6f7c8c;margin:0 0 20px}.lhv90-pause-overlay button{border:0;border-radius:11px;padding:11px 18px;background:#142440;color:#fff;font-weight:850;cursor:pointer}

/* Comments: avatars + Facebook-style nested replies */
.lhv88-comment{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;gap:8px!important;align-items:start!important;margin:9px 0!important}.lhv88-comment-avatar{display:block;width:36px;height:36px;flex:0 0 auto}.lhv88-comment-avatar img{display:block!important;width:36px!important;height:36px!important;border-radius:50%!important;object-fit:cover!important;border:1px solid #e4e8ee}.lhv88-comment-main{min-width:0}.lhv8-comment-bubble{display:inline-block;max-width:min(680px,100%);background:#f1f3f6!important;border-radius:16px!important;padding:9px 12px!important}.lhv8-comment-bubble a{text-decoration:none;color:#1c2635}.lhv8-comment-bubble p{margin:3px 0 0!important;line-height:1.5!important}.lhv88-comment-meta{display:flex;align-items:center;gap:9px;margin:4px 7px;color:#8d97a5;font-size:8.5px}.lhv88-comment-meta button{border:0;background:transparent;color:#697789;padding:0;font:750 8.5px inherit;cursor:pointer}.lhv88-comment-meta button:hover,.lhv88-comment-meta button.is-on{color:#1f5d9a}.lhv88-comment-replies{margin-left:4px;border-left:2px solid #edf0f4;padding-left:10px}.lhv88-comment.depth-1,.lhv88-comment.depth-2,.lhv88-comment.depth-3{margin-top:7px!important}.lhv88-reply-form{display:grid;grid-template-columns:28px minmax(0,1fr) 30px;gap:6px;align-items:center;margin:7px 0}.lhv88-reply-form img{width:28px;height:28px;border-radius:50%;object-fit:cover}.lhv88-reply-form input{border:1px solid #dfe4ea;background:#f7f8fa;border-radius:16px;padding:8px 10px;outline:none;min-width:0}.lhv88-reply-form button{width:30px;height:30px;border:0;border-radius:50%;background:#1f4678;color:#fff;cursor:pointer}.lhv90-owner-members{background:linear-gradient(135deg,#eaf1fa,#f7fbff)!important;color:#173c6b!important}.lhv90-owner-members span{color:#587495!important}

/* Arena game polish */
.lhv88-arena-hero-premium{background:radial-gradient(circle at 88% 14%,rgba(80,128,184,.33),transparent 28%),linear-gradient(135deg,#0d1b30,#142b4b 62%,#1f4678)!important}.lhv88-arena-badges span{border-color:rgba(173,202,237,.18)!important;background:rgba(255,255,255,.05)!important}.lhv88-arena-invite-actions .lhv8-primary{background:linear-gradient(135deg,#163968,#2c619c)!important}.lhv90-arena-rank{margin-top:16px}.lhv90-arena-rank-grid{display:grid;gap:6px}.lhv90-arena-rank-row{display:grid;grid-template-columns:34px 38px minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:8px 10px;border:1px solid #e3e8ef;border-radius:12px;background:#fff;color:#1b2635;text-decoration:none;transition:.18s}.lhv90-arena-rank-row:hover{transform:translateY(-1px);border-color:#aac0dc;box-shadow:0 8px 22px rgba(20,36,64,.07)}.lhv90-arena-rank-row>em{font-style:normal;font-size:10px;font-weight:900;color:#7c8b9c}.lhv90-arena-rank-row>img{width:36px;height:36px;border-radius:50%;object-fit:cover}.lhv90-arena-rank-row div b,.lhv90-arena-rank-row div small{display:block}.lhv90-arena-rank-row div b{font-size:10px}.lhv90-arena-rank-row div small{font-size:8px;color:#8490a0}.lhv90-arena-rank-row>strong{font-size:11px;color:#173c6b}.lhv90-arena-rank-row>strong span{font-size:7px;color:#7d8ca0}.lhv90-arena-rank-row>i{font-style:normal;font-size:7.5px;font-weight:850;color:#98660d;background:#fff4d8;border-radius:999px;padding:4px 7px}.lhv88-clash{background:radial-gradient(circle at center,rgba(42,85,139,.32),rgba(4,10,20,.96))!important}.lhv88-countdown svg{width:76px;height:76px;fill:none;stroke:#d7e7fb;stroke-width:4;filter:drop-shadow(0 0 22px rgba(114,166,226,.55))}.lhv88-arena-result .trophy svg{width:54px;height:54px;fill:none;stroke:currentColor;stroke-width:1.6}.lhv90-arena-result-actions{display:flex;justify-content:center;gap:8px;margin-top:14px}.lhv90-arena-result-actions button{min-width:112px}

/* Main-site nav Arena icon inherits current blue */
.law-hub-arena-menu a,.lhv87-site-arena-icon{color:inherit}.lhv87-site-arena-icon svg{fill:none;stroke:currentColor;stroke-width:1.8}

/* Reduced motion */
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}.lhv90-auth-bg>i{animation:none!important}}
@media(max-width:720px){.lhv90-arena-rank-row{grid-template-columns:28px 34px minmax(0,1fr) auto}.lhv90-arena-rank-row>i{display:none}.lhv88-qtools{overflow-x:auto;max-width:100%}.lhv88-qtool{flex:0 0 auto}.lhv88-comment-replies{margin-left:0;padding-left:7px}}

.lhv88-comment-meta button svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;vertical-align:-2px}.lhv88-reply-form button svg,.lhv8-comment-form button[type=submit] svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
