/*
Theme Name: The Legal Engineer — Editable Block Theme
Theme URI: https://thelegalengineer.com/
Author: The Legal Engineer
Description: Native WordPress block theme matching the approved six-page The Legal Engineer design. Editable with the native WordPress Site Editor.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: tle
*/
:root{--green:#004d2e;--green2:#0b5c3b;--ink:#111a15;--muted:#59645e;--line:#dfe5e1;--soft:#f7f9f7;--paper:#fff;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#fff;font-family:Arial,Helvetica,sans-serif;line-height:1.45}a{color:inherit;text-decoration:none}img{display:block;max-width:100%;height:auto}.wrap{width:min(calc(100% - 48px),var(--max));margin:auto}.eyebrow{margin:0 0 16px!important;color:var(--green);font-size:11px!important;line-height:1;text-transform:uppercase;letter-spacing:.14em;font-weight:700}.display{font-size:clamp(44px,5.5vw,68px)!important;font-weight:400!important;line-height:1.04!important;letter-spacing:-.045em!important;margin:0!important}.h1{font-size:clamp(38px,4.3vw,58px)!important;line-height:1.08!important;letter-spacing:-.04em!important;font-weight:400!important;margin:0!important}.h2{font-size:clamp(30px,3vw,42px)!important;line-height:1.12!important;letter-spacing:-.035em!important;font-weight:400!important;margin:0!important}.copy{font-size:16px!important;color:#36443c;max-width:610px;margin:20px 0 0!important}.arrow{margin-left:12px}
/* header */
.site-header{background:#fff;border-bottom:1px solid #f2f4f2}.header{min-height:80px;display:flex;align-items:center;gap:34px}.brand{display:flex;align-items:center;gap:15px;margin-right:auto}.tle-mark{width:44px;height:30px;position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.tle-mark span{display:block;position:relative}.tle-mark span:nth-child(1):before{content:"";position:absolute;left:0;top:3px;width:15px;height:2px;background:#111}.tle-mark span:nth-child(1):after{content:"";position:absolute;left:7px;top:8px;width:2px;height:20px;background:#111}.tle-mark span:nth-child(2):before{content:"";position:absolute;left:2px;top:3px;width:2px;height:23px;background:#111}.tle-mark span:nth-child(2):after{content:"";position:absolute;left:2px;bottom:3px;width:13px;height:2px;background:#111}.tle-mark span:nth-child(3):before{content:"";position:absolute;left:2px;top:3px;width:14px;height:2px;background:var(--green);box-shadow:0 10px 0 var(--green),0 20px 0 var(--green)}.brand-name{font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:700;white-space:nowrap}.header .wp-block-navigation{margin-left:auto}.header .wp-block-navigation__container{gap:34px!important}.header .wp-block-navigation-item__content{font-size:9px;text-transform:uppercase;letter-spacing:.09em;font-weight:700;padding:31px 0 28px;position:relative}.header .current-menu-item>.wp-block-navigation-item__content:after,.header .current-menu-ancestor>.wp-block-navigation-item__content:after{content:"";position:absolute;left:0;right:0;bottom:21px;height:1px;background:var(--green)}.work-btn .wp-block-button__link{background:var(--green)!important;color:#fff!important;border-radius:0!important;padding:13px 18px!important;font-size:9px!important;text-transform:uppercase;letter-spacing:.1em;font-weight:700}
/* shared */
.section{position:relative}.hero-grid,.page-hero-grid{display:grid!important;grid-template-columns:1.05fr .95fr!important;gap:0!important}.hero-copy{padding:78px 56px 74px 0}.hero-copy .display{max-width:560px}.hero-copy .copy{max-width:560px}.actions{display:flex!important;gap:12px!important;margin-top:28px!important;flex-wrap:wrap}.actions .wp-block-button__link,.button .wp-block-button__link,.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border:1px solid #b7c1bb;background:#fff;color:var(--ink);border-radius:0;text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:700}.actions .wp-block-button:first-child .wp-block-button__link,.button.primary .wp-block-button__link,.primary .wp-block-button__link{background:var(--green);border-color:var(--green);color:#fff}.hero-image,.page-photo{align-self:stretch;margin:0!important;height:100%}.hero-image figure,.page-photo figure{height:100%;margin:0}.hero-image img,.page-photo img{width:100%;height:100%;object-fit:cover}.hero-image{min-height:430px}.hero-image img{aspect-ratio:284/273}.capabilities{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.cap-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:0!important}.cap{padding:30px 30px 34px;border-right:1px solid var(--line)}.cap:last-child{border-right:0}.icon{width:30px;height:30px;color:var(--green);margin-bottom:18px}.icon svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.cap h3{margin:0 0 8px!important;font-size:12px!important;text-transform:uppercase;letter-spacing:.08em}.cap p{margin:0!important;color:#313d36;font-size:13px!important;max-width:210px}
/* homepage insights exactly approved */
.home-insights{padding:48px 0 38px}.insights-heading{display:flex!important;justify-content:space-between;align-items:flex-start;gap:30px;margin-bottom:26px}.insights-heading .h2{font-size:28px!important;max-width:500px}.view-link{position:relative;border:1px solid #a8b8af;padding:16px 24px 14px;text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:700;white-space:nowrap}.squiggle{width:45px;height:24px;position:absolute;pointer-events:none}.squiggle svg{width:100%;height:100%;stroke:var(--green);fill:none;stroke-width:2}.view-link .squiggle{right:6px;bottom:-7px}.home-card-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:14px!important}.home-card{border:1px solid var(--line);min-height:145px;padding:22px 18px;display:flex;flex-direction:column}.cat{font-size:9px!important;text-transform:uppercase;letter-spacing:.11em;color:var(--green);font-weight:700}.home-card h3{font-weight:400!important;font-size:17px!important;line-height:1.3!important;margin:12px 0 auto!important}.meta{font-size:9px!important;text-transform:uppercase;color:#6f7b74;letter-spacing:.05em;margin-top:18px!important}
/* page hero */
.page-hero{padding-top:46px}.page-hero-grid{align-items:start}.page-hero-copy{padding:42px 55px 48px 0;position:relative}.page-hero-copy .copy{font-size:14px!important;max-width:500px}.page-photo{min-height:220px}.services-photo img{aspect-ratio:254/213}.academy-photo img{aspect-ratio:196/233}.about-photo img{aspect-ratio:250/160}.mini-squiggle{position:absolute;left:32px;bottom:8px;width:45px;height:16px}.mini-squiggle svg{width:100%;height:100%;fill:none;stroke:var(--green);stroke-width:2}
/* services */
.services-wrap{position:relative}.service-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;border:1px solid var(--line);border-bottom:0}.service{min-height:255px;padding:32px 38px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);position:relative}.service:nth-child(even){border-right:0}.service-label{font-size:9px!important;text-transform:uppercase;letter-spacing:.11em;color:var(--green);font-weight:700;margin-bottom:18px!important}.service h2{font-size:24px!important;line-height:1.18!important;font-weight:400!important;margin:0 0 15px!important;max-width:360px}.service p{font-size:13px!important;line-height:1.55!important;color:#303d35;max-width:380px;margin:0 0 20px!important}.learn{font-size:9px!important;text-transform:uppercase;letter-spacing:.09em;color:var(--green);font-weight:700}.green-block{position:absolute;right:0;bottom:0;width:38px;height:132px;background:#6c8d76;opacity:.75;clip-path:polygon(18% 0,100% 5%,100% 100%,0 100%)}.cta-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 24px;display:flex!important;justify-content:space-between;align-items:center;gap:20px}.cta-copy{display:flex!important;gap:15px;align-items:center;font-size:12px;color:#39463f}.cta-copy .icon{margin:0;width:28px;height:28px}
/* academy */
.academy-intro-dots{display:flex!important;gap:9px;margin-top:22px}.academy-intro-dots span{width:3px;height:3px;background:var(--green);border-radius:50%}.program-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:0!important;border:1px solid var(--line);border-right:0}.program{padding:28px 26px 35px;border-right:1px solid var(--line);min-height:250px}.program h2{font-size:19px!important;line-height:1.25!important;font-weight:400!important;margin:12px 0!important}.program p{font-size:12px!important;line-height:1.5!important;color:#354139;min-height:74px}.academy-cta{position:relative}.academy-cta .squiggle{right:16px;top:-15px;width:75px}.academy-cta .cta-strip{padding:25px 26px}
/* insights page */
.insights-page{padding:48px 0 30px}.insights-page .h1{max-width:560px;font-size:42px!important}.filterbar{display:flex!important;gap:31px;margin-top:34px;padding-bottom:14px;border-bottom:1px solid var(--line);font-size:9px;text-transform:uppercase;letter-spacing:.09em;font-weight:700;flex-wrap:wrap}.filterbar p{margin:0!important}.filterbar p:first-child{color:var(--green);border-bottom:1px solid var(--green);padding-bottom:10px}.article-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:12px!important;margin-top:20px}.article-card{border:1px solid var(--line);background:#fff}.article-card figure{margin:0}.article-card img{width:100%;height:auto;aspect-ratio:2/1;object-fit:cover}.article-body{padding:14px 15px 18px}.article-card h2{font-size:15px!important;line-height:1.28!important;font-weight:400!important;min-height:58px;margin:9px 0 16px!important}.load-wrap{text-align:center;margin:22px 0 16px}.bottom-squiggle{position:absolute;left:-5px;bottom:0;width:60px;height:28px}.bottom-squiggle svg{width:100%;height:100%;stroke:var(--green);fill:none;stroke-width:2}
/* single article template */
.single-shell{padding:44px 0 35px}.back{font-size:9px;text-transform:uppercase;color:var(--green);letter-spacing:.1em;font-weight:700}.single-head{display:grid!important;grid-template-columns:1fr auto!important;gap:30px;align-items:end;margin-top:28px}.single-head .wp-block-post-title{font-size:40px!important;line-height:1.08!important;letter-spacing:-.04em;font-weight:400!important;max-width:660px;margin:0!important}.share{font-size:9px;text-transform:uppercase;letter-spacing:.08em}.single-layout{display:grid!important;grid-template-columns:170px 1fr!important;gap:40px;padding-top:18px;position:relative}.toc{padding-top:12px;font-size:10px}.toc-title{font-size:9px;text-transform:uppercase;color:var(--green);letter-spacing:.1em;font-weight:700;margin-bottom:17px}.toc p{margin:0 0 14px!important}.article-main .wp-block-post-featured-image{margin:0}.article-main .wp-block-post-featured-image img{width:100%;height:auto;aspect-ratio:350/134;object-fit:cover}.article-main .wp-block-post-content p{font-size:14px;line-height:1.55;max-width:760px}.single-block{position:absolute;left:-30px;bottom:0;width:80px;height:55px;background:#6f9179;opacity:.75;clip-path:polygon(0 10%,100% 0,88% 100%,0 88%)}
/* about */
.about-intro{padding:46px 0 20px}.about-intro .page-hero-grid{grid-template-columns:1.05fr .95fr!important}.about-intro .page-hero-copy{padding-top:34px}.about-intro .h1{font-size:40px!important}.about-link{display:inline-block;margin-top:22px!important;font-size:9px!important;text-transform:uppercase;color:var(--green);letter-spacing:.1em;font-weight:700}.contact-area{padding:20px 0 40px;position:relative}.contact-panel{display:grid!important;grid-template-columns:.85fr 1.15fr .7fr!important;gap:30px;border-top:1px solid var(--line);padding-top:22px}.contact-title{font-size:28px!important;line-height:1.18!important;font-weight:400!important;margin:0!important}.contact-copy{font-size:11px!important;color:#48534d}.tle-contact-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.tle-contact-form input,.tle-contact-form textarea{width:100%;border:1px solid var(--line);padding:9px 10px;font:inherit;font-size:10px;background:#fff}.tle-contact-form textarea{grid-column:1/-1;height:70px;resize:vertical}.tle-contact-form button{grid-column:1/-1;border:0;background:var(--green);color:#fff;padding:11px;font-size:9px;text-transform:uppercase;letter-spacing:.1em;font-weight:700}.contact-info{font-size:11px!important;line-height:1.5}.contact-info strong{display:block;margin-top:3px}.contact-area .bottom-squiggle{left:-6px;bottom:5px}
/* page content and footer */
.entry-content{margin:0}.site-footer{height:0;overflow:hidden}.wp-site-blocks{padding:0!important}.wp-block-post-content{margin:0}.wp-block-group{margin-block-start:0;margin-block-end:0}
@media(max-width:900px){.wrap{width:min(calc(100% - 30px),var(--max))}.header{min-height:72px;flex-wrap:wrap;padding:12px 0}.header .wp-block-navigation{order:3;width:100%;margin:0}.header .wp-block-navigation__container{width:100%;justify-content:space-between;gap:12px!important}.header .wp-block-navigation-item__content{padding:8px 0}.header .current-menu-item>.wp-block-navigation-item__content:after{bottom:2px}.hero-grid,.page-hero-grid,.about-intro .page-hero-grid{grid-template-columns:1fr!important}.hero-copy,.page-hero-copy{padding:52px 0 34px}.hero-image,.page-photo{min-height:0}.hero-image figure,.page-photo figure{height:auto}.hero-image img,.page-photo img{height:auto;object-fit:contain}.cap-grid,.home-card-grid,.article-grid{grid-template-columns:repeat(2,1fr)!important}.service-grid{grid-template-columns:1fr!important}.service{border-right:0}.program-grid{grid-template-columns:1fr!important}.program{border-bottom:1px solid var(--line)}.single-layout{grid-template-columns:1fr!important}.toc{display:none}.contact-panel{grid-template-columns:1fr!important}.green-block{display:none}}
@media(max-width:560px){.brand-name{display:none}.display{font-size:43px!important}.h1{font-size:36px!important}.cap-grid,.home-card-grid,.article-grid{grid-template-columns:1fr!important}.cap{border-right:0;border-bottom:1px solid var(--line)}.insights-heading{flex-direction:column}.filterbar{gap:16px}.single-head{grid-template-columns:1fr!important}.tle-contact-form .form-grid{grid-template-columns:1fr}.tle-contact-form textarea,.tle-contact-form button{grid-column:1}.contact-title{font-size:24px!important}}
