/* ============================================================
   JL THEME — the locked ghost theme (owner, 2026-10-26).
   One master pattern; this sheet is linked LAST on themed pages
   so it wins the cascade over jl.css / inline page styles.
   Values are the lab-proven ones from chip-variants-20261026
   (render_share_on_gray.py, render_theme_pages.py,
   render_theme_wave1.py, render_reviews_boxed.py,
   render_videos_uniform2.py, render_example_a3s.py).
   ============================================================ */

/* ===== Ghost masthead (E15 treatment) ===== */
#topbar{
  background:#f6f6f6 url("/assets/header-ghost.jpg") center/cover no-repeat !important;
  min-height:0 !important;
  padding:1.05rem .6rem 1.15rem !important;
  justify-content:center !important}
#topbar::before{display:none !important}
#topbar .brand{flex-direction:column !important;align-items:center !important;
  gap:.3rem !important;width:100% !important;text-align:center !important}
#topbar img.logo{width:92px !important;height:92px !important}
#topbar .brand-text strong{font-size:2.55rem !important;line-height:1.05 !important;
  white-space:nowrap !important}
#topbar .brand-flourish{width:185px !important;height:18px !important}
#topbar .brand-text small{margin-top:.2rem !important}
.topbar-right{display:flex !important}
/* Log In pill (owner spec 2026-10-27: top right of the header, red, not huge — just enough to notice;
   label flips to Log Out when signed in, per the painter in jl-core/jl-app). */
#hdrAuth{display:inline-flex !important;align-items:center;justify-content:center;background:#B04A55 !important;color:#ffffff !important;border:1px solid #8f3a43 !important;border-radius:999px !important;padding:.42rem .95rem !important;min-height:38px !important;font-size:.85rem !important;font-weight:700 !important;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.28)}
#hdrAuth.hidden{display:none !important}
/* Nav where-you-are light (owner, 2026-10-27): the word for the page you are on
   turns the site red in the top navigation, same signal as the bottom bar. */
#topnav button.on, #topnav a.on{color:#B04A55 !important}
#topbar .logo{filter:grayscale(1) !important;
  box-shadow:0 0 0 2px #111111, 0 2px 10px rgba(0,0,0,.25) !important}
#topbar .brand-text strong{color:#96555C !important;text-shadow:none !important}
#topbar .brand-flourish g{stroke:#111111 !important}
#topbar .brand-flourish rect{fill:#8A4A50 !important}
#topbar .brand-text small{color:#111111 !important;text-shadow:none !important;white-space:pre-line !important}

/* ===== Ground, footer band, fixed bars ===== */
body{background:#C8C8C8 !important}
footer{background:#111111 !important;color:#EEEEEE !important;
  padding:.3rem .9rem .35rem !important;margin-top:.5rem !important}
#legalbar{display:flex !important;background:#111111 !important;
  border-top:none !important;height:30px !important}
#legalbar .chip-toggle{background:#953646 !important;
  border-color:#953646 !important;color:#FFFFFF !important}
#bottomnav{background:#111111 !important;border-top:none !important;
  box-shadow:0 -2px 10px rgba(0,0,0,.3) !important;bottom:30px !important;
  padding-top:.22rem !important;
  padding-bottom:calc(.22rem + env(safe-area-inset-bottom)) !important}
#bottomnav button{color:#A3A3A3 !important}
#bottomnav button.on{color:#953646 !important}
#bottomnav .nav-panic span{background:#953646 !important;color:#FFFFFF !important}
#bottomnav .nav-panic.on small{color:#FFFFFF !important}
/* Static pages carry no app .on state: Home wears the maroon, as in the
   approved articles dress (wave-1 TEXTBAR palette). */
body.jl-static #bottomnav > button[data-go="home"]{color:#953646 !important}
body.jl-static{padding-bottom:100px}

/* ===== Look H nav: two plain rows, red Log In ===== */
#topnav{flex-wrap:wrap !important;justify-content:space-between !important;
  background:#111111 !important;
  border-top:2px solid #111111;border-bottom:2px solid #111111}
/* Nav size/color lock (owner ruling 2026-10-29, "make the nav bigger
   everywhere"): the app nav now matches the baked .navrow family --
   1.02rem words in #f2f2f2. Top bar only; #bottomnav untouched. The
   where-you-are light (.on, #B04A55) and :hover keep their own rules
   below/above and still win for their states. */
#topnav > button, #topnav > a{font-size:1.02rem !important;color:#f2f2f2 !important}
#topnav > button{font-family:'Noto Serif', Georgia, serif !important;font-weight:600 !important}
#topnav .newrow-moved{
  flex:0 0 100%;display:flex;align-items:center;justify-content:space-between;
  margin:0;padding:.45rem 0 .55rem;padding-left:16.5%;
  background:transparent;text-align:left}
#topnav .newrow-moved .chip-toggle{
  background:transparent;border:none;border-radius:0;flex:0 1 auto;
  color:#FFFFFF;font-size:.78rem;font-weight:600;
  font-family:'Noto Serif', Georgia, serif;padding:.5rem .2rem;line-height:1.2;
  text-decoration:none;display:inline-block;cursor:pointer}
/* (removed 2026-10-27: this rule painted the nav Log In red when it was the last button;
   with Log In moved to the header pill it landed on Firms — the pill carries its own red now.) */

/* ===== Home: V5 chips + font #2 in the big buttons (A3) ===== */
body:has(#view-home.active) #view-home .quick-chips .chip{
  background:#000000 !important;color:#FFFFFF !important;
  border-color:#000000 !important}
body:has(#view-home.active) #view-home .quick-chips .chip,
body:has(#view-home.active) #searchBtn,
body:has(#view-home.active) #panicBtn{
  font-family:'Noto Serif', Georgia, serif !important;font-weight:600 !important}

/* ===== Home cards FINAL: black border, black symbols, maroon titles ===== */
body:has(#view-home.active) #view-home .home-grid{align-items:stretch}
body:has(#view-home.active) #view-home .home-card{
  display:flex;flex-direction:column;align-items:flex-start;height:100%;
  border:2px solid #111111 !important}
body:has(#view-home.active) #view-home .home-card .hc-ico{
  display:flex;align-items:center;height:30px;color:#111111;
  font-size:1.4rem;line-height:1;margin:0 0 .1rem;filter:none !important}
body:has(#view-home.active) #view-home .home-card .hc-ico svg{
  width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;vertical-align:0}
body:has(#view-home.active) #view-home .home-card .hc-ico svg .filldot{
  fill:currentColor;stroke:none}
body:has(#view-home.active) #view-home .home-card strong{
  color:#953646;font-size:.95rem;line-height:1.15;
  white-space:nowrap;margin:.15rem 0 .2rem}
body:has(#view-home.active) #view-home .home-card small{
  display:block;line-height:1.32}

/* ===== Headings: font #4 (small-caps plaque) drawn in ===== */
#view-home .hero h1{
  font-family:'Noto Serif', Georgia, serif !important;font-weight:600 !important;
  font-variant:small-caps !important;letter-spacing:.04em !important}
.view.active > h2{
  font-family:'Noto Serif', Georgia, serif !important;font-weight:600 !important;
  font-variant:small-caps !important;letter-spacing:.04em !important;
  color:#111111 !important}
.view.active .card{background:#FFFFFF !important;
  border:2px solid #111111 !important}

/* Firm head: card is white now — its legacy backdrop text colors must not follow */
.view.active .firm-head[data-bd]{color:var(--ink) !important}
.view.active .firm-head[data-bd] h2{color:#111111 !important}
.view.active .firm-head[data-bd] .muted{color:#2c3e50 !important}

/* Firm page description box: renderFirmPage clears the blurb's padding and
   shadow inline when its text comes from about/desc, but this theme re-boxes
   it as a white card (border/background above) — which left the words jammed
   against the border with no breathing room. Restore the header card's own
   dress (its measured padding 1rem, its shadow var) so the box is shown right
   and lines up with the card above it. (The header's extra right padding is
   its Save-button seat — #firmHead{padding-right:8rem} — not copied.) */
.view.active #firmPageBlurb{padding:1rem !important;
  box-shadow:var(--shadow) !important}

/* ===== Share seat: black circles on the gray, under the last block ===== */
.foot-share-wrap{margin:.6rem 0 .05rem !important;width:100% !important}
.foot-share-wrap .share-label{color:#111111 !important}
.foot-share-wrap .sh-circ{background:#1B1B1B !important;
  color:#FFFFFF !important}
.list-wrap .foot-share-wrap{margin:.9rem 0 .1rem !important}

/* ===== Listing + static content surfaces ===== */
.list-wrap .card{background:#FFFFFF !important;
  border:2px solid #111111 !important}
body.jl-static main .card{background:#FFFFFF !important;
  border:2px solid #111111 !important}
.page-hero{background:transparent !important}
.page-hero h1, body.jl-static main .card h1{
  font-family:'Noto Serif', Georgia, serif !important;font-weight:600 !important;
  font-variant:small-caps !important;letter-spacing:.04em !important;
  color:#111111 !important}
.art-h, .vid-h{
  font-family:'Noto Serif', Georgia, serif !important;font-weight:600 !important;
  font-variant:small-caps !important;letter-spacing:.03em !important}
.art-h a{color:#953646 !important}
.vid-h a{color:#953646 !important}
#catFilters .chip-toggle{background:#FFFFFF !important;color:#111111 !important;
  border:1px solid #111111 !important}
#catFilters .chip-toggle.on{background:#111111 !important;color:#FFFFFF !important;
  border-color:#111111 !important}
.lang-toggle button.on, .lang-toggle a.on{background:#953646 !important;
  color:#FFFFFF !important}
#arrGrid .card h3, #arrGrid .card h2{
  font-family:'Noto Serif', Georgia, serif !important;font-weight:600 !important;
  font-variant:small-caps !important}

/* Articles A: stacked list (production arrangement) */
#artList{display:block !important}

/* Videos A (grid) + UNIFORM cards + emblem seat
   (owner refinements 2026-10-26 20:36 / 20:38 / 20:40 / 20:41;
   lab of record: render_videos_uniform2.py) */
#vidGrid{display:grid !important;grid-template-columns:1fr 1fr !important;
  gap:.8rem !important;align-items:stretch !important}
#vidGrid > .video-card{height:100% !important;box-sizing:border-box !important;
  position:relative !important;cursor:pointer}
#vidGrid .vid-h{overflow:hidden !important;padding-right:42px !important}
#vidGrid .vid-desc{overflow:hidden !important}
#vidGrid .jlsave-star{position:absolute !important;top:14px !important;
  right:16px !important;margin:0 !important}
/* PIN: uniform block heights, measured on the built page at 430px
   (lab method — tallest natural block wins). Values filled by the
   ship build's measurement pass. */
#vidGrid .vid-h{height:/*VIDH*/63px !important}
#vidGrid .vid-desc{height:/*VIDD*/167px !important}
#vidGrid .vid-tag{height:/*VIDT*/41px !important}
#vidGrid .vid-el{height:100px !important}

/* Videos A — OPTION A (owner pick 2026-11-05, ❤️ on the mockup in
   videos-card-mockups-20261105/): at computer widths the card boxes hug
   their content instead of standing at the fixed PIN heights above, so
   no dead pocket pools under the words. The picture strip is unchanged
   (the 100px cap above still rules). Neighboring cards may end at
   slightly different heights — approved in the mockup. PHONE FENCE:
   this block lives behind a min-width rule; below 700px nothing in it
   applies and the phone rendering is exactly as before. */
@media (min-width:700px){
#vidGrid{align-items:start}
#vidGrid .vid-h{height:auto !important}
#vidGrid .vid-desc{height:auto !important}
#vidGrid .vid-tag{height:auto !important}
}

/* ===== Reviews: boxed cards + settled combo colors ===== */
#reviewsFeed .rev-card .who{color:#1E6B38 !important}
#reviewsFeed .rev-card{background:#FFFFFF !important;
  border:2px solid #111111 !important;border-radius:14px !important;
  padding:16px !important;margin:0 0 14px !important}

/* ===== Disclaimer modal (existing address, dressed) ===== */
.modal h2.jl-disc-h{
  font-family:'Noto Serif', Georgia, serif !important;font-weight:600 !important;
  font-variant:small-caps !important;letter-spacing:.04em !important;
  color:#111111 !important}

/* ===== Admin door (owner seat 2026-10-26): red word on the language
   line's right corner; geometry (top/height) is seated at runtime by
   the per-page snippet from the pill's own rect — the lab method. == */
#jlAdminDoor{position:absolute;right:16px;display:flex;align-items:center;
  font-family:'Noto Serif', Georgia, serif;font-weight:600;font-size:.78rem;
  color:#B04A55 !important;text-decoration:none;cursor:pointer;
  line-height:1;z-index:5}

/* ===== Cold-walk fix package (owner catches, 2026-10-26) =====
   Root causes measured on the live build (deployment 6328462d)
   at 360/390/430 CSS px; each rule names its defect. */

/* (1) SHARE ROW WRAPS. The footer set carries up to 8 circles
   (native, fb, x, wa, tg, sms, email, copy) but jl.css grids the
   row at repeat(6,28px): the 7th/8th circle wrapped to a second
   line ("Captain Droopy"). Flex + nowrap: one line at any width.
   Same class in the results share (11 nets in a 10-column grid). */
.foot-share-wrap .share-row{display:flex !important;
  flex-wrap:nowrap !important;align-items:center;
  justify-content:center;gap:.5rem}
#view-results .res-share .share-row{display:flex !important;
  flex-wrap:nowrap !important;gap:.25rem}

/* (2) THE THICK STRIP IN THE GRAY is the emptied <footer> itself:
   the theme ship stripped its children but left the element
   rendering as a dead black band (#111 background + .3/.35rem
   padding = 11px of black, margin-top .5rem) floating in the gray
   above the fixed bars. Nothing on a themed page paints into it
   (markup stripped; no script references it). It presents as
   nothing, so the gray runs clean down to the bottom nav. */
footer{display:none !important}

/* (3) LOG IN ON ITS OWN ROW. The six nav words' flex bases total
   ~384px (12.48px serif + 8px side padding each), wider than the
   bar below ~400px viewport, so Log In wrapped onto its own
   full-width centered row ("the login button got moved"). Under
   420px the buttons' side padding trims 8px -> 3px: the set's
   basis drops to ~324px and all six share row 1 down to 360px,
   Log In at the right end. The proven 430px metrics are untouched. */
@media (max-width:419px){
  #topnav > button{padding-left:3px !important;padding-right:3px !important;
    white-space:nowrap;font-size:.78rem !important}
}

/* (4) HOME GRID RIGHT COLUMN CLIPPED. Grid tracks could not
   shrink below the widest nowrap card title's min-content
   ("State & Federal Courts" = 164px -> a 197px floor), so the two
   1fr tracks summed to ~375px inside a 331px container and the
   right column's borders ran off-screen. Items may now shrink
   (min-width:0 -> true equal 1fr tracks), and at phone widths a
   long title wraps inside its own card instead of pushing the
   grid out (owner: titles on one line where the name allows). */
body:has(#view-home.active) #view-home .home-grid > *{min-width:0 !important}
@media (max-width:419px){
  body:has(#view-home.active) #view-home .home-card strong{white-space:normal}
}

/* (5) STATES PAGE DRESS (owner addition, 2026-10-26): the state
   cards wear the locked card pattern — white, 2px black border,
   maroon title — and the page heading wears font #4, like every
   other directory page. Scoped to .states-grid, which exists on
   no other page. */
.states-grid .state-card{background:#FFFFFF !important;
  border:2px solid #111111 !important;color:#111111 !important}
.states-grid .state-card .abbr{color:#953646 !important;
  font-family:'Noto Serif', Georgia, serif !important}
body:has(.states-grid) .container > h1{
  font-family:'Noto Serif', Georgia, serif !important;
  font-weight:600 !important;font-variant:small-caps !important;
  letter-spacing:.04em !important;color:#111111 !important}

/* (6) VIDEOS GRID OVERFLOW (audit find): the same min-content
   floor disease as the home grid — #vidGrid's two columns
   computed 199px+198px at a 360px viewport (cards reaching
   x=426, clipped) because the items could not shrink below
   min-content. Freed, the tracks share the real width
   (measured 157.6px each; document scroll width 426 -> 360). */
#vidGrid > *{min-width:0 !important}

/* === L headroom (owner catch, 2026-10-27): the Great Vibes capital L in
   "Lookup" rides ~4px higher than the rest of the word and its top swash
   was clipped by .brand-text's overflow box. A touch of top padding sits
   the word down so the whole letter shows. Measured in the rig: ink
   clearance at the box top goes ~1px -> ~3.7px. === */
#topbar .brand-text strong{padding-top:.16em}
