/* ════════════════════════════════════════════════════════════════════
 * Kanevsky Law — Site overrides
 * Loaded ALONGSIDE the bundled Next.js CSS. Lives outside _next/static/
 * so it isn't trapped by the immutable cache directive — updates take
 * effect on the next reload, not a year from now.
 * ════════════════════════════════════════════════════════════════════ */

/* ─── Fix: 120px fixed nav was covering first 120px of every page ─── */
nav.fixed.w-full.z-50.top-0 { z-index: 100 !important; }
main, main#main-content {
  padding-top: 120px !important;
}
@media (max-width: 1023px) {
  main, main#main-content { padding-top: 100px !important; }
}
/* Anchor offset so #section links don't land hidden under the nav */
:target { scroll-margin-top: 140px; }

/* ─── H1 spacing — keep natural word spacing only ───────────────────
   Previous version of this CSS added `margin-left` to h1 spans which
   stacked on top of the existing space character, creating a visible
   double-gap. Removed. The HTML source now has proper space chars. */
h1 { white-space: normal; }

/* ─── Native HTML5 details/summary FAQ styling ────────────────────── */
.kl-faq { max-width: 900px; margin: 0 auto; }
.kl-faq details {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.kl-faq details[open] {
  box-shadow: 0 4px 16px rgba(15,23,42,0.06);
  border-color: #dc2626;
}
.kl-faq summary {
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  color: #0f172a;
  list-style: none;
  position: relative;
  padding-right: 50px;
  user-select: none;
}
.kl-faq summary::-webkit-details-marker { display: none; }
.kl-faq summary::marker { content: ''; }
.kl-faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: #dc2626;
  transition: transform 0.2s ease;
}
.kl-faq details[open] summary::after { content: '\2212'; }
.kl-faq summary:hover { color: #dc2626; }
.kl-faq .kl-faq-answer {
  padding: 0 24px 20px;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}
.kl-faq .kl-faq-answer a { color: #dc2626; text-decoration: underline; }

/* ─── External-link visual indicator ──────────────────────────────── */
.kl-ext-link::after {
  content: ' ↗';
  display: inline-block;
  font-size: 0.8em;
  margin-left: 2px;
  color: #94a3b8;
}

/* ─── Missing Tailwind class (referenced by 7 components) ──────────── */
.bg-slate { background-color: rgb(15, 23, 42); }

/* ─── Force-show elements pre-set to opacity:0 + transform ─────────── */
/* These are scroll-fade-in placeholders that React would have animated.
   Without the React IntersectionObserver, they'd stay invisible. */
[style*="opacity:0"][style*="transform"],
[style*="opacity: 0"][style*="transform"] {
  opacity: 1 !important;
  transform: none !important;
}

/* ─── FAQ accordion fix ─────────────────────────────────────────────
   Radix accordion uses a CSS animation that needs
   --radix-accordion-content-height to be set by Radix JS at runtime.
   Without React's collapsible primitive, even after the JS toggles
   `hidden` and `data-state`, the panel's height stays at 0 because the
   animation's `to { height: var(--radix-…) }` resolves to undefined.
   Force-render open panels at natural height; hide closed ones. */
[data-state="open"][role="region"] {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  animation: none !important;
  --radix-accordion-content-height: auto !important;
  --radix-collapsible-content-height: auto !important;
}
[data-state="closed"][role="region"] {
  display: none !important;
}

/* ─── Practice Areas hover dropdown ────────────────────────────────── */
.kl-dropdown { position: relative; display: inline-block; }
.kl-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  cursor: pointer;
  text-decoration: none;
}
.kl-dd-arrow {
  display: inline-block;
  font-size: 11px;
  transition: transform 0.2s ease;
  color: #94a3b8;
}
.kl-dropdown:hover .kl-dd-arrow,
.kl-dropdown:focus-within .kl-dd-arrow {
  transform: rotate(180deg);
  color: #dc2626;
}
.kl-dd-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.kl-dropdown:hover .kl-dd-panel,
.kl-dropdown:focus-within .kl-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.kl-dd-item {
  display: block;
  padding: 8px 16px;
  color: #334155;
  font-size: 14px;
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.kl-dd-item:hover,
.kl-dd-item:focus {
  background: #fef2f2;
  color: #dc2626;
  outline: none;
}
.kl-dd-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}
.kl-dd-allitems {
  font-weight: 600;
  color: #dc2626 !important;
}

/* ════════════════════════════════════════════════════════════════════
 * Month-2 page utilities — these Tailwind classes were purged from the
 * original compiled CSS (never used by the original site), so the new
 * landing pages need them defined here. Standard Tailwind values.
 * ════════════════════════════════════════════════════════════════════ */
.pt-32{padding-top:8rem}
.pt-36{padding-top:9rem}
.pb-24{padding-bottom:6rem}
.pb-16{padding-bottom:4rem}
.w-96{width:24rem}
.h-96{height:24rem}
.gap-x-5{column-gap:1.25rem}
.gap-y-3{row-gap:.75rem}
.gap-12{gap:3rem}
.blur-xl{--tw-blur:blur(24px);filter:var(--tw-blur)}
.blur-3xl{--tw-blur:blur(64px);filter:var(--tw-blur)}
.-inset-4{top:-1rem;right:-1rem;bottom:-1rem;left:-1rem}
.-top-24{top:-6rem}
.-right-24{right:-6rem}
.min-h-\[52px\]{min-height:52px}
.tracking-widest{letter-spacing:.1em}
.leading-\[1\.1\]{line-height:1.1}
.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}
.col-span-7{grid-column:span 7/span 7}
.col-span-5{grid-column:span 5/span 5}
/* red / slate opacity tints used in new heroes & accents */
.bg-red\/5{background-color:rgba(220,38,38,.05)}
.bg-red\/10{background-color:rgba(220,38,38,.10)}
.bg-red\/20{background-color:rgba(220,38,38,.20)}
.border-red\/20{border-color:rgba(220,38,38,.20)}
.from-red\/20{--tw-gradient-from:rgba(220,38,38,.2);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(220,38,38,0))}
.to-slate\/10{--tw-gradient-to:rgba(15,23,42,.1)}
.from-slate-50{--tw-gradient-from:#f8fafc;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(248,250,252,0))}
.via-white{--tw-gradient-stops:var(--tw-gradient-from),#fff,var(--tw-gradient-to,rgba(255,255,255,0))}
.to-red-50\/40{--tw-gradient-to:rgba(254,242,242,.4)}
.shadow-red\/30{--tw-shadow-color:rgba(220,38,38,.3)}
.from-red{--tw-gradient-from:#dc2626;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,rgba(220,38,38,0))}
.to-red\/80{--tw-gradient-to:rgba(220,38,38,.8)}

/* Responsive variants (md ≥768px, lg ≥1024px) */
@media (min-width:768px){
  .md\:pt-36{padding-top:9rem}
  .md\:pb-24{padding-bottom:6rem}
  .md\:text-5xl{font-size:3rem;line-height:1}
  .md\:text-4xl{font-size:2.25rem;line-height:2.5rem}
  .md\:text-6xl{font-size:3.75rem;line-height:1}
  .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:1024px){
  .lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))!important}
  .lg\:col-span-7{grid-column:span 7/span 7}
  .lg\:col-span-5{grid-column:span 5/span 5}
  .lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lg\:block{display:block!important}
}

/* ════════════════════════════════════════════════════════════════════
 * .kl-article — article/landing typography (replaces Tailwind 'prose',
 * which was never compiled into the original CSS). Constrained width is
 * controlled by the parent max-w-* container; this only styles text.
 * ════════════════════════════════════════════════════════════════════ */
.kl-article{color:#374151;font-size:1.0625rem;line-height:1.75}
.kl-article > *:first-child{margin-top:0}
.kl-article p{margin:0 0 1.15rem}
.kl-article ul{list-style:disc;padding-left:1.6rem;margin:0 0 1.35rem}
.kl-article ol{list-style:decimal;padding-left:1.6rem;margin:0 0 1.35rem}
.kl-article li{margin:0 0 .55rem;padding-left:.25rem}
.kl-article li::marker{color:#dc2626}
.kl-article a{color:#dc2626;text-decoration:underline;text-underline-offset:2px}
.kl-article a:hover{color:#b91c1c}
.kl-article strong{font-weight:700;color:#0f172a}
.kl-article h2{margin-top:2.25rem;margin-bottom:1rem}
.kl-article h3{margin-top:1.75rem;margin-bottom:.75rem}
.kl-article h2:first-child,.kl-article h3:first-child{margin-top:0}
.kl-article table{width:100%;margin:1.5rem 0}

/* ===== Oct 2026: AEO direct-answer + EEAT blocks ===== */
.kl-tldr{background:#fef2f2;border-left:4px solid #dc2626;border-radius:8px;padding:18px 22px;margin:0 0 30px}
.kl-tldr p{margin:0;color:#334155;font-size:1.03rem;line-height:1.7}
.kl-tldr .kl-tldr-label{display:block;text-transform:uppercase;letter-spacing:.09em;font-size:11.5px;font-weight:700;color:#dc2626;margin-bottom:7px}
.kl-byline{display:flex;align-items:center;gap:12px;margin:0 0 26px;padding:12px 0;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb}
.kl-byline img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none}
.kl-byline .kl-byline-txt{font-size:13px;color:#64748b;line-height:1.45}
.kl-byline .kl-byline-txt strong{color:#0f172a;font-weight:600}
.kl-byline .kl-byline-txt a{color:#dc2626}

/* ===== Oct 2026 fix: grid utilities missing from compiled CSS (Tailwind purge) =====
   These power the "About Your Lawyer" EEAT panel and credential grids on new pages. */
.gap-x-6{column-gap:1.5rem}
.gap-y-2{row-gap:.5rem}
.gap-x-5{column-gap:1.25rem}
.max-w-\[220px\]{max-width:220px}
@media (min-width:768px){
  .md\:col-span-1{grid-column:span 1 / span 1}
  .md\:col-span-2{grid-column:span 2 / span 2}
}

/* ── Nov 2026 ranking-recovery layer: purge-trap fills + new blocks ── */
.font-light{font-weight:300}.mt-5{margin-top:1.25rem}.mt-10{margin-top:2.5rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.pb-5{padding-bottom:1.25rem}
.px-7{padding-left:1.75rem;padding-right:1.75rem}.max-w-md{max-width:28rem}
.text-white\/80{color:rgba(255,255,255,.8)}.text-white\/90{color:rgba(255,255,255,.9)}.border-white\/40{border-color:rgba(255,255,255,.4)}
.bg-slate\/30{background-color:rgba(15,23,42,.3)}
.hover\:border-red:hover{border-color:#dc2626}.hover\:bg-red\/90:hover{background-color:rgba(220,38,38,.9)}
.hover\:bg-slate:hover{background-color:#0f172a}.hover\:bg-slate\/50:hover{background-color:rgba(15,23,42,.5)}
.group:hover .group-hover\:text-red{color:#dc2626}.group[open] .group-open\:rotate-45{transform:rotate(45deg)}
.bg-\[radial-gradient\(ellipse_at_top_right\2c rgba\(220\2c 38\2c 38\2c 0\.08\)\2c transparent_60\%\)\]{background-image:radial-gradient(ellipse at top right,rgba(220,38,38,.08),transparent 60%)}
@media(min-width:640px){.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}
@media(min-width:768px){.md\:pb-16{padding-bottom:4rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}
@media(min-width:1024px){.lg\:col-span-1{grid-column:span 1/span 1}.lg\:col-span-2{grid-column:span 2/span 2}}
.kl-hub-link{margin:1.25rem 0 0;color:#374151;line-height:1.75;font-size:1.0625rem}
.kl-sources ul{margin-top:.75rem}.kl-sources li{margin:.35rem 0}
.kl-article h2{font-size:1.625rem;line-height:1.25;font-weight:700;color:#0f172a;letter-spacing:-.01em}
.kl-article h3{font-size:1.25rem;line-height:1.35;font-weight:700;color:#0f172a}
@media(min-width:768px){.kl-article h2{font-size:1.875rem}}
section.kl-faq{max-width:none;margin:0}
.kl-faq summary > span.text-red{display:none}
/* ── Nov 12 2026: comparison/fact tables ── */
.kl-table-wrap{overflow-x:auto;margin:1.5rem 0 1.75rem;-webkit-overflow-scrolling:touch}
.kl-table{width:100%;border-collapse:collapse;font-size:.95rem;line-height:1.5}
.kl-table th,.kl-table td{border:1px solid #e5e7eb;padding:.7rem .85rem;text-align:left;vertical-align:top}
.kl-table thead th{background:#0f172a;color:#fff;font-weight:600}
.kl-table tbody tr:nth-child(even){background:#f9fafb}
.kl-table td:first-child{min-width:12rem}
