/*
Theme Name: Law Library
Theme URI: https://lawlibrary.online/
Author: Law Library Online
Description: A clean, fast theme for lawlibrary.online — Bare Acts, Rules and judgments. Matches the Law Library Bare Acts and Judgments plugins, searches Acts, sections and judgments together, and works with Elementor (Canvas, Full Width and Pro theme-builder locations) and Yoast SEO.
Version: 1.0.5
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: law-library
Tags: one-column, custom-logo, custom-menu, accessibility-ready
*/

:root{
  --llt-bg:#ffffff;--llt-bg2:#f6f8fb;--llt-ink:#17203a;--llt-muted:#5a6580;--llt-line:#dde2ec;
  --llt-accent:#2453d1;--llt-accent-dark:#1b3fa6;--llt-soft:#e9eefc;
  --llt-ui:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --llt-serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  --llt-wrap:1180px;--llt-narrow:880px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--llt-bg);color:var(--llt-ink);font-family:var(--llt-ui);font-size:16px;line-height:1.6;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
img,video,iframe{max-width:100%;height:auto}
a{color:var(--llt-accent);text-underline-offset:2px}
a:hover{color:var(--llt-accent-dark)}
b,strong{font-weight:700}
h1,h2,h3,h4,h5,h6{font-family:var(--llt-ui);color:var(--llt-ink);line-height:1.25;margin:1.4em 0 .5em}
:focus-visible{outline:3px solid rgba(36,83,209,.45);outline-offset:2px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.llt-skip{position:absolute;left:-9999px;top:8px;z-index:1000;background:#fff;padding:8px 12px;border:1px solid var(--llt-line)}
.llt-skip:focus{left:8px}
.llt-wrap{width:100%;max-width:var(--llt-wrap);margin:0 auto;padding:0 20px}
.llt-narrow{max-width:var(--llt-narrow)}
.llt-wide{max-width:var(--llt-wrap)}
.llt-muted{color:var(--llt-muted)}

/* Header */
.llt-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:saturate(1.4) blur(6px);border-bottom:1px solid var(--llt-line)}
.admin-bar .llt-header{top:32px}
@media (max-width:782px){.admin-bar .llt-header{top:46px}}
.llt-header-row{display:flex;align-items:center;gap:20px;min-height:62px}
.llt-brand{display:inline-flex;align-items:baseline;gap:8px;text-decoration:none;color:var(--llt-ink);white-space:nowrap}
.llt-brand:hover{color:var(--llt-ink)}
.llt-wm{font-family:var(--llt-ui);font-size:20px;font-weight:700;letter-spacing:.07em}
.llt-wm2{font-family:var(--llt-serif);font-size:20px;color:var(--llt-accent)}
.custom-logo-link img{max-height:44px;width:auto;display:block}
.llt-nav{display:flex;align-items:center;gap:18px;margin-left:auto}
.llt-menu{display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding:0}
.llt-menu li{position:relative}
.llt-menu a{display:block;padding:8px 10px;border-radius:8px;color:var(--llt-ink);text-decoration:none;font-weight:500;font-size:15px}
.llt-menu a:hover,.llt-menu .current-menu-item>a,.llt-menu .current_page_item>a{background:var(--llt-soft);color:var(--llt-accent-dark)}
.llt-menu .sub-menu{position:absolute;left:0;top:100%;min-width:220px;list-style:none;margin:0;padding:6px;background:#fff;border:1px solid var(--llt-line);border-radius:10px;box-shadow:0 10px 30px rgba(23,32,58,.12);display:none;max-height:70vh;overflow:auto}
.llt-menu li:hover>.sub-menu,.llt-menu li:focus-within>.sub-menu{display:block}
.llt-search{display:flex;align-items:center;border:1px solid var(--llt-line);border-radius:999px;background:var(--llt-bg2);padding:2px 4px 2px 12px}
.llt-search input{border:0;background:transparent;font:inherit;font-size:14px;width:230px;padding:6px 0;color:var(--llt-ink);outline:none}
.llt-search button{border:0;background:transparent;color:var(--llt-muted);padding:6px 8px;cursor:pointer;display:flex}
.llt-search:focus-within{border-color:var(--llt-accent);background:#fff}
.llt-icon-btn{display:none;margin-left:auto;background:none;border:1px solid var(--llt-line);border-radius:8px;padding:9px 8px;cursor:pointer}
.llt-menu-toggle span{display:block;width:20px;height:2px;background:var(--llt-ink);margin:4px 0;border-radius:2px}
@media (max-width:960px){
  .llt-icon-btn{display:block}
  .llt-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--llt-line);padding:12px 20px 18px;flex-direction:column;align-items:stretch;gap:12px;box-shadow:0 12px 24px rgba(23,32,58,.08)}
  .llt-nav.is-open{display:flex}
  .llt-menu{flex-direction:column;align-items:stretch}
  .llt-menu .sub-menu{position:static;display:block;box-shadow:none;border:0;padding-left:12px;max-height:none}
  .llt-search input{width:100%}
}

/* Main */
.llt-main{min-height:60vh;padding:24px 0 48px}
.llt-crumbs{font-size:13px;color:var(--llt-muted);margin:0 0 8px}
.llt-crumbs a{color:var(--llt-muted)}
.llt-page-head{margin:8px 0 22px}
.llt-page-title{font-size:clamp(26px,3.4vw,36px);margin:0 0 8px;font-weight:700;letter-spacing:-.01em}
.llt-meta{color:var(--llt-muted);font-size:14px;margin:0}
.llt-meta a{color:inherit}
.llt-hero-img{margin:0 0 22px}
.llt-hero-img img{border-radius:12px;display:block}

/* Reading text */
.llt-content{font-family:var(--llt-serif);font-size:18px;line-height:1.75}
.llt-content>*:first-child{margin-top:0}
.llt-content p{margin:0 0 1.1em}
.llt-content h2,.llt-content h3,.llt-content h4{font-family:var(--llt-ui)}
.llt-content blockquote{margin:1.2em 0;padding:.2em 0 .2em 1.1em;border-left:3px solid var(--llt-line);color:#2b3550}
.llt-content table{border-collapse:collapse;width:auto;max-width:100%;font-family:var(--llt-ui);font-size:15px}
.llt-content th,.llt-content td{border:1px solid var(--llt-line);padding:6px 10px;text-align:left;vertical-align:top}
.llt-content th{background:var(--llt-bg2)}
.llt-content ul,.llt-content ol{padding-left:1.4em}
.llt-content img{border-radius:8px}
.llt-content .alignwide{max-width:min(1100px,96vw);margin-left:50%;transform:translateX(-50%)}
.llt-content .alignfull{width:100vw;max-width:100vw;margin-left:50%;transform:translateX(-50%)}
.llt-tags a{display:inline-block;font-size:13px;margin:0 6px 6px 0;padding:2px 10px;border:1px solid var(--llt-line);border-radius:999px;text-decoration:none;background:var(--llt-bg2)}
.llt-post-nav{margin:32px 0;padding-top:16px;border-top:1px solid var(--llt-line)}
.llt-post-nav .nav-links{display:flex;justify-content:space-between;gap:16px;font-weight:500}

/* Pages that hold the Bare Acts reader or a library directory: let the plugin layout use the width */
.llt-wide .llt-content{font-family:var(--llt-ui);font-size:16px;line-height:1.5}

/* Cards, lists, buttons */
.llt-cards{display:flex;flex-direction:column;gap:12px}
.llt-card{border:1px solid var(--llt-line);border-radius:12px;padding:14px 18px;background:#fff}
.llt-card:hover{border-color:#c4cde0}
.llt-card-kind{margin:0 0 2px;font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--llt-accent)}
.llt-card-title{font-size:18px;margin:0 0 4px;line-height:1.35}
.llt-card-title a{color:var(--llt-ink);text-decoration:none}
.llt-card-title a:hover{color:var(--llt-accent)}
.llt-card .llt-muted{margin:0;font-size:14px}
.llt-card-excerpt{margin:.4em 0 0;font-size:15px;color:#33405e}
.llt-results{margin:0 0 28px}
.llt-results h2{font-size:15px;text-transform:uppercase;letter-spacing:.08em;color:var(--llt-muted);margin:0 0 10px;border-bottom:1px solid var(--llt-line);padding-bottom:6px}
.llt-list{list-style:none;margin:0;padding:0}
.llt-list li{padding:8px 0;border-bottom:1px dashed var(--llt-line)}
.llt-list a{font-weight:500;text-decoration:none}
.llt-btn{display:inline-block;font:inherit;font-size:15px;font-weight:500;border:1px solid var(--llt-line);background:#fff;color:var(--llt-ink);border-radius:8px;padding:8px 14px;text-decoration:none;cursor:pointer}
.llt-btn:hover{border-color:var(--llt-accent);color:var(--llt-accent)}
.llt-primary{background:var(--llt-accent);border-color:var(--llt-accent);color:#fff}
.llt-primary:hover{background:var(--llt-accent-dark);color:#fff}
.llt-searchform{display:flex;gap:8px;margin:12px 0 4px}
.llt-searchform input{flex:1;min-width:0;font:inherit;border:1px solid var(--llt-line);border-radius:8px;padding:9px 12px}
.llt-searchform input:focus{border-color:var(--llt-accent);outline:none}
.pagination,.nav-links{margin:24px 0}
.pagination .nav-links{display:flex;gap:6px;flex-wrap:wrap}
.page-numbers{border:1px solid var(--llt-line);border-radius:6px;padding:4px 10px;text-decoration:none}
.page-numbers.current{background:var(--llt-accent);color:#fff;border-color:var(--llt-accent)}
.llt-actions{display:flex;gap:8px;flex-wrap:wrap}

/* Comments */
.llt-comments{margin:40px 0;border-top:1px solid var(--llt-line);padding-top:12px}
.llt-comments input[type=text],.llt-comments input[type=email],.llt-comments input[type=url],.llt-comments textarea{width:100%;font:inherit;border:1px solid var(--llt-line);border-radius:8px;padding:8px 10px}
.llt-comments .submit{background:var(--llt-accent);color:#fff;border:0;border-radius:8px;padding:9px 16px;font:inherit;cursor:pointer}

/* Footer */
.llt-footer{border-top:1px solid var(--llt-line);background:var(--llt-bg2);margin-top:24px}
.llt-footer-grid{display:grid;grid-template-columns:2fr 1fr;gap:28px;padding-top:28px;padding-bottom:18px}
.llt-footer-about p{color:var(--llt-muted);font-size:14px;max-width:520px}
.llt-footer-menu{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:flex-end}
.llt-footer-menu a{color:var(--llt-ink);text-decoration:none;font-size:14px;font-weight:500}
.llt-footer-base{border-top:1px solid var(--llt-line);padding-top:12px;padding-bottom:22px}
.llt-footer-base p{margin:0;font-size:12.5px;color:var(--llt-muted)}
.llt-widget-title{font-size:14px;margin:12px 0 4px}
@media (max-width:720px){.llt-footer-grid{grid-template-columns:1fr}.llt-footer-menu{justify-content:flex-start}}

/* Law Library plugins inside the theme: the theme header replaces the plugins' own brand bars */
body.llt:not(.elementor-template-canvas) .llo-act .llo-brand,
body.llt:not(.elementor-template-canvas) .llj-brand{display:none}
body.llt:not(.elementor-template-canvas) .llo-act{border-radius:12px}
.llt-judgment .llt-page-head{margin-bottom:12px}
.llt-judgment .llt-content{font-family:var(--llt-ui);font-size:16px;line-height:1.55}
.llt-judgment .llj{max-width:none}

/* Print */
@media print{.llt-header,.llt-footer,.llt-crumbs,.llt-post-nav,.llt-comments{display:none}.llt-main{padding:0}}
.llt .llj-tags{margin-top:16px}

/* 1.0.2 — header menu stays on one line at mid widths */
.llt-menu a{white-space:nowrap}
@media (max-width:1180px) and (min-width:961px){.llt-header-row{gap:14px}.llt-nav{gap:10px}.llt-menu a{padding:8px 7px;font-size:14.5px}.llt-search input{width:150px}.llt-wm,.llt-wm2{font-size:18px}}

/* 1.0.2 — "Law Library Online" bookcase (Custom HTML block #ll-lib), restyled to the theme */
body.llt #ll-lib{--ink:#17203a;--muted:#5a6580;--rule:#dde2ec;--paper:#ffffff;--card:#ffffff;--accent:#2453d1;--accent2:#1b3fa6;
  font-family:var(--llt-ui);background:transparent;padding:0;max-width:none;width:100%;border-radius:0}
body.llt #ll-lib .ll-head{background:#fff;color:var(--ink);border:1px solid var(--rule);border-radius:12px;padding:20px 22px;margin-bottom:14px;align-items:flex-end}
body.llt #ll-lib .ll-brand{font-family:var(--llt-serif);font-size:30px;font-weight:700;letter-spacing:0;color:var(--ink)}
body.llt #ll-lib .ll-brand span{color:var(--accent)}
body.llt #ll-lib .ll-tag{color:var(--accent);font-size:15px;margin-top:2px}
body.llt #ll-lib .ll-stat{color:var(--muted);opacity:1;font-size:12px;font-weight:600}
body.llt #ll-lib .ll-nav{gap:8px}
body.llt #ll-lib .ll-nav button,body.llt #ll-lib .ll-libs button{border:1px solid var(--rule);border-radius:10px;font-family:var(--llt-ui)}
body.llt #ll-lib .ll-nav button:hover,body.llt #ll-lib .ll-libs button:hover{border-color:#b9c6e6}
body.llt #ll-lib .ll-nav button.on{background:var(--accent);border-color:var(--accent);color:#fff}
body.llt #ll-lib .ll-nav button.on small{color:#dbe4fb}
body.llt #ll-lib .ll-libs{background:var(--llt-bg2);border:1px solid var(--rule)}
body.llt #ll-lib .ll-libs button.on{background:var(--accent);border-color:var(--accent)}
body.llt #ll-lib .ll-libs button.on small{color:#dbe4fb}
body.llt #ll-lib .ll-search input,body.llt #ll-lib .ll-search select{border:1px solid var(--rule);border-radius:8px}
body.llt #ll-lib .ll-search input:focus{border-color:var(--accent)}
body.llt #ll-lib .ll-btn{border-radius:8px;font-weight:600}
body.llt #ll-lib .ll-btn.ghost{border:1px solid var(--rule)}
body.llt #ll-lib .ll-ghead{border-bottom:1px solid var(--rule)}
body.llt #ll-lib .ll-ghead h3{font-family:var(--llt-ui)}
body.llt #ll-lib .ll-ghead h3 span{background:var(--llt-soft);color:var(--accent-dark,#1b3fa6)}
body.llt #ll-lib .ll-shelf h3{color:var(--muted)}
body.llt #ll-lib .ll-books{background:linear-gradient(#f3efe6,#e9e1cf)}
body.llt #ll-lib .ll-card{border-radius:12px;border-color:var(--rule)}
body.llt #ll-lib .ll-card:hover{border-color:#c4cde0}
body.llt #ll-lib .ll-title{color:var(--ink)}
body.llt #ll-lib .ll-sub{color:#33405e}
body.llt #ll-lib .ll-links a,body.llt #ll-lib .ll-links button.sh{border:1px solid var(--rule)}
body.llt #ll-lib .ll-links a.pdf,body.llt #ll-lib .ll-links button.pdf{border:1px solid var(--accent)}
body.llt #ll-lib .ll-links button.pdf.locked{background:var(--llt-bg2);color:var(--muted);border-color:var(--rule)}
body.llt #ll-lib .ll-locked{background:rgba(255,255,255,.82)}
body.llt #ll-lib .ll-lockic{background:var(--accent);color:#fff}
body.llt #ll-lib .ll-fake i{background:#dde2ec}
body.llt #ll-lib .ll-viewer{background:var(--llt-bg2)}
body.llt #ll-lib .ll-msg{border-color:var(--rule)}
body.llt #ll-lib .ll-ocard.soon{background:var(--llt-bg2)!important;border-color:var(--rule)}
body.llt.llt-bookcase .llt-wide .llt-content{font-size:16px}
@media (max-width:600px){body.llt #ll-lib .ll-head{padding:16px}body.llt #ll-lib .ll-brand{font-size:24px}}

/* 1.0.3 — judgment cards in search results */
.llt-cards .llj{max-width:none;margin:0}
.llt-cards .llj .llj-card{margin:0}
