/* ==========================================================================
   LawPucho — legal guides hub (/blog)
   Scoped entirely under .lpb-* so nothing else on the site is touched.
   Modern editorial: white surfaces, ink text, ONE accent (the site's amber,
   used as a solid fill with dark text for contrast, never gold text on white).
   ========================================================================== */

.lpb {
  --ink: #0a0a0b;
  --ink-2: #18181b;
  --soft: #52525b;
  --mute: #71717a;
  --line: #e7e5e4;
  --line-2: #d6d3d1;
  --surface: #ffffff;
  --alt: #fafaf9;
  --warm: #fafaff;
  --accent: #4f46e5;
  --accent-deep: #4338ca;
  --accent-soft: #eef2ff;
  --ok: #15803d;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-1: 0 1px 2px rgba(10, 10, 11, .04), 0 1px 3px rgba(10, 10, 11, .06);
  --shadow-2: 0 10px 30px -12px rgba(10, 10, 11, .18);
  background: var(--surface);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lpb *, .lpb *::before, .lpb *::after { box-sizing: border-box; }
.lpb h1, .lpb h2, .lpb h3, .lpb h4, .lpb .lpb-display {
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.lpb p { margin: 0; }
.lpb a { color: inherit; text-decoration: none; }
.lpb img { max-width: 100%; display: block; }

.lpb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.lpb-narrow { max-width: 820px; }

/* ---------------------------------------------------------------- hero --- */
.lpb-hero {
  position: relative;
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1000px 320px at 78% -10%, rgba(79, 70, 229, .10), transparent 62%),
    linear-gradient(180deg, var(--warm) 0%, #ffffff 62%);
}
.lpb-crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); margin-bottom: 18px; }
.lpb-crumbs a:hover { color: var(--accent-deep); }
.lpb-crumbs span[aria-current] { color: var(--soft); }

.lpb-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: start; }
@media (max-width: 980px) { .lpb-hero-grid { grid-template-columns: 1fr; gap: 28px; } }

.lpb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.lpb-hero h1 {
  font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; line-height: 1.05;
  margin-bottom: 16px; max-width: 22ch;
}
.lpb-lede { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; color: var(--soft); max-width: 62ch; }
.lpb-lede strong { color: var(--ink); font-weight: 600; }

.lpb-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; }
.lpb-stat b { display: block; font-family: 'Inter Tight', sans-serif; font-size: 27px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.lpb-stat span { font-size: 13px; color: var(--soft); }

/* ------------------------------------------------------------ search box --- */
.lpb-panel { background: linear-gradient(180deg, #ffffff 0%, var(--warm) 100%); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 18px 40px -28px rgba(24, 24, 27, .45); }
.lpb-search { position: relative; }
.lpb-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); font-size: 14px; }
.lpb-search input {
  width: 100%; padding: 14px 14px 14px 40px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--alt); color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.lpb-search input::placeholder { color: #a1a1aa; }
.lpb-search input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .16); }
.lpb-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lpb-quick button {
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--soft); cursor: pointer;
  background: var(--alt); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  transition: all .16s ease;
}
.lpb-quick button:hover { border-color: var(--accent); color: var(--ink); background: var(--warm); }
.lpb-panel-note { font-size: 12px; color: var(--mute); margin-top: 14px; line-height: 1.5; }

/* --------------------------------------------------------------- pills --- */
.lpb-filter { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lpb-filter-in { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.lpb-filter-in::-webkit-scrollbar { display: none; }
.lpb-pill {
  font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--soft); transition: all .16s ease;
}
.lpb-pill:hover { border-color: var(--line-2); color: var(--ink); }
.lpb-pill[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 16px -8px rgba(79, 70, 229, .7); }
.lpb-count { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; white-space: nowrap; }

/* ------------------------------------------------------------ featured --- */
.lpb-section { padding: 44px 0; }
.lpb-section-alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lpb-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.lpb-sec-title { display: flex; align-items: center; gap: 12px; }
.lpb-sec-title::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--accent); flex: none; }
.lpb-sec-title h2 { font-size: clamp(19px, 2.2vw, 25px); font-weight: 800; }
.lpb-sec-sub { font-size: 13px; color: var(--mute); }

.lpb-feature {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1);
}
@media (max-width: 860px) { .lpb-feature { grid-template-columns: 1fr; } }
.lpb-feature-main { padding: 30px; border-right: 1px solid var(--line); }
@media (max-width: 860px) { .lpb-feature-main { border-right: 0; border-bottom: 1px solid var(--line); } }
.lpb-feature-side { padding: 26px 30px; background: var(--warm); }
.lpb-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); background: var(--accent); padding: 5px 11px; border-radius: 999px; }
.lpb-feature h3 { font-size: clamp(21px, 2.6vw, 30px); font-weight: 800; line-height: 1.15; margin: 16px 0 12px; }
.lpb-feature p { color: var(--soft); line-height: 1.65; font-size: 15px; }
.lpb-feature-side h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 13px; }
.lpb-checklist { list-style: none; padding: 0; margin: 0 0 20px; }
.lpb-checklist li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 14px; color: var(--soft); line-height: 1.5; }
.lpb-checklist li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; font-size: 12px; color: var(--accent-deep); }

/* --------------------------------------------------------------- cards --- */
.lpb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1040px) { .lpb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lpb-grid { grid-template-columns: 1fr; gap: 14px; } }

.lpb-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-1);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease, border-color .2s ease;
}
.lpb-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
.lpb-card:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; }
.lpb-chip { align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft); border-radius: 7px; padding: 6px 10px; margin-bottom: 14px; line-height: 1; }
.lpb-card h3 { font-size: 17px; font-weight: 700; line-height: 1.32; margin-bottom: 11px; }
.lpb-card p { font-size: 14px; color: var(--soft); line-height: 1.62; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lpb-meta { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.lpb-meta > span { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.lpb-meta .lpb-go { margin-left: auto; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.lpb-card:hover .lpb-go { color: var(--accent-deep); }
.lpb-go i { transition: transform .2s ease; }
.lpb-card:hover .lpb-go i { transform: translateX(3px); }

.lpb-cat-block { margin-bottom: 46px; }
.lpb-cat-block:last-child { margin-bottom: 0; }
.lpb-empty { display: none; padding: 54px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--mute); }
.lpb-empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.lpb.is-filtering .lpb-cat-block[data-hidden="1"] { display: none; }

/* ----------------------------------------------------------------- cta --- */
.lpb-cta { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
@media (max-width: 780px) { .lpb-cta { grid-template-columns: 1fr; padding: 30px 24px; } }
.lpb-cta h2 { color: #fff; font-size: clamp(21px, 2.6vw, 29px); font-weight: 800; margin-bottom: 10px; }
.lpb-cta p { color: #d4d4d8; line-height: 1.65; font-size: 15px; max-width: 60ch; }
.lpb-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lpb-btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; padding: 13px 22px; border-radius: 12px; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.lpb-btn-primary { background: var(--accent); color: #fff; }
.lpb-btn-primary:hover { background: #4338ca; color: #fff; transform: translateY(-1px); }
.lpb-btn-ghost { border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.lpb-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .07); }

/* ---------------------------------------------------------------- prose --- */
.lpb-prose { max-width: 70ch; margin: 0 auto; }
.lpb-prose h2 { font-size: clamp(19px, 2.1vw, 24px); font-weight: 800; margin: 34px 0 12px; }
.lpb-prose p, .lpb-prose li { font-size: 15.5px; line-height: 1.75; color: #3f3f46; }
.lpb-prose p + p { margin-top: 14px; }
.lpb-prose ul { margin: 14px 0 0; padding-left: 20px; }
.lpb-prose li { margin-bottom: 9px; }
.lpb-prose strong { color: var(--ink); font-weight: 650; }
.lpb-faq { border-top: 1px solid var(--line); margin-top: 30px; }
.lpb-faq details { border-bottom: 1px solid var(--line); }
.lpb-faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative; font-weight: 650; font-size: 15.5px; color: var(--ink); }
.lpb-faq summary::-webkit-details-marker { display: none; }
.lpb-faq summary::after { content: "\f067"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 6px; top: 19px; font-size: 12px; color: var(--accent-deep); transition: transform .2s ease; }
.lpb-faq details[open] summary::after { content: "\f068"; }
.lpb-faq .lpb-ans { padding: 0 34px 20px 0; }
.lpb-faq .lpb-ans p { font-size: 15px; line-height: 1.75; color: #3f3f46; }

/* -------------------------------------------------------------- mobile --- */
@media (max-width: 700px) {
  .lpb-filter-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .lpb-filter-in::-webkit-scrollbar { display: none; }
  .lpb-hero { padding: 26px 0 22px; }
  .lpb-section { padding: 30px 0; }
  .lpb-filter-in { padding: 10px 14px; gap: 10px; }
  .lpb-count { display: none; }
  .lpb-stat b { font-size: 22px; }
}

/* --------------------------------------------------------------- motion --- */
html.js .lpb [data-reveal] { opacity: 0; transform: translateY(14px); }
html.js .lpb [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .55s cubic-bezier(.16, 1, .3, 1), transform .55s cubic-bezier(.16, 1, .3, 1); }
.lpb-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); box-shadow: var(--shadow-2); cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}
.lpb-top.is-on { opacity: 1; visibility: visible; }
.lpb-top:hover { transform: translateY(-2px); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html.js .lpb [data-reveal] { opacity: 1 !important; transform: none !important; }
  .lpb *, .lpb *::before, .lpb *::after { transition: none !important; animation: none !important; }
  .lpb-card:hover { transform: none; }
}
