/*
Theme Name: Legal Briefs USA Modernist
Theme URI: https://legalbriefsusa.com
Author: Legal Briefs USA
Author URI: https://legalbriefsusa.com
Description: Modernist redesign for Legal Briefs USA — white-label legal drafting, motion practice, appellate briefing, research memoranda, and citation/rule-compliance support for solo attorneys and small law firms. Typographic, image-free, and built on a single token-driven design system.
Version: 3.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: legal-briefs-usa-modernist
*/

/* Modernist — design-system tokens and component classes. This file is the source of truth for the system's look; retune it here and see readme.md. */
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/archivo-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/archivo-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/archivo-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-2: #e15b47;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --color-accent-2-100: #fff2ef;
  --color-accent-2-200: #ffe0da;
  --color-accent-2-300: #ffc4b9;
  --color-accent-2-400: #ff9784;
  --color-accent-2-500: #ef6853;
  --color-accent-2-600: #c94b39;
  --color-accent-2-700: #9e3526;
  --color-accent-2-800: #71261b;
  --color-accent-2-900: #471d16;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4.0px;
  --space-2: 8.0px;
  --space-3: 12.0px;
  --space-4: 16.0px;
  --space-6: 24.0px;
  --space-8: 32.0px;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

.grayscale{filter:grayscale(1) contrast(1.08)}

/* ══════════════════════════════════════════════════════════════════════════
   Components — built with the tokens above. Plain CSS
   on plain HTML: no JavaScript, no build step. Each class is documented in
   readme.md and demonstrated in foundations/ and components/.
   ══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; }
h6 { letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — rules — */
.hr {
  height: 2px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches the .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.radio .dot {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--color-divider);
}
.radio:hover .dot { border-color: var(--color-accent); }
.radio input:checked + .dot {
  border-color: var(--color-accent); background: var(--color-accent);
  box-shadow: inset 0 0 0 4px var(--color-bg);
}
.radio input:focus-visible + .dot { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.seg {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-accent-2 { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — navigation — */
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: 2px solid var(--color-divider);
}
.nav-brand {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto;
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 2px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — dialog — */
.dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center;
  padding: var(--space-4);
  background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent);
}
.dialog {
  width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.dialog-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 20px;
}
.dialog-body { font-size: 14px; opacity: 0.85; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }



  body { margin: 0; }
  a { color: var(--color-accent); }
  a:hover { color: var(--color-accent-700); }


/* — hover states lifted out of the source artboards — */
.lbh-1:hover { transform: rotateY(-4deg) rotateX(1deg); }
.lbh-2:hover { background: var(--color-accent-100); }
.lbh-3:hover { background: #201e1d; color: #f3f2f2; }
.lbh-4:hover { background: var(--color-accent-800); }
.lbh-5:hover { color: var(--color-accent); }
.lbh-6:hover { color: var(--color-accent-400); }


/* ══════════════════════════════════════════════════════════════════════════
   WordPress integration — everything below adapts the Modernist system to
   WordPress chrome, editor content, and the templates that render
   the_content() rather than a hand-built artboard.
   ══════════════════════════════════════════════════════════════════════ */

/* The site header is sticky; keep it clear of the logged-in admin bar. */
.admin-bar .lb-sticky-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .lb-sticky-header { top: 46px; } }

.lb-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent); color: var(--color-bg);
  font-family: var(--font-heading); font-weight: 800; font-size: 13px;
  padding: 10px 16px; text-decoration: none;
}
.lb-skip-link:focus { left: 0; }

/* — prose: pages and posts whose body comes from the editor — */
.lb-prose { font-size: 16px; line-height: 1.62; }
.lb-prose h2 { font-size: clamp(24px,2.8vw,34px); letter-spacing: -0.025em; margin: clamp(32px,4vw,52px) 0 var(--space-3); }
.lb-prose h3 { font-size: clamp(19px,2vw,24px); letter-spacing: -0.02em; margin: clamp(24px,3vw,36px) 0 var(--space-2); }
.lb-prose h4 { font-size: 17px; margin: var(--space-6) 0 var(--space-2); }
.lb-prose p { margin: 0 0 var(--space-4); max-width: 74ch; }
.lb-prose ul, .lb-prose ol { margin: 0 0 var(--space-4); padding-left: 22px; max-width: 74ch; }
.lb-prose li { margin-bottom: 7px; }
.lb-prose li::marker { color: var(--color-accent); }
.lb-prose a { color: var(--color-accent); text-decoration: underline; }
.lb-prose a:hover { color: var(--color-accent-700); }
.lb-prose strong { font-weight: 800; }
.lb-prose blockquote {
  margin: var(--space-6) 0; padding: var(--space-3) 0 var(--space-3) var(--space-6);
  border-left: 2px solid var(--color-accent); font-size: 17px;
}
.lb-prose blockquote p:last-child { margin-bottom: 0; }
.lb-prose hr { height: 2px; border: 0; background: var(--color-divider); margin: clamp(32px,4vw,52px) 0; }
.lb-prose img, .lb-prose figure img { border: 2px solid var(--color-text); }
.lb-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: var(--space-6) 0; }
.lb-prose th { text-align: left; font-family: var(--font-heading); font-weight: 800;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 12px 10px 0; border-bottom: 2px solid var(--color-divider); }
.lb-prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.lb-prose code { font-size: 0.92em; background: var(--color-surface); padding: 2px 5px; }
.lb-prose :is(h2,h3,h4):first-child { margin-top: 0; }

/* — the shared page shell used by page.php / single.php / archives — */
.lb-shell { max-width: 1280px; margin: 0 auto; padding: clamp(40px,5.5vw,80px) clamp(20px,4vw,48px); }
/* Align the measured column with the title above it. The wrapper keeps
   .lb-shell's own 1280px centred box, so both share a left edge; the reading
   measure is applied to the content inside it instead. Narrowing the wrapper
   itself would detach it from that centred box and shift the text sideways. */
.lb-shell-narrow > * { max-width: 860px; }
.lb-kicker {
  font-family: var(--font-heading); font-weight: 800; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-700);
  margin-bottom: clamp(16px,2.4vw,26px);
}
.lb-title { font-size: clamp(32px,5vw,68px); line-height: 1.0; letter-spacing: -0.035em; margin: 0; max-width: 20ch; }
.lb-section { border-bottom: 2px solid var(--color-divider); }
.lb-meta { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-700); }

/* — the post / archive list — */
.lb-list { border-top: 2px solid var(--color-divider); }
.lb-list-item {
  display: grid; grid-template-columns: 64px minmax(0,1fr); gap: clamp(16px,3vw,40px);
  text-decoration: none; color: inherit;
  padding: clamp(22px,2.6vw,34px) 0; border-bottom: 1px solid var(--color-divider);
}
.lb-list-item:hover { background: var(--color-accent-100); }
.lb-list-num { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--color-accent); }
.lb-list-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: clamp(12px,2vw,40px); align-items: baseline; }
.lb-list-title { font-size: clamp(19px,2vw,26px); letter-spacing: -0.025em; margin: 0; }
.lb-list-excerpt { font-size: 14px; margin: 0; color: var(--color-neutral-800); }

.lb-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px,3.5vw,44px); }
.lb-pagination .page-numbers {
  font-family: var(--font-heading); font-weight: 800; font-size: 13px;
  padding: 9px 14px; text-decoration: none; color: var(--color-text);
  border: 1px solid var(--color-divider);
}
.lb-pagination .page-numbers:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.lb-pagination .page-numbers.current { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }

/* — comments, kept minimal and on-system — */
.lb-comments { margin-top: clamp(36px,4.5vw,64px); border-top: 2px solid var(--color-divider); padding-top: clamp(24px,3vw,36px); }
.lb-comments ol { list-style: none; margin: 0; padding: 0; }
.lb-comments .comment-body { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-divider); }

/* — small screens: let the nav breathe rather than crush the wordmark — */
@media (max-width: 720px) {
  .lb-nav { width: 100%; }
  .lb-nav a { font-size: 13px; }
}

/* — when a WordPress menu is assigned to the primary location, give its
     bare <li>/<a> markup the same shape as the design's inline links — */
.lb-nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.lb-nav li { display: inline-flex; }
.lb-nav li > a { color: var(--color-text); text-decoration: none; font-size: 13.5px; }
.lb-nav li > a:hover,
.lb-nav li.current-menu-item > a,
.lb-nav a[aria-current="page"] { color: var(--color-accent); }

/* ══════════════════════════════════════════════════════════════════════════
   Legacy editor content
   ------------------------------------------------------------------------
   The practice-area pages, the policy pages and the Legal Insights posts were
   authored against the previous theme and carry its class names in the
   database (.hero, .section, .eyebrow, .cta-band, .brief-mock and friends).
   Rather than rewrite 30 pieces of content, those classes are re-pointed at
   the Modernist tokens here, so editor-authored pages pick up the new design
   automatically. Everything is scoped to .lb-legacy so it can never reach the
   hand-built page templates.
   ══════════════════════════════════════════════════════════════════════ */

.lb-legacy .container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px,4vw,48px); }

.lb-legacy .hero { border-bottom: 2px solid var(--color-divider); padding: clamp(40px,5.5vw,80px) 0; }
.lb-legacy .section { border-bottom: 2px solid var(--color-divider); padding: clamp(44px,6vw,92px) 0; }
.lb-legacy .section-tight { padding: clamp(32px,4vw,56px) 0; }
.lb-legacy .section-white { background: var(--color-bg); }
.lb-legacy .section-cream { background: var(--color-surface); }

.lb-legacy .hero-grid,
.lb-legacy .split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px,4.5vw,64px); align-items: start;
}
.lb-legacy .hero-grid > .wp-block-column,
.lb-legacy .split > .wp-block-column { flex-basis: auto !important; }

.lb-legacy .eyebrow {
  font-family: var(--font-heading); font-weight: 800; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-700);
  margin: 0 0 clamp(16px,2.4vw,26px);
}
.lb-legacy h1 { font-size: clamp(34px,5.2vw,72px); line-height: 1.0; letter-spacing: -0.035em; margin: 0 0 clamp(18px,2.4vw,28px); max-width: 20ch; }
.lb-legacy h2 { font-size: clamp(26px,3.2vw,44px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 clamp(16px,2vw,24px); max-width: 26ch; }
.lb-legacy h3 { font-size: clamp(19px,2vw,25px); letter-spacing: -0.02em; margin: 0 0 var(--space-2); }
.lb-legacy .lead { font-size: clamp(15px,1.3vw,17px); line-height: 1.5; max-width: 54ch; }
.lb-legacy p { max-width: 72ch; }

/* — the row of framework chips — */
.lb-legacy .framework {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 2px solid var(--color-divider); margin: var(--space-6) 0;
}
.lb-legacy .framework > span {
  padding: 16px 18px 16px 0; font-family: var(--font-heading); font-weight: 800;
  font-size: 13px; box-shadow: inset 0 -1px 0 var(--color-divider);
}

/* — the matrix / comparison grid — */
.lb-legacy .matrix {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 2px solid var(--color-divider); margin: var(--space-6) 0;
}
.lb-legacy .matrix > * {
  padding: 20px 24px; font-size: 14.5px;
  box-shadow: inset -1px 0 0 var(--color-divider), inset 0 -1px 0 var(--color-divider);
}

/* — checklists — */
.lb-legacy .check-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); max-width: 72ch; }
.lb-legacy .check-list li {
  position: relative; padding: 11px 0 11px 26px; font-size: 14.5px;
  border-bottom: 1px solid var(--color-divider);
}
.lb-legacy .check-list li::before {
  content: ""; position: absolute; left: 2px; top: 18px;
  width: 9px; height: 9px; background: var(--color-accent);
}

/* — cards — */
.lb-legacy .card {
  display: flex; flex-direction: column; gap: var(--space-2);
  background: var(--color-bg); border: 2px solid var(--color-divider);
  padding: clamp(20px,2.4vw,28px);
}
.lb-legacy .card-accent { border-color: var(--color-accent); }
.lb-legacy .card p:last-child { margin-bottom: 0; }

/* — closing CTA band — */
.lb-legacy .cta-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px,4vw,56px); align-items: end;
  background: var(--color-accent-700); color: #f3f2f2;
  padding: clamp(36px,5vw,72px) clamp(24px,4vw,48px);
  margin: clamp(36px,4.5vw,64px) 0 0;
}
.lb-legacy .cta-band h2 { color: #f3f2f2; font-size: clamp(26px,3.6vw,48px); letter-spacing: -0.035em; margin: 0 0 var(--space-3); max-width: 22ch; }
.lb-legacy .cta-band p { font-size: 15.5px; margin: 0; max-width: 52ch; }
.lb-legacy .cta-band a { align-self: end; justify-self: start; }

.lb-legacy .btn-light { background: #f3f2f2; color: var(--color-accent-700); padding: 14px 22px; font-size: 15px; }
.lb-legacy .btn-light:hover { background: #201e1d; color: #f3f2f2; }

.lb-legacy .table-wrap { overflow-x: auto; margin: var(--space-6) 0; }
.lb-legacy .table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.lb-legacy .table-wrap th { text-align: left; font-family: var(--font-heading); font-weight: 800;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 14px 10px 0; border-bottom: 2px solid var(--color-divider); }
.lb-legacy .table-wrap td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--color-divider); vertical-align: top; }

/* — the decorative brief mock in each practice-area hero, re-cut to match
     the pleading paper used on the front page — */
.lb-legacy .brief-mock,
.lb-legacy .panel {
  background: #ffffff; border: 2px solid var(--color-text);
  box-shadow: var(--shadow-lg); padding: 22px 24px 26px; max-width: 520px;
}
.lb-legacy .brief-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 2px solid var(--color-text); padding-bottom: 10px; margin-bottom: 18px;
}
.lb-legacy .brief-title { font-family: var(--font-heading); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.lb-legacy .deadline-pill {
  font-family: var(--font-heading); font-weight: 800; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--color-accent-100); color: var(--color-accent-800); padding: 4px 10px;
}
.lb-legacy .mock-lines { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.lb-legacy .mock-line { height: 6px; width: 100%; background: var(--color-neutral-200); }
.lb-legacy .mock-line.mid { width: 82%; }
.lb-legacy .mock-line.short { width: 58%; }
.lb-legacy .mock-argument { border-left: 2px solid var(--color-accent); padding-left: 14px; margin: 18px 0; }
.lb-legacy .mock-argument strong { font-family: var(--font-heading); font-weight: 800; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.lb-legacy .mock-checklist { display: grid; gap: 0; border-top: 1px solid var(--color-neutral-300); margin-top: 18px; }
.lb-legacy .mock-check {
  font-size: 11.5px; font-family: var(--font-heading); font-weight: 800;
  padding: 9px 0; border-bottom: 1px solid var(--color-neutral-300);
}

/* Pages carry their own <h1> hero inside the content, so they render
   full-bleed; posts get the template hero and a measured column instead. */
.lb-legacy-prose .cta-band { margin-left: 0; margin-right: 0; }

/* The pleading-paper deadline badge hangs off the left edge of the figure.
   That reads as intentional beside a wide hero column, but on a phone the
   figure runs to the viewport edge and the badge would be cut in half. */
@media (max-width: 900px) {
  /* Flatten the 3D tilt so the stack sits square to the viewport, then the
     badge can be tucked inside the sheet rather than hanging past it. */
  .lb-doc-stack { transform: none !important; }
  .lb-deadline-badge { left: 10px; transform: none !important; }
}

/* — editor buttons — */
/* Buttons placed with the block editor ship WordPress's own pill styling,
   which reads as a different design language next to the square .btn used
   throughout. Re-point them at the system's primary button. */
.wp-block-button__link,
.wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; line-height: 1.2; text-decoration: none;
  background: var(--color-accent); color: var(--color-bg);
  border: 1px solid transparent; border-radius: 0;
  padding: 12px 20px;
}
.wp-block-button__link:hover,
.wp-element-button:hover { background: var(--color-accent-600); color: var(--color-bg); }
.wp-block-button__link:active,
.wp-element-button:active { background: var(--color-accent-700); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--color-text); border-color: var(--color-divider);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text);
}
