/* Law United Judgment Desk — scalable discovery and reader tools. */
.judgment-library-tools{
  display:grid;
  grid-template-columns:minmax(280px,1fr) 180px 170px auto;
  gap:12px;
  align-items:end;
  margin:0 0 28px;
  padding:16px;
  border:1px solid #d8d8cf;
  border-radius:12px;
  background:#fffdf8;
  box-shadow:0 10px 28px rgba(18,48,39,.055)
}
.judgment-library-tools label{display:grid;gap:6px;color:#6c756f;font:800 11px/1.2 Inter,Arial,sans-serif}
.judgment-library-tools :is(input,select){min-width:0;height:46px;padding:0 13px;border:1px solid #cbd3ce;border-radius:8px;background:#fff;color:#18372e;font:600 13px/1.2 Inter,Arial,sans-serif}
.judgment-library-tools :is(input,select):focus-visible{outline:3px solid rgba(184,138,67,.28);outline-offset:1px;border-color:#0d3b31}
.judgment-library-search{position:relative;display:block!important}
.judgment-library-search svg{position:absolute;z-index:1;left:14px;bottom:13px;width:20px;height:20px;fill:none;stroke:#31594d;stroke-width:1.8}
.judgment-library-search input{width:100%;padding-left:44px}
.judgment-library-tools output{align-self:center;justify-self:end;padding:8px 10px;border-radius:999px;background:#edf2ee;color:#31594d;font:800 11px/1 Inter,Arial,sans-serif;white-space:nowrap}
.judgment-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.judgment-secondary-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important}
.judgment-secondary-grid>:only-child{grid-column:1/-1}

.judgment-news-card{position:relative;overflow:hidden}
.judgment-card-open{display:block;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer}
.judgment-card-open{flex:1}
.judgment-card-open:focus-visible{outline:3px solid #b88a43;outline-offset:5px;border-radius:5px}
.judgment-news-card .judgment-card-case{margin:-3px 0 13px;color:#7b6750;font:italic 13px/1.45 Georgia,serif}
.judgment-news-card .judgment-card-deck{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4;color:#53635c;font:14px/1.6 Georgia,serif}
.judgment-news-card footer{align-items:center;flex-wrap:wrap;border-top:1px solid #e4e1d8}
.judgment-news-card footer>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.judgment-news-card footer :is(.judgment-card-save,.judgment-card-read){min-height:40px;margin:0;padding:8px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:#174c3c;font:800 11px/1 Inter,Arial,sans-serif;cursor:pointer}
.judgment-news-card footer .judgment-card-read{white-space:nowrap}
.judgment-news-card footer .judgment-card-save{display:inline-flex;align-items:center;gap:6px}
.judgment-news-card footer .judgment-card-save svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.judgment-news-card footer .judgment-card-save{border-color:#cbd5cf}
.judgment-news-card footer .judgment-card-save.active{border-color:#174c3c;background:#e8f0eb}
.judgment-news-card footer .judgment-card-read:hover,.judgment-news-card footer .judgment-card-read:focus-visible{background:#edf2ee}
.judgment-news-card footer button:focus-visible{outline:3px solid rgba(184,138,67,.35);outline-offset:1px}
.judgment-featured .judgment-card-deck{-webkit-line-clamp:6;font-size:16px}
.judgment-library-empty{display:grid;justify-items:center;gap:10px;padding:65px 24px;border:1px dashed #c9cec8;border-radius:12px;background:#fffdf8;text-align:center}
.judgment-library-empty>span{width:54px;height:54px;display:grid;place-items:center;border-radius:50%;background:#edf2ee;color:#174c3c;font:28px Georgia,serif}
.judgment-library-empty h3{margin:0;color:#173c31;font:700 28px/1.2 Georgia,serif}
.judgment-library-empty p{max-width:520px;margin:0;color:#64726b;font:14px/1.55 Inter,Arial,sans-serif}
.judgment-library-empty button{min-height:44px;margin-top:6px;padding:0 17px;border:0;border-radius:7px;background:#0d3b31;color:#fff;font-weight:800;cursor:pointer}

.judgment-reader-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.judgment-mobile-toc{display:none;min-height:44px;padding:0 15px;border:1px solid #bfcac4;border-radius:7px;background:#fffdf8;color:#0d3b31;font-weight:800}
.judgment-toc-backdrop{display:none}
.judgment-reading-progress{position:fixed;z-index:95;top:80px;left:0;width:100%;height:3px;background:transparent;pointer-events:none}
.judgment-reading-progress span{display:block;width:100%;height:100%;transform:scaleX(0);transform-origin:left;background:linear-gradient(90deg,#0d3b31,#b88a43);transition:transform .08s linear}
.judgment-reader-actions{position:sticky;z-index:12;top:82px;display:flex;justify-content:flex-end;gap:7px;margin:0 0 14px;padding:8px;border:1px solid #d8d8d0;border-radius:10px;background:rgba(255,253,248,.94);backdrop-filter:blur(12px);box-shadow:0 9px 28px rgba(18,48,39,.07)}
.judgment-reader-actions button{min-height:40px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border:1px solid #cdd5d0;border-radius:7px;background:#fff;color:#21473b;font:800 11px/1 Inter,Arial,sans-serif;cursor:pointer}
.judgment-reader-actions button:hover,.judgment-reader-actions button:focus-visible{border-color:#b88a43;background:#f7f1e5}
.judgment-reader-actions button.active{border-color:#0d3b31;background:#e8f0eb}
.judgment-reader-actions button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.judgment-reader-actions button>span{font:800 11px/1 Inter,Arial,sans-serif}

.judgment-quick-brief{margin:0;padding:38px 58px 42px!important;border-bottom:1px solid #dddcd4;background:#eef3ef}
.judgment-quick-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}
.judgment-quick-heading small{color:#927040;font:900 10px/1.2 Inter,Arial,sans-serif;letter-spacing:1.25px}
.judgment-quick-heading h2{margin:5px 0 0!important;padding:0!important;border:0!important;color:#173c31!important;font:700 28px/1.2 Georgia,serif!important}
.judgment-quick-heading h2:before{display:none}
.judgment-category-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.judgment-category-badge{padding:6px 9px;border-radius:4px;background:#0d3b31;color:#fff;font:800 10px/1 Inter,Arial,sans-serif;text-transform:uppercase;letter-spacing:.5px}
.judgment-category-badge.secondary{border:1px solid #a98243;background:#f4ecdc;color:#735725}
.judgment-quick-brief>p{margin:0 0 22px!important;color:#304a41!important;font:700 18px/1.65 Georgia,serif!important;text-align:left!important}
.judgment-quick-brief dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0 0 20px;padding:1px;border-radius:9px;overflow:hidden;background:#d2d9d5}
.judgment-quick-brief dl>div{padding:15px 17px;background:#fffdf8}
.judgment-quick-brief dt{margin-bottom:6px;color:#8b6837;font:900 10px/1.2 Inter,Arial,sans-serif;text-transform:uppercase;letter-spacing:.75px}
.judgment-quick-brief dd{margin:0;color:#31483f;font:14px/1.55 Georgia,serif}
.judgment-quick-brief>a{display:inline-flex;align-items:center;min-height:40px;color:#0d3b31;font:800 12px/1.2 Inter,Arial,sans-serif;text-decoration:none}
.judgment-quick-brief>a:hover{text-decoration:underline}
.judgment-reader-full{scroll-margin-top:145px}
.judgment-reader-full>[hidden]{display:none!important}
.judgment-toc{scrollbar-gutter:stable;overscroll-behavior:contain}
.judgment-toc nav{min-width:0}
.judgment-toc a{grid-template-columns:2.25rem minmax(0,1fr)!important;align-items:start;gap:.7rem!important;min-width:0;padding:.72rem 0!important;font-size:.75rem!important;line-height:1.4!important}
.judgment-toc .judgment-toc-index{display:flex;align-items:center;justify-content:center;width:2.25rem;min-width:2.25rem;height:1.55rem;border:1px solid #d9c49b;border-radius:999px;background:#faf6ec;color:#8b6837!important;font:800 .7rem/1 Inter,Arial,sans-serif!important;font-variant-numeric:tabular-nums;letter-spacing:.03em;white-space:nowrap}
.judgment-toc .judgment-toc-label{min-width:0;color:inherit!important;font:800 .75rem/1.4 Inter,Arial,sans-serif!important;letter-spacing:.025em;overflow-wrap:anywhere;text-transform:uppercase;text-wrap:pretty}
.judgment-toc .judgment-toc-overview .judgment-toc-index{border-color:#174c3c;background:#174c3c;color:#fff!important}
.judgment-toc a:hover .judgment-toc-label,.judgment-toc a:focus-visible .judgment-toc-label{color:#174c3c!important}
.judgment-source-return{display:inline-flex;margin:8px 0 0 8px;padding:5px 8px;border:1px solid #c9d2cc;border-radius:5px;background:#fff;color:#0d3b31;font:800 10px/1 Inter,Arial,sans-serif;cursor:pointer}
.judgment-related{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:38px 42px 46px!important;border-top:1px solid #dddcd4;background:#f4f1e8}
.judgment-related>div{grid-column:1/-1}
.judgment-related>div small{color:#927040;font:900 9px/1.2 Inter,Arial,sans-serif;letter-spacing:1px}
.judgment-related>div h2{margin:5px 0 8px!important;padding:0!important;border:0!important;color:#173c31!important;font:700 27px/1.2 Georgia,serif!important}
.judgment-related>div h2:before{display:none}
.judgment-related>button{display:grid;gap:8px;min-width:0;padding:17px;border:1px solid #d4d7d1;border-radius:8px;background:#fffdf8;color:#173c31;text-align:left;cursor:pointer}
.judgment-related>button:hover,.judgment-related>button:focus-visible{border-color:#b88a43;box-shadow:0 8px 20px rgba(18,48,39,.08)}
.judgment-related>button>span{color:#927040;font:900 9px/1.2 Inter,Arial,sans-serif;text-transform:uppercase}
.judgment-related>button>strong{font:700 16px/1.3 Georgia,serif}
.judgment-related>button>small{color:#6b756f;font:italic 12px/1.4 Georgia,serif}

@media(max-width:1100px){
  .judgment-library-tools{grid-template-columns:minmax(250px,1fr) repeat(2,160px)}
  .judgment-library-tools output{grid-column:1/-1;justify-self:start}
  .judgment-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  .judgment-app-hero{min-height:auto!important;padding:28px 22px!important}
  .judgment-app-hero .judgment-desk-mark{margin-bottom:16px}
  .judgment-app-hero .judgment-hero-copy h1{font-size:38px!important;letter-spacing:-1px}
  .judgment-hero-proof{display:grid!important;gap:8px!important;margin-top:18px!important}
  .judgment-library-tools{grid-template-columns:1fr;padding:13px}
  .judgment-library-tools output{grid-column:auto}
  .judgment-results-grid{grid-template-columns:1fr}
  .judgment-news-card{padding:20px!important}
  .judgment-featured{min-height:0!important}
  .judgment-featured h2{font-size:28px!important}
  .judgment-news-card footer{align-items:flex-start;gap:10px}
  .judgment-news-card footer>b{display:none}
  .judgment-news-card footer>div{width:100%;justify-content:space-between}
  .judgment-mobile-toc{display:inline-flex;align-items:center}
  .judgment-reader-actions{top:63px;justify-content:flex-start;overflow-x:auto;scrollbar-width:none}
  .judgment-reader-actions button{flex:0 0 auto;min-height:44px}
  .judgment-reading-progress{top:64px}
  .judgment-quick-brief{padding:27px 22px 31px!important}
  .judgment-quick-heading{align-items:flex-start;flex-direction:column;gap:10px}
  .judgment-quick-brief dl{grid-template-columns:1fr}
  .judgment-reader-full p,.judgment-reader-full li{text-align:left!important;hyphens:none!important}
  .judgment-related{grid-template-columns:1fr;padding:29px 22px 36px!important}
  body.judgment-toc-open{overflow:hidden!important}
  .judgment-toc-backdrop{position:fixed;inset:64px 0 0;z-index:91;display:block;border:0;background:rgba(8,30,23,.48);cursor:pointer}
  .judgment-toc-backdrop[hidden]{display:none!important}
  .judgment-reader-layout>.judgment-reader-rail{position:fixed;z-index:92;top:64px;right:0;bottom:0;width:min(88vw,380px);display:grid!important;align-content:start;gap:16px;padding:22px;overflow-y:auto;background:#f8f6ef;box-shadow:-20px 0 50px rgba(8,30,23,.24);visibility:hidden;pointer-events:none;transform:translateX(105%);transition:transform .2s ease,visibility .2s}
  .judgment-reader-layout>.judgment-reader-rail.is-open{visibility:visible;pointer-events:auto;transform:none}
  .judgment-reader-layout>.judgment-reader-rail :is(a,button):focus-visible{outline:3px solid #b88a43;outline-offset:2px}
}
@media(max-width:420px){
  .judgment-card-meta{align-items:flex-start;flex-direction:column}
  .judgment-library-search input{font-size:16px}
  .judgment-reader-actions button{padding-inline:10px}
  .judgment-quick-heading h2{font-size:25px!important}
  .judgment-quick-brief>p{font-size:17px!important}
}
@media(prefers-reduced-motion:reduce){.judgment-reading-progress span,.judgment-reader-layout>.judgment-reader-rail{transition:none}}
@media print{
  .topbar,.sidebar,.mobile-nav,.judgment-reader-navigation,.judgment-reader-actions,.judgment-reader-rail,.judgment-related,.judgment-reading-progress{display:none!important}
  .judgments-view .app-shell{display:block!important;padding:0!important}
  .judgments-view .judgment-app-page,.judgment-app-content{padding:0!important;border:0!important;box-shadow:none!important}
  .judgment-reader-layout{display:block!important}.judgment-reader{box-shadow:none!important}.judgment-reader-full p,.judgment-reader-full li{text-align:left!important}
}
/* Canonical imports already separate table headers from data rows. Keep the
   first factual row visible; hiding it silently drops real case metadata. */
.judgment-reader section .judgment-facts-table > div:first-child {
  display: grid;
}

.judgment-card-meta > span {
  display: inline-flex;
  margin-top: 0;
}

.judgment-card-title {
  all: unset;
  display: block;
  color: inherit;
  cursor: pointer;
}

.judgment-card-title:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid #b88a43;
  outline-offset: 0.25rem;
}

.judgment-reader section .judgment-table-wrap tbody th[scope="row"] {
  width: 38%;
  padding: 15px 16px;
  border-top: 1px solid #e0dfd8;
  background: #fff;
  color: #1f3a5f;
  font: 700 14px/1.58 Georgia, serif;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  vertical-align: top;
}

.judgment-reader section .judgment-table-wrap tr:nth-child(even) > th[scope="row"] {
  background: #f8f6ef;
}
