/* Lawkari Resources Library — front end. Everything is scoped to .lkr / .lkr-page. */
.lkr{--lk-navy:#000A3A;--lk-navy-2:#0A1A5C;--lk-yellow:#F4C300;--lk-yellow-soft:#FFF6D1;--lk-ink:#141A33;--lk-muted:#4B5372;--lk-line:#E3E7F1;--lk-tint:#EEF2F9;--lk-r:18px;font-family:"Poppins",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--lk-ink);line-height:1.6;-webkit-font-smoothing:antialiased}
.lkr *,.lkr *::before,.lkr *::after{box-sizing:border-box}
.lkr a{text-decoration:none}
.lkr h1,.lkr h2,.lkr h3{font-family:inherit;letter-spacing:-.015em}
:where(.lkr) :where(h1,h2,h3,p){margin:0}
.lkr img{max-width:100%;height:auto;display:block}
.lkr button{font-family:inherit}
.lkr .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.lkr-wrap{width:100%;max-width:1180px;margin:0 auto;padding:0 24px}

/* Single page: let the page run full width inside Astra's container */
.lkr-page .site-content>.ast-container{max-width:none!important;padding:0!important;display:block!important}
.lkr-page #primary,.lkr-page .site-main{margin:0!important;padding:0!important;width:100%!important}

/* ---------- Buttons ---------- */
.lkr-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 22px;border-radius:999px;border:1.5px solid transparent;font-size:15px;font-weight:600;line-height:1.2;cursor:pointer;transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;white-space:nowrap}
.lkr-btn svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lkr-btn--lg{min-height:54px;padding:14px 28px;font-size:16px}
.lkr-btn--yellow{background:var(--lk-yellow);color:var(--lk-navy)!important;box-shadow:0 10px 24px -12px rgba(244,195,0,.8)}
.lkr-btn--yellow:hover{background:#FFD21F;transform:translateY(-1px)}
.lkr-btn--outline{background:transparent;color:#fff!important;border-color:rgba(255,255,255,.35)}
.lkr-btn--outline:hover{border-color:#fff;background:rgba(255,255,255,.06)}
.lkr-btn--navy{background:var(--lk-navy);color:#fff!important}
.lkr-btn--navy:hover{background:var(--lk-navy-2)}
.lkr-btn--ghost{background:#fff;color:var(--lk-navy)!important;border-color:var(--lk-line)}
.lkr-btn--ghost:hover{border-color:var(--lk-navy)}
.lkr-btn--disabled{background:rgba(255,255,255,.08);color:rgba(255,255,255,.7);border-color:rgba(255,255,255,.18);cursor:not-allowed}
.lkr-btn:focus-visible,.lkr-chip:focus-visible,.lkr a:focus-visible,.lkr select:focus-visible,.lkr-search__input:focus-visible{outline:3px solid var(--lk-yellow);outline-offset:2px}

/* ---------- Shared bits ---------- */
.lkr-eyebrow{display:inline-flex;align-items:center;gap:12px;font-size:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--lk-yellow)}
.lkr-eyebrow::before{content:"";width:34px;height:3px;border-radius:2px;background:var(--lk-yellow)}
.lkr-badge{display:inline-block;padding:5px 12px;border-radius:999px;background:var(--lk-yellow-soft);color:var(--lk-navy);font-size:12px;font-weight:600;letter-spacing:.02em;line-height:1.3}
.lkr-badge--light{background:rgba(244,195,0,.16);color:var(--lk-yellow)!important;border:1px solid rgba(244,195,0,.35)}
.lkr-h2{margin:0;font-size:clamp(22px,2.2vw,28px);font-weight:700;color:var(--lk-navy);line-height:1.2}
.lkr-textlink{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--lk-navy)!important;border-bottom:2px solid var(--lk-yellow);padding-bottom:2px}
.lkr-textlink:hover{color:#2A3A86!important}

/* ---------- Library hero ---------- */
.lkr-hero{position:relative;overflow:hidden;background:var(--lk-navy);color:#fff;padding:84px 0 76px;text-align:center}
.lkr-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(60% 80% at 85% 0%,rgba(244,195,0,.14),transparent 60%),radial-gradient(50% 70% at 0% 100%,rgba(62,92,255,.22),transparent 60%);pointer-events:none}
.lkr-hero .lkr-wrap{position:relative}
.lkr-hero__title{margin:16px 0 14px;font-size:clamp(36px,4.6vw,58px);font-weight:700;line-height:1.08;color:#fff}
.lkr-hero__sub{max-width:640px;margin:0 auto!important;font-size:clamp(16px,1.5vw,18px);color:rgba(255,255,255,.78)}
.lkr-search{position:relative;max-width:640px;margin:34px auto 0}
.lkr-search__icon{position:absolute;left:22px;top:50%;width:22px;height:22px;transform:translateY(-50%);fill:none;stroke:var(--lk-muted);stroke-width:2;stroke-linecap:round;pointer-events:none}
.lkr .lkr-search__input{width:100%;height:60px;margin:0;padding:0 24px 0 58px;border:0;border-radius:999px;background:#fff;color:var(--lk-ink);font:500 16px/1 "Poppins",system-ui,sans-serif;box-shadow:0 20px 40px -20px rgba(0,0,0,.5)}
.lkr .lkr-search__input::placeholder{color:#8A90A8}
.lkr-hero__stats{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;margin:26px 0 0;padding:0;list-style:none;font-size:14px;color:rgba(255,255,255,.72)}
.lkr-hero__stats strong{color:#fff;font-weight:700}

/* ---------- Library browse ---------- */
.lkr-browse{background:var(--lk-tint);padding:44px 0 88px}
.lkr-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.lkr-chips{display:flex;flex-wrap:wrap;gap:10px}
.lkr .lkr-chip{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:8px 16px;border-radius:999px;border:1px solid var(--lk-line);background:#fff;color:var(--lk-navy);font-size:14px;font-weight:600;line-height:1;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s}
.lkr .lkr-chip:hover{border-color:var(--lk-navy);background:#fff;color:var(--lk-navy)}
.lkr .lkr-chip.is-active{background:var(--lk-navy);border-color:var(--lk-navy);color:#fff}
.lkr-chip__n{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:var(--lk-tint);color:var(--lk-muted);font-size:12px;font-weight:600}
.lkr-chip.is-active .lkr-chip__n{background:var(--lk-yellow);color:var(--lk-navy)}
.lkr-selects{display:flex;flex-wrap:wrap;gap:10px}
.lkr-select{position:relative;display:block;margin:0}
.lkr-select::after{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:2px solid var(--lk-navy);border-bottom:2px solid var(--lk-navy);transform:rotate(45deg);pointer-events:none}
.lkr .lkr-select select{height:42px;min-width:170px;margin:0;padding:0 40px 0 16px;border:1px solid var(--lk-line);border-radius:999px;background:#fff;color:var(--lk-navy);font:600 14px/1 "Poppins",system-ui,sans-serif;-webkit-appearance:none;appearance:none;cursor:pointer}
.lkr-count{margin:26px 0 18px;font-size:14px;color:var(--lk-muted)}
.lkr-count__n{font-weight:700;color:var(--lk-navy)}

/* ---------- Cards ---------- */
.lkr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.lkr-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--lk-line);border-radius:var(--lk-r);overflow:hidden;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.lkr-card:hover{transform:translateY(-4px);box-shadow:0 24px 44px -28px rgba(0,10,58,.35);border-color:#D3D9EA}
.lkr-card[hidden]{display:none}
.lkr-card__media{position:relative;display:block;aspect-ratio:16/10;background:var(--lk-tint);overflow:hidden}
.lkr .lkr-card__media img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .5s ease}
.lkr-card:hover .lkr-card__media img{transform:scale(1.03)}
.lkr .lkr-card__media img.lkr-cover-img--pdf{object-position:center top;padding:18px 26px 0;background:var(--lk-tint)}
.lkr .lkr-covercard img.lkr-cover-img--pdf{object-position:center top}
.lkr-card__body{display:flex;flex:1 1 auto;flex-direction:column;align-items:flex-start;gap:10px;padding:20px 22px 22px}
.lkr-card__title{margin:0;font-size:18px;font-weight:700;line-height:1.35}
.lkr-card__title a{color:var(--lk-navy)!important}
.lkr-card__title a:hover{color:#2A3A86!important}
.lkr-card__text{margin:0;font-size:14.5px;line-height:1.6;color:var(--lk-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.lkr-card__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:auto;padding-top:14px;border-top:1px solid var(--lk-line)}
.lkr-card__meta{font-size:13px;font-weight:500;color:var(--lk-muted)}
.lkr-card__link{font-size:14px;font-weight:600;color:var(--lk-navy)!important;white-space:nowrap}
.lkr-card__link:hover{color:#2A3A86!important}

/* Placeholder cover (used when no cover image or PDF preview exists) */
.lkr-ph{display:grid;place-items:center;width:100%;height:100%;min-height:100%;position:absolute;inset:0;background:linear-gradient(135deg,var(--lk-navy) 0%,#0B1E66 100%);position:relative;overflow:hidden}
.lkr-ph::before{content:"";position:absolute;right:-30px;top:-30px;width:140px;height:140px;border-radius:50%;background:rgba(244,195,0,.18)}
.lkr-ph__doc{position:relative;width:64px;height:82px;border-radius:8px;background:#fff;box-shadow:0 14px 28px -12px rgba(0,0,0,.5)}
.lkr-ph__fold{position:absolute;right:0;top:0;width:20px;height:20px;background:linear-gradient(225deg,var(--lk-tint) 50%,#D6DCEC 50%);border-radius:0 8px 0 6px}
.lkr-ph__type{position:absolute;left:8px;bottom:12px;padding:3px 7px;border-radius:5px;background:var(--lk-yellow);color:var(--lk-navy);font-size:11px;font-weight:700;letter-spacing:.06em}
.lkr-ph--lg .lkr-ph__doc{width:104px;height:134px}
.lkr-ph--lg .lkr-ph__fold{width:30px;height:30px}
.lkr-ph--lg .lkr-ph__type{font-size:14px;left:12px;bottom:18px;padding:4px 10px}

/* Empty states / more */
.lkr-empty{max-width:520px;margin:28px auto 0;padding:44px 28px;text-align:center;background:#fff;border:1px dashed #CBD2E6;border-radius:var(--lk-r)}
.lkr-empty[hidden]{display:none}
.lkr-empty h2{margin:14px 0 8px;font-size:22px;font-weight:700;color:var(--lk-navy)}
.lkr-empty p{color:var(--lk-muted);margin-bottom:18px}
.lkr-empty--library p{margin-bottom:0}
.lkr-empty__icon{display:inline-block;width:56px;height:56px;border-radius:50%;background:var(--lk-yellow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000A3A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E") center/26px no-repeat}
.lkr-more{display:flex;justify-content:center;margin-top:36px}

/* ---------- Single: hero ---------- */
.lkr-shero{position:relative;overflow:hidden;background:var(--lk-navy);color:#fff;padding:40px 0 56px}
.lkr-shero::before{content:"";position:absolute;inset:0;background:radial-gradient(55% 90% at 100% 0%,rgba(244,195,0,.13),transparent 60%),radial-gradient(45% 80% at 0% 100%,rgba(62,92,255,.2),transparent 60%);pointer-events:none}
.lkr-shero .lkr-wrap{position:relative}
.lkr-crumbs ol{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 30px;padding:0;list-style:none;font-size:13.5px;color:rgba(255,255,255,.6)}
.lkr-crumbs li{display:inline-flex;align-items:center;gap:6px;min-width:0}
.lkr-crumbs li+li::before{content:"/";color:rgba(255,255,255,.35)}
.lkr-crumbs a{color:rgba(255,255,255,.75)!important}
.lkr-crumbs a:hover{color:var(--lk-yellow)!important}
.lkr-crumbs [aria-current] span{color:#fff;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:46ch}
.lkr-preview-note{display:table;margin:0 0 18px;padding:8px 14px;border-radius:10px;background:rgba(244,195,0,.16);color:var(--lk-yellow);font-size:14px;font-weight:500}
.lkr-shero__title{max-width:900px;margin:16px 0 0;font-size:clamp(32px,4vw,52px);font-weight:700;line-height:1.1;color:#fff}
.lkr-shero__sub{max-width:760px;margin:16px 0 0;font-size:clamp(16px,1.5vw,18.5px);color:rgba(255,255,255,.8)}
.lkr-shero__meta{display:flex;flex-wrap:wrap;gap:8px 22px;margin:22px 0 0;padding:0;list-style:none;font-size:14px;color:rgba(255,255,255,.72)}
.lkr-shero__meta li{display:inline-flex;align-items:center;gap:8px}
.lkr-dot{width:8px;height:8px;border-radius:50%;background:#fff}
.lkr-dot--y{background:var(--lk-yellow)}
.lkr-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:30px}
.lkr-alert{margin-top:18px;padding:12px 16px;border-radius:12px;background:#FFF6D1;color:var(--lk-navy);font-size:14.5px;font-weight:500;max-width:640px}

/* Share menu */
.lkr-sharewrap{position:relative}
.lkr-sharemenu{position:absolute;z-index:30;left:0;top:calc(100% + 10px);min-width:210px;padding:8px;border-radius:14px;background:#fff;box-shadow:0 24px 50px -18px rgba(0,10,58,.45);border:1px solid var(--lk-line)}
.lkr-sharemenu[hidden]{display:none}
.lkr-sharemenu a,.lkr .lkr-sharemenu button{display:block;width:100%;padding:10px 12px;border:0;border-radius:9px;background:none;color:var(--lk-navy)!important;font-size:14.5px;font-weight:500;text-align:left;cursor:pointer;line-height:1.3}
.lkr-sharemenu a:hover,.lkr .lkr-sharemenu button:hover{background:var(--lk-tint);color:var(--lk-navy)!important}

/* PDF viewer */
.lkr-viewer{background:#0B143F;padding:28px 0}
.lkr-viewer[hidden]{display:none}
.lkr-viewer__bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;color:#fff;font-size:14px}
.lkr-viewer__bar strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60%}
.lkr-viewer__bar span{display:inline-flex;gap:18px;align-items:center}
.lkr-viewer__bar a{color:var(--lk-yellow)!important;font-weight:600}
.lkr .lkr-viewer__close{padding:0;border:0;background:none;color:#fff;font-size:14px;font-weight:600;cursor:pointer}
.lkr-viewer__frame iframe{display:block;width:100%;height:min(82vh,960px);border:0;border-radius:14px;background:#fff}

/* ---------- Single: body ---------- */
.lkr-sbody{background:#fff;padding:64px 0}
.lkr-sbody__grid{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:56px;align-items:start}
.lkr-sbody__aside{position:sticky;top:110px}
.lkr-covercard{position:relative;aspect-ratio:3/4;border-radius:var(--lk-r);overflow:hidden;background:var(--lk-tint);border:1px solid var(--lk-line);box-shadow:0 30px 50px -36px rgba(0,10,58,.45)}
.lkr .lkr-covercard img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover}
.lkr-facts{margin:22px 0 0;padding:6px 20px;border:1px solid var(--lk-line);border-radius:var(--lk-r);background:#fff}
.lkr-facts>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--lk-line);font-size:14.5px}
.lkr-facts>div:last-child{border-bottom:0}
.lkr-facts dt{color:var(--lk-muted);font-weight:500}
.lkr-facts dd{margin:0;color:var(--lk-navy);font-weight:600;text-align:right}
.lkr-prose{margin-top:18px;font-size:16.5px;line-height:1.75;color:#2B3150}
.lkr-prose p{margin:0}
.lkr .lkr-prose>*+*{margin-top:1em}
.lkr-prose h2,.lkr-prose h3{color:var(--lk-navy);font-weight:700;line-height:1.3;margin-top:1.4em}
.lkr-prose h2{font-size:22px}.lkr-prose h3{font-size:19px}
.lkr-prose ul,.lkr-prose ol{padding-left:1.3em;margin-left:0}
.lkr-prose li+li{margin-top:.35em}
.lkr-prose a{color:#2A3A86;text-decoration:underline;text-decoration-color:var(--lk-yellow);text-underline-offset:3px}
.lkr-tags{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:30px;padding-top:24px;border-top:1px solid var(--lk-line)}
.lkr-tags__label{font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--lk-muted);margin-right:4px}
.lkr-tag{display:inline-block;padding:7px 14px;border-radius:999px;background:var(--lk-tint);color:var(--lk-navy)!important;font-size:13.5px;font-weight:500;transition:background-color .2s}
.lkr-tag:hover{background:var(--lk-yellow-soft)}
.lkr-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;margin-top:34px;padding:24px 26px;border-radius:var(--lk-r);background:var(--lk-yellow-soft);border:1px solid #F3E2A0}
.lkr-cta strong{display:block;color:var(--lk-navy);font-size:17px;font-weight:700}
.lkr-cta span{color:#4A4A2A;font-size:14.5px}

/* Related */
.lkr-related{background:var(--lk-tint);padding:64px 0}
.lkr-related__head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:12px;margin-bottom:26px}
.lkr-back{background:var(--lk-tint);padding:0 0 64px}
.lkr-related+.lkr-back{padding-top:0}
.lkr-sbody+.lkr-back{background:#fff}

/* Toast */
.lkr-toast{position:fixed;z-index:9999;left:50%;bottom:28px;transform:translateX(-50%);padding:12px 20px;border-radius:999px;background:var(--lk-navy);color:#fff;font-size:14.5px;font-weight:500;box-shadow:0 18px 40px -18px rgba(0,0,0,.6)}
.lkr-toast[hidden]{display:none}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
	.lkr-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
	.lkr-sbody__grid{grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:36px}
}
@media (max-width:767px){
	.lkr-wrap{padding:0 16px}
	.lkr-hero{padding:56px 0 52px}
	.lkr .lkr-search__input{height:54px;font-size:15px}
	.lkr-browse{padding:28px 0 64px}
	.lkr-toolbar{flex-direction:column;align-items:stretch}
	.lkr-chips{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px;padding:2px 16px 6px;scrollbar-width:none}
	.lkr-chips::-webkit-scrollbar{display:none}
	.lkr .lkr-chip{flex:none}
	.lkr-selects{display:grid;grid-template-columns:1fr 1fr}
	.lkr-selects .lkr-select:only-child{grid-column:1/-1}
	.lkr .lkr-select select{width:100%;min-width:0}
	.lkr-grid,.lkr-grid--3{grid-template-columns:1fr}
	.lkr-shero{padding:28px 0 40px}
	.lkr-crumbs [aria-current] span{max-width:22ch}
	.lkr-actions{display:grid;grid-template-columns:1fr 1fr}
	.lkr-actions>.lkr-btn--yellow,.lkr-actions>.lkr-btn--disabled,.lkr-actions>.lkr-sharewrap{grid-column:1/-1}
	.lkr-sharewrap .lkr-btn{width:100%}
	.lkr-sharemenu{left:auto;right:0}
	.lkr-btn{padding:12px 16px}
	.lkr-sbody{padding:40px 0}
	.lkr-sbody__grid{grid-template-columns:1fr;gap:28px}
	.lkr-sbody__aside{position:static}
	.lkr-covercard{max-width:280px;margin:0 auto}
	.lkr-related{padding:44px 0}
	.lkr-back{padding-bottom:44px}
	.lkr-cta .lkr-btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
	.lkr *{transition:none!important}
}
