/* Round 2 site-wide layer: Juan brand chrome + juan.ac on-ramps over the legacy mirror. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap');
:root { --jl-navy: #0E1A2E; --jl-navy2: #15233C; --jl-navy3: #16253F; --jl-blue: #3970E6; --jl-blue2: #5B8CF2; --jl-text: #FFFFFF; --jl-muted: #BDC6D4; --jl-amber: #F5B544; } /* juan.ac tokens, see lab/shared/brand.css */

/* retire the legacy JuanTax chrome */
.header-space, .masthead, .dt-mobile-header, .dt-close-mobile-menu-icon, .mobile-sticky-header-overlay,
#footer, .footer-bottom, .scroll-top, #load, .gleap-notification-container { display: none !important; }
body, #page { font-family: Inter, system-ui, sans-serif !important; }

/* Juan nav */
.jl-bar { background: var(--jl-blue); color: #fff; font: 14px/1.4 Inter, sans-serif; text-align: center; padding: 9px 16px; }
.jl-bar a { color: #fff; font-weight: 600; }
.jl-nav { background: var(--jl-navy); position: sticky; top: 0; z-index: 9990; border-bottom: 1px solid rgba(255,255,255,.08); }
.jl-nav .in { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 26px; font: 15px Inter, sans-serif; }
.jl-logo { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; font: 600 17px Outfit, sans-serif; letter-spacing: .32em; }
.jl-logo img { display: block; height: 34px; width: auto; }
.jl-foot .jl-logo img { height: 40px; }
.jl-nav .links { display: flex; gap: 22px; }
.jl-nav .links a, .jl-nav .login { color: var(--jl-muted) !important; text-decoration: none !important; }
.jl-nav .links a:hover, .jl-nav .login:hover { color: #fff !important; }
.jl-nav .right { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.jl-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--jl-blue); color: #fff !important; text-decoration: none !important; border-radius: 10px; padding: 10px 16px; font: 600 15px Inter, sans-serif; border: 0; }
.jl-btn:hover { background: #2D5FD0; }
.jl-btn.ghost { background: transparent; border: 1px solid #C9D3E6; color: var(--jl-navy) !important; }

/* page title band in Juan style */
.page-title.solid-bg { background: var(--jl-navy) !important; padding: 56px 0 46px !important; min-height: 0 !important; height: auto !important; }
.page-title h1, .page-title .entry-title { color: #fff !important; font: 700 clamp(30px, 4vw, 46px)/1.12 Outfit, sans-serif !important; letter-spacing: -.01em; }
.page-title .breadcrumbs, .page-title .breadcrumbs a { color: var(--jl-muted) !important; }

/* freshness notice */
.jl-fresh { max-width: 100%; margin: 28px 0 26px; border: 1px solid #F2D9A8; background: #FFF8EA; border-radius: 14px; padding: 18px 20px; font: 15px/1.55 Inter, sans-serif; color: #4A3A17; }
.jl-fresh .h { display: flex; gap: 10px; align-items: baseline; font-weight: 700; color: #3A2C0E; margin-bottom: 6px; }
.jl-fresh .h span { font-weight: 500; color: #8A6A2A; font-size: 13.5px; }
.jl-fresh ul { margin: 8px 0 12px 0 !important; padding-left: 20px !important; }
.jl-fresh li { margin: 4px 0 !important; list-style: disc !important; }
.jl-fresh a { color: #1F4FC4 !important; font-weight: 600; }
.jl-fresh.plain { background: #F4F6FA; border-color: #DCE3EF; color: #3A4558; }
.jl-fresh.plain .h { color: #1E293B; } .jl-fresh.plain .h span { color: #6B778B; }

/* forms + next step panel */
.jl-next { margin: 44px 0 10px; border-radius: 18px; background: var(--jl-navy); color: var(--jl-text); padding: 26px 26px 24px; font: 15px/1.55 Inter, sans-serif; }
.jl-next .eyebrow { font: 600 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--jl-blue2); margin: 0 0 8px; }
.jl-next .jl-h3 { color: #fff !important; font: 700 24px/1.2 Outfit, sans-serif !important; margin: 0 0 14px !important; }
.jl-fresh p { margin: 2px 0 8px !important; }
.jl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.jl-chip { display: inline-flex; flex-direction: column; gap: 1px; background: var(--jl-navy2); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 8px 12px; text-decoration: none !important; color: #fff !important; min-width: 96px; }
.jl-chip:hover { border-color: var(--jl-blue); }
.jl-chip b { font: 700 15px Outfit, sans-serif; }
.jl-chip small { font-size: 11.5px; color: var(--jl-muted); }
.jl-chip.old b { text-decoration: line-through; color: var(--jl-muted); }
.jl-next .row { display: flex; flex-wrap: wrap; gap: 10px; }
.jl-next .ghost2 { background: transparent; border: 1px solid rgba(255,255,255,.25); }

/* sticky deadline pill */
.jl-pill { position: fixed; left: 18px; bottom: 18px; z-index: 9995; display: flex; align-items: center; gap: 10px; background: var(--jl-navy); color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; padding: 8px 8px 8px 14px; box-shadow: 0 12px 34px rgba(0,0,0,.3); font: 14px Inter, sans-serif; max-width: calc(100vw - 36px); }
.jl-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--jl-amber); flex: 0 0 8px; }
.jl-pill a { color: #fff !important; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jl-pill a b { font-family: Outfit, sans-serif; }
.jl-pill button { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; flex: 0 0 26px; }

/* Juan footer: 4 columns, keeps the internal links the legacy footer carried */
.jl-foot { background: var(--jl-navy); color: var(--jl-muted); font: 14px/1.6 Inter, sans-serif; padding: 48px 0 28px; }
.jl-foot .in { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.jl-foot .col a { display: block; margin: 4px 0; }
.jl-foot h4 { color: #fff !important; font: 600 14px Outfit, sans-serif !important; margin: 0 0 10px !important; letter-spacing: .02em; }
.jl-foot p { margin: 12px 0 0 !important; color: var(--jl-muted); }
.jl-foot .fine { display: block; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.jl-foot .fine a { display: inline; }
@media (max-width: 760px) { .jl-foot .in { grid-template-columns: 1fr 1fr; } }
.jl-foot a { color: var(--jl-muted) !important; text-decoration: none !important; }
.jl-foot a:hover { color: #fff !important; }

@media (max-width: 900px) { .jl-nav .links { display: none; } }
@media (max-width: 560px) {
  .jl-nav .in { padding: 0 16px; } .jl-nav .login { display: none; }
  .jl-next { padding: 22px 18px; } .jl-next .row .jl-btn { width: 100%; justify-content: center; }
  .jl-pill { left: 10px; right: 10px; bottom: 10px; }
}

/* legacy cookie notice in Juan colours */
#cookie-notice { background: var(--jl-navy) !important; color: var(--jl-text) !important; font-family: Inter, sans-serif !important; box-shadow: 0 -8px 30px rgba(0,0,0,.25) !important; }
#cookie-notice a { color: #9DB8F7 !important; }
#cookie-notice .cn-button, #cookie-notice #cn-accept-cookie { background: var(--jl-blue) !important; color: #fff !important; border-radius: 8px !important; }

/* legacy cookie notice in Juan colours */
#cookie-notice { background: var(--jl-navy) !important; color: #fff !important; font-family: Inter, sans-serif !important; }
#cookie-notice a { color: var(--jl-blue2) !important; }
#cookie-notice .cn-button, #cookie-notice #cn-accept-cookie { background: var(--jl-blue) !important; color: #fff !important; border-radius: 8px !important; }

/* ---- Round 5: quick-answer cards on the top organic pages ---- */
.jl-answer { max-width: 1100px; margin: 34px auto 30px; background: #fff; border: 1px solid #E4E9F2; border-radius: 18px; box-shadow: 0 14px 40px rgba(14,26,46,.08); padding: 28px 30px 26px; font: 16px/1.6 Inter, sans-serif; color: #3B4350; position: relative; overflow: hidden; }
.jl-answer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, #3970E6, #5B8CF2); }
.entry-content > .jl-answer { margin: 6px 0 22px; }
.jl-eyebrow { font: 600 12px Inter, sans-serif !important; text-transform: uppercase; letter-spacing: .12em; color: #3970E6 !important; margin: 0 0 6px !important; }
.jl-q { font: 700 26px/1.2 Outfit, sans-serif !important; color: #12181F !important; margin: 0 0 10px !important; }
.jl-lead { font-size: 18px !important; line-height: 1.6 !important; color: #12181F !important; margin: 0 0 18px !important; max-width: 62em; }
.jl-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 20px !important; }
.jl-facts div { background: #F6F8FC; border: 1px solid #E4E9F2; border-radius: 12px; padding: 12px 14px; }
.jl-facts dt { font: 600 11.5px Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: #6B778B; margin-bottom: 4px; }
.jl-facts dd { margin: 0 !important; font-size: 14.5px; line-height: 1.45; color: #12181F; }
.jl-facts dd[data-due] { font: 700 18px/1.3 Outfit, sans-serif; color: #3970E6; }
.jl-facts a, .jl-answer .jl-more { color: #3970E6 !important; font-weight: 600; }
.jl-ctas { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.jl-btn.ghost { background: transparent !important; border: 1px solid #C9D3E6 !important; color: #0E1A2E !important; }
.jl-check { background: #0E1A2E; color: #fff; border-radius: 14px; padding: 16px 18px; margin: 0 0 18px; }
.jl-check label { display: block; font: 600 14px Inter, sans-serif; margin-bottom: 8px; color: #fff; }
.jl-check .row { display: flex; align-items: center; gap: 8px; max-width: 360px; }
.jl-check .row span { font: 700 20px Outfit, sans-serif; color: #BDC6D4; }
.jl-check input { flex: 1; background: #15233C; border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 10px; padding: 11px 13px; font: 600 18px Inter, sans-serif; }
.jl-out { margin: 10px 0 0 !important; color: #BDC6D4; font-size: 15px; }
.jl-out b { color: #fff; }
.jl-corr { color: #B45309; font-style: normal; font-weight: 600; }
/* legacy form template, in Juan colours */
body.jl .wpb_content_element .wpb_tabs_nav li.ui-tabs-active, body.jl .wpb_content_element .wpb_tabs_nav li:hover,
body.jl .wpb_content_element .wpb_accordion_wrapper .wpb_accordion_header.ui-state-active { background-color: #3970E6 !important; border-color: #3970E6 !important; }
/* form pages: the H1 band in Juan navy, like the posts */
body.jl #content > .vc_row.vc_row-has-fill:first-child { background: #0E1A2E !important; }
body.jl #content > .vc_row.vc_row-has-fill:first-child h1 { color: #fff !important; font: 700 clamp(30px, 4vw, 44px)/1.15 Outfit, sans-serif !important; letter-spacing: -.01em; }
body.jl #form-desktop, body.jl #form-mobile { margin-top: 8px; }
.wpb_tabs_nav li a { font-family: Inter, sans-serif !important; }
a.jl-ff { display: inline-block; border: 1px solid #3970E6; color: #3970E6 !important; padding: 10px 28px; border-radius: 10px; font: 600 15px Inter, sans-serif; text-decoration: none !important; }
a.jl-ff:hover { background: #3970E6; color: #fff !important; }
h4 { font-family: Outfit, Inter, sans-serif !important; color: #12181F !important; }
@media (max-width: 900px) { .jl-facts { grid-template-columns: 1fr 1fr; } .jl-answer { margin: 20px 12px; padding: 22px 18px; } }
@media (max-width: 520px) { .jl-facts { grid-template-columns: 1fr; } .jl-q { font-size: 22px !important; } }

/* ---- Round 6: reading layout for guides ---- */
body.jl-post #main .wf-wrap { max-width: 1180px !important; }
body.jl-post article.type-post { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 56px; align-items: start; }
body.jl-post article.type-post > * { grid-column: 1; }
body.jl-post article.type-post > .jl-rail { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 92px; display: grid; gap: 14px; }
body.jl-post .entry-content { font: 17.5px/1.75 Inter, sans-serif !important; color: #2B3340 !important; max-width: 720px; }
body.jl-post .entry-content p, body.jl-post .entry-content li { font-size: 17.5px !important; line-height: 1.75 !important; color: #2B3340 !important; }
body.jl-post .entry-content h2, body.jl-post .entry-content h3, body.jl-post .entry-content h4 { font-family: Outfit, Inter, sans-serif !important; color: #12181F !important; letter-spacing: -.01em; line-height: 1.25 !important; margin: 1.6em 0 .5em !important; }
body.jl-post .entry-content h2 { font-size: 26px !important; } body.jl-post .entry-content h3 { font-size: 21px !important; }
body.jl-post .entry-content a:not(.jl-btn):not(.jl-chip) { color: #3970E6 !important; text-decoration: underline; text-underline-offset: 3px; }
body.jl-post .entry-content img { border-radius: 12px; height: auto; max-width: 100%; }
body.jl-post .entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0; border: 1px solid #E4E9F2; border-radius: 12px; overflow: hidden; }
body.jl-post .entry-content th { background: #F6F8FC; font-weight: 600; color: #12181F; }
body.jl-post .entry-content td, body.jl-post .entry-content th { padding: 10px 12px !important; border-bottom: 1px solid #E4E9F2 !important; }
body.jl-post .page-title .breadcrumbs { margin-top: 10px; }
.jl-rail { font: 15px/1.5 Inter, sans-serif; }
.jl-rail .t { font: 700 16px Outfit, sans-serif; color: #12181F; margin: 0 0 6px; }
.jl-r-dl { display: block; background: #0E1A2E; color: #fff !important; text-decoration: none !important; border-radius: 16px; padding: 18px; border: 1px solid #0E1A2E; transition: transform .15s; }
.jl-r-dl:hover { transform: translateY(-2px); }
.jl-r-dl .k { display: block; color: #BDC6D4; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.jl-r-dl .code { display: block; font: 700 30px/1.15 Outfit, sans-serif; margin: 6px 0 2px; }
.jl-r-dl .when { display: block; color: #BDC6D4; font-size: 14px; }
.jl-r-dl .go { display: block; margin-top: 10px; color: #5B8CF2; font-weight: 600; font-size: 14px; }
.jl-r-cta { background: #fff; border: 1px solid #E4E9F2; border-radius: 16px; padding: 18px; }
.jl-r-cta p { margin: 0 0 12px !important; color: #3B4350; font-size: 14.5px !important; }
.jl-r-cta .t { margin-bottom: 4px !important; }
.jl-r-cta .jl-btn { width: 100%; justify-content: center; box-sizing: border-box; }
.jl-r-link { display: block; text-align: center; margin-top: 10px; color: #3970E6 !important; font-weight: 600; font-size: 14px; }
.jl-r-reads { background: #F6F8FC; border-radius: 16px; padding: 16px 18px; }
.jl-r-reads a { display: block; padding: 8px 0; border-top: 1px solid #E4E9F2; color: #12181F !important; text-decoration: none !important; font-size: 14.5px; line-height: 1.4; }
.jl-r-reads a:hover { color: #3970E6 !important; }
.jl-r-reads a.all { color: #3970E6 !important; font-weight: 600; }
.jl-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, #3970E6, #5B8CF2); z-index: 10000; transition: width .1s linear; }
@media (max-width: 1000px) {
  body.jl-post article.type-post { display: block; }
  body.jl-post article.type-post > .jl-rail { position: static; margin: 30px 0; }
  body.jl-post .entry-content p, body.jl-post .entry-content li { font-size: 16.5px !important; }
}
/* theme sets overflow:hidden on #page/body, which disables position:sticky; clip keeps the
   no-horizontal-scroll behaviour without creating a scroll container */
/* NEVER set overflow on <body>: browsers apply it to the window and wheel/touch scrolling stops
   (live bug 2026-11-16 on all guides). Clip only the inner wrapper. */
body.jl-post #page { overflow: visible !important; overflow-x: clip !important; }
body.jl-post .entry-content h2 { font-size: 23px !important; font-weight: 600 !important; }

/* ---- Round 7: guide library ---- */
body.jl-library .vc_empty_space { display: none; }
.jl-lib { font: 16px/1.55 Inter, sans-serif; color: #3B4350; padding: 34px 0 20px; }
.jl-lib-lead { font-size: 19px !important; color: #12181F !important; max-width: 46em; margin: 0 0 22px !important; }
.jl-lib-search input { width: 100%; max-width: 640px; font: 17px Inter, sans-serif; padding: 16px 18px; border: 1px solid #E4E9F2; border-radius: 14px; box-shadow: 0 6px 24px rgba(14,26,46,.06); color: #12181F; }
.jl-lib-search input:focus { outline: 2px solid #3970E6; outline-offset: 1px; }
.jl-lib-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.jl-lib-chips button { border: 1px solid #E4E9F2; background: #fff; border-radius: 99px; padding: 7px 14px; font: 500 14px Inter, sans-serif; color: #3B4350; cursor: pointer; }
.jl-lib-chips button small { color: #8592A8; margin-left: 2px; }
.jl-lib-chips button[aria-pressed="true"] { background: #0E1A2E; border-color: #0E1A2E; color: #fff; }
.jl-lib-chips button[aria-pressed="true"] small { color: #BDC6D4; }
.jl-lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.jl-g { display: flex; flex-direction: column; background: #fff; border: 1px solid #E4E9F2; border-radius: 16px; overflow: hidden; text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.jl-g:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14,26,46,.1); border-color: #C9D3E6; }
.jl-g[hidden] { display: none; }
.jl-g .im { display: block; aspect-ratio: 1.91 / 1; background: #0E1A2E; overflow: hidden; }
.jl-g .im img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); }
.jl-g .im.none { background: linear-gradient(135deg, #0E1A2E, #16253F); display: grid; place-items: center; }
.jl-g .im.none b { font: 700 28px Outfit, sans-serif; color: #fff; letter-spacing: .02em; background: linear-gradient(90deg, #3970E6, #5B8CF2); padding: 2px 10px; }
.jl-lib-h1 { font: 700 clamp(34px, 4.4vw, 52px)/1.1 Outfit, sans-serif !important; color: #12181F !important; margin: 0 0 12px !important; letter-spacing: -.015em; }
.jl-g .meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px 0; }
.jl-g .meta span { font: 600 11.5px Inter, sans-serif; border-radius: 99px; padding: 3px 9px; }
.jl-g .tp { background: #EAF0FD; color: #3970E6; }
.jl-g .age { background: #FFF4DE; color: #9A6200; } .jl-g .age.new { background: #E7F7EF; color: #1E9E66; }
.jl-g .hot { background: #0E1A2E; color: #fff; }
.jl-g .tt { display: block; padding: 10px 16px 4px; font: 600 18px/1.3 Outfit, sans-serif; color: #12181F; }
.jl-g .ex { display: block; padding: 0 16px 18px; font-size: 14px; color: #6B778B; line-height: 1.5; }
.jl-lib-cta { grid-column: span 3; background: #0E1A2E; color: #BDC6D4; border-radius: 16px; padding: 24px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.jl-lib-cta .t { font: 700 22px Outfit, sans-serif; color: #fff !important; margin: 0 !important; }
.jl-lib-cta p { margin: 0 !important; flex: 1 1 280px; }
.jl-lib-cta .jl-r-link { margin: 0; color: #5B8CF2 !important; }
.jl-lib-empty { margin-top: 20px; padding: 24px; text-align: center; border: 1px dashed #C9D3E6; border-radius: 16px; }
@media (max-width: 1000px) { .jl-lib-grid { grid-template-columns: 1fr 1fr; } .jl-lib-cta { grid-column: span 2; } }
@media (max-width: 620px) { .jl-lib-grid { grid-template-columns: 1fr; } .jl-lib-cta { grid-column: span 1; } }
/* legacy JuanTax-pink thumbnails rendered as a Juan navy→blue duotone on library cards */
.jl-g .im { background: linear-gradient(135deg, #0E1A2E 10%, #3970E6 100%); }
.jl-g .im img { filter: grayscale(1) contrast(1.15); mix-blend-mode: luminosity; opacity: .9; transition: opacity .2s; }
.jl-g:hover .im img { opacity: 1; }

/* ---- Round 8: partner matcher ---- */
.jl-match { font: 16px/1.55 Inter, sans-serif; color: #3B4350; background: #0E1A2E; border-radius: 22px; padding: 34px 34px 26px; margin: 26px 0 40px; color: #BDC6D4; }
.jl-match h2 { color: #fff !important; font: 700 clamp(26px, 3vw, 36px)/1.15 Outfit, sans-serif !important; margin: 0 0 10px !important; text-align: left !important; }
.jl-m-head p { margin: 0 0 22px !important; color: #BDC6D4 !important; max-width: 44em; font-size: 17px !important; }
.jl-m-head .jl-eyebrow { color: #5B8CF2 !important; margin-bottom: 8px !important; font-size: 12px !important; }
.jl-m-q { display: block; margin-bottom: 16px; }
.jl-m-q .lbl { display: block; font: 600 13px Inter, sans-serif; color: #fff; margin-bottom: 8px; }
.jl-m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jl-m-chips button { background: #15233C; border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 99px; padding: 8px 15px; font: 500 14.5px Inter, sans-serif; cursor: pointer; }
.jl-m-chips button[aria-pressed="true"] { background: #3970E6; border-color: #3970E6; }
.jl-m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 720px; }
.jl-m-row select { width: 100%; background: #15233C; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 11px 12px; font: 15px Inter, sans-serif; }
.jl-m-res { margin-top: 8px; }
.jl-m-count { margin: 4px 0 12px !important; color: #BDC6D4 !important; } .jl-m-count b { color: #fff; font: 700 22px Outfit, sans-serif; }
.jl-m-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.jl-pm { display: flex; flex-direction: column; gap: 4px; background: #16253F; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; text-decoration: none !important; color: #fff !important; transition: border-color .15s, transform .15s; }
.jl-pm:hover { border-color: #5B8CF2; transform: translateY(-2px); }
.jl-pm[hidden] { display: none; }
.jl-pm b { font: 600 16px/1.3 Outfit, sans-serif; }
.jl-pm .loc { color: #BDC6D4; font-size: 13px; }
.jl-pm .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.jl-pm .tags i { font-style: normal; font-size: 11.5px; background: rgba(91,140,242,.16); color: #9DB8F7; border-radius: 99px; padding: 2px 8px; }
.jl-pm .go { margin-top: auto; padding-top: 6px; color: #5B8CF2; font-size: 13.5px; font-weight: 600; }
.jl-m-more { margin-top: 12px; background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 10px; padding: 9px 14px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.jl-m-cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 22px; padding: 20px 22px; border-radius: 16px; background: linear-gradient(90deg, #3970E6, #5B8CF2); color: #fff; }
.jl-m-cta .t { font: 700 20px Outfit, sans-serif; margin: 0 0 2px !important; color: #fff !important; }
.jl-m-cta p { margin: 0 !important; color: #fff !important; }
.jl-m-cta .jl-btn { background: #fff !important; color: #0E1A2E !important; }
.jl-m-firm { margin: 16px 0 0 !important; font-size: 14px !important; color: #BDC6D4 !important; }
.jl-m-firm a { color: #5B8CF2 !important; font-weight: 600; }
.jl-m-all { font: 700 26px Outfit, sans-serif !important; color: #12181F !important; margin: 0 0 14px !important; text-align: left !important; }
/* existing Essential Grid listing in Juan colours */
body.jl-partners .esg-filterbutton { border-radius: 99px !important; font-family: Inter, sans-serif !important; }
body.jl-partners .esg-filterbutton.selected, body.jl-partners .esg-filterbutton:hover { background: #3970E6 !important; color: #fff !important; border-color: #3970E6 !important; }
body.jl-partners .page-title.solid-bg, body.jl-partners #content > .vc_row.vc_row-has-fill:first-child { background: #0E1A2E !important; }
@media (max-width: 900px) { .jl-m-list { grid-template-columns: 1fr 1fr; } .jl-match { padding: 24px 18px; } }
@media (max-width: 560px) { .jl-m-list, .jl-m-row { grid-template-columns: 1fr; } }
/* any copy inside a navy title band must be readable */
body.jl #content > .vc_row.vc_row-has-fill:first-child, body.jl #content > .vc_row.vc_row-has-fill:first-child p, body.jl #content > .vc_row.vc_row-has-fill:first-child span, body.jl #content > .vc_row.vc_row-has-fill:first-child div { color: #BDC6D4 !important; }
body.jl #content > .vc_row.vc_row-has-fill:first-child p { font-size: 18px !important; }

/* ---- Round 9: calculator entry in the reading rail ---- */
.jl-r-calc { display: block; border-radius: 16px; padding: 16px 18px; background: linear-gradient(90deg, #3970E6, #5B8CF2); color: #fff !important; text-decoration: none !important; }
.jl-r-calc .k { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.jl-r-calc b { display: block; font: 700 21px/1.2 Outfit, sans-serif; margin: 4px 0; }
.jl-r-calc span:last-child { font-size: 14px; font-weight: 600; }
body.jl-calc { margin: 0; background: #fff; }

/* ---- Round 10: partner grid off JuanTax pink ---- */
body.jl-partners a[class*="eg-partner-list-v2-element-0"] { color: #12181F !important; border-color: #3970E6 !important; font-family: Outfit, Inter, sans-serif !important; font-weight: 700 !important; }
body.jl-partners a[class*="eg-partner-list-v2-element-0"]:hover { color: #3970E6 !important; }
body.jl-partners a[class*="eg-partner-list-v2-element-47"] { background: #3970E6 !important; background-image: none !important; border-radius: 10px !important; font-family: Inter, sans-serif !important; letter-spacing: .02em; }
body.jl-partners a[class*="eg-partner-list-v2-element-47"]:hover { background: #2D5FD0 !important; }
body.jl-partners .esg-entry-content { border-radius: 0 16px 16px 0; }

.jl-foot .social a { display: inline !important; }
.jl-unlinked { color: inherit; }
.jl-logo { letter-spacing: 0 !important; }

/* page-title band subtitles (e.g. partner listing) readable on navy */
body.jl .page-title, body.jl .page-title p, body.jl .page-title .wf-td, body.jl .page-title span:not(.jl-ago) { color: #BDC6D4 !important; }
body.jl .page-title h1 { color: #fff !important; }
body.jl-partners #content > .vc_row:first-child p, body.jl-partners #content > .vc_row:first-child span { color: #BDC6D4 !important; }
body.jl #content > .vc_row.vc_row-has-fill:first-child h4, body.jl-partners #content > .vc_row:first-child h4 { color: #BDC6D4 !important; font-family: Inter, sans-serif !important; font-weight: 500 !important; }

/* ---- Round 14: "Keep reading" / related links ---- */
.jl-more { grid-column: 1; margin: 34px 0 10px; font: 15px/1.5 Inter, sans-serif; }
.jl-more-wrap { max-width: 1180px; margin: 10px auto 40px; padding: 0 24px; }
.jl-more-h { font: 700 21px Outfit, sans-serif !important; color: #12181F !important; margin: 0 0 12px !important; }
.jl-more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.jl-more-form .jl-more-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.jl-more-grid a { display: flex; flex-direction: column; gap: 3px; border: 1px solid #E4E9F2; background: #fff; border-radius: 12px; padding: 12px 14px; text-decoration: none !important; transition: border-color .15s; }
.jl-more-grid a:hover { border-color: #3970E6; }
.jl-more-grid b { color: #12181F; font: 600 15.5px/1.35 Outfit, sans-serif; }
.jl-more-grid span { color: #6B778B; font-size: 12.5px; }
.jl-more-tools { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0 !important; }
.jl-more-tools a { color: #3970E6 !important; font-weight: 600; text-decoration: none !important; }
@media (max-width: 640px) { .jl-more-grid { grid-template-columns: 1fr; } }

/* ---- Round 17: bylines ---- */
.jl-byline { font: 14px/1.5 Inter, sans-serif !important; color: #6B778B !important; margin: 0 0 14px !important; }
.jl-byline a, .jl-eyebrow a { color: #3970E6 !important; text-transform: none; letter-spacing: 0; font-weight: 600; }

/* answer card + notices inside guides: beat the reading-layout text rules (Round 6) */
body.jl-post .entry-content .jl-answer { padding: 24px 24px 22px; }
body.jl-post .entry-content .jl-answer .jl-eyebrow { font: 600 12px/1.5 Inter, sans-serif !important; letter-spacing: .12em; margin: 0 0 6px !important; }
body.jl-post .entry-content .jl-answer .jl-q { font: 700 24px/1.2 Outfit, sans-serif !important; color: #12181F !important; margin: 0 0 10px !important; }
body.jl-post .entry-content .jl-answer .jl-lead { font-size: 17px !important; line-height: 1.6 !important; }
body.jl-post .entry-content .jl-facts { grid-template-columns: 1fr 1fr; }
body.jl-post .entry-content .jl-facts dd { font-size: 14.5px !important; line-height: 1.45 !important; }
body.jl-post .entry-content .jl-facts dd[data-due] { font: 700 17px/1.3 Outfit, sans-serif !important; }
body.jl-post .entry-content .jl-check label, body.jl-post .entry-content .jl-out { font-size: 15px !important; }
body.jl-post .entry-content .jl-fresh p, body.jl-post .entry-content .jl-fresh li { font-size: 15px !important; line-height: 1.55 !important; }
body.jl-post .entry-content .jl-byline { font-size: 14px !important; }
/* Round 30: one matching free resource at the end of every guide */
.jl-r-res { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; align-items: center; margin: 36px 0 8px; padding: 20px 22px; border-radius: 16px; background: #EAF0FD; border: 1px solid #D5E1FA; font: 15px/1.5 Inter, sans-serif; color: #3B4350; }
.jl-r-res .k { grid-column: 1; font: 600 11.5px Inter, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: #3970E6; }
.jl-r-res b { grid-column: 1; font: 700 19px/1.3 Outfit, sans-serif; color: #12181F; }
.jl-r-res .d { grid-column: 1; }
.jl-r-res a { grid-column: 2; grid-row: 1 / span 3; background: #3970E6; color: #fff !important; border-radius: 10px; padding: 11px 16px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
@media (max-width: 640px) { .jl-r-res { grid-template-columns: 1fr; } .jl-r-res a { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; } }
/* Round 21: one more nav link; keep the desktop nav on one line */
.jl-nav .links a, .jl-nav .right a { white-space: nowrap; }
@media (max-width: 1120px) { .jl-nav .links { gap: 15px; } .jl-nav .in { gap: 18px; } .jl-nav .right { gap: 12px; } .jl-nav .links a[href$="/partner-listing/"] { display: none; } }
@media (max-width: 1000px) { .jl-nav .right .login:first-child { display: none; } }
@media (max-width: 960px) { .jl-nav .links { display: none; } }
/* Phones: the WordPress customizer left fixed widths with no breakpoint (.single-post #main > .wf-wrap
   980px; .page-title > .wf-wrap 1280px), so on a 390px phone guide text ran off the right edge, and the
   clip on #page (scroll fix) hid it. Found 2026-11-16 by measuring text boxes against the viewport. */
@media (max-width: 1000px) { .single-post #main > .wf-wrap, .single-post .page-title > .wf-wrap { width: auto !important; max-width: 100% !important; box-sizing: border-box; } }
@media (max-width: 1370px) { .page-title > .wf-wrap, .article-top-bar > .wf-wrap, #fancy-header > .wf-wrap { width: auto !important; max-width: 100% !important; box-sizing: border-box; } }
@media (max-width: 760px) {
  .wf-wrap { padding-left: 16px !important; padding-right: 16px !important; }
  body.jl-post .entry-content img, body.jl-post .entry-content iframe, body.jl-post .entry-content video { max-width: 100% !important; height: auto; }
  body.jl-post .entry-content table { display: block; overflow-x: auto; max-width: 100%; }
}
@media (max-width: 760px) { h1, .entry-title, body.jl-post .entry-content h2 { overflow-wrap: anywhere; } }

/* R31 phone menu */
.jl-menu { display: none; }
.jl-menu > summary { list-style: none; cursor: pointer; width: 42px; height: 42px; box-sizing: border-box; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.jl-menu > summary::-webkit-details-marker { display: none; }
.jl-menu > summary:focus-visible { outline: 2px solid #5B8CF2; outline-offset: 2px; }
.jl-menu > summary i { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .18s, opacity .18s; }
.jl-menu[open] > summary i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.jl-menu[open] > summary i:nth-child(2) { opacity: 0; }
.jl-menu[open] > summary i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.jl-menu-p { position: absolute; left: 0; right: 0; top: 100%; z-index: 9999; background: #0E1A2E; border-top: 1px solid rgba(255,255,255,.1); padding: 6px 20px 20px; box-shadow: 0 22px 40px rgba(0,0,0,.4); max-height: calc(100vh - 80px); overflow-y: auto; }
.jl-menu-p a { display: flex !important; justify-content: space-between; align-items: center; padding: 14px 2px; color: #fff !important; text-decoration: none !important; font: 500 17px Inter, sans-serif !important; border-bottom: 1px solid rgba(255,255,255,.08); white-space: normal !important; }
.jl-menu-p a::after { content: '›'; order: 3; color: #5B8CF2; font-size: 22px; line-height: 1; }
.jl-menu-p a.new::before { content: 'New'; order: 2; margin-left: auto; margin-right: 10px; background: #5B8CF2; color: #0E1A2E; font: 700 11px Inter, sans-serif; padding: 3px 7px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
.jl-menu-p a.sub { color: #BDC6D4 !important; font-size: 15.5px !important; }
.jl-menu-p a.sub::after { content: '↗'; font-size: 15px; }
@media (max-width: 960px) { .jl-menu { display: block; } .jl-nav .right { gap: 12px; } }

/* R41 footer trust */
.jl-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 26px 0 0; margin: 30px 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.jl-trust .seals { display: flex; align-items: center; gap: 18px; }
.jl-trust .seals img { height: 56px; width: auto; display: block; }
.jl-trust .seals a { display: block; border-radius: 6px; } .jl-trust .seals a:focus-visible { outline: 2px solid #5B8CF2; outline-offset: 3px; }
.jl-trust .reg { font: 500 12.5px/1.4 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #BDC6D4; }
.jl-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.1); font: 12.5px/1.5 Inter, sans-serif; letter-spacing: .04em; color: #BDC6D4; }
.jl-foot .in.jl-base { display: block; }
.jl-legal .co { display: flex; flex-wrap: wrap; gap: 6px 22px; } .jl-legal .co > span:first-child { text-transform: uppercase; }
.jl-legal .pl { display: inline-flex; gap: 16px; letter-spacing: 0; }
.jl-legal .so { display: flex; gap: 8px; text-transform: uppercase; } .jl-legal .so span { opacity: .5; }
.jl-legal a { color: #BDC6D4 !important; text-decoration: none !important; } .jl-legal a:hover { color: #fff !important; }
@media (max-width: 560px) { .jl-trust .seals { gap: 12px; } .jl-trust .seals img { height: 46px; } .jl-legal { flex-direction: column; align-items: flex-start; } }
.jl-foot .jl-legal p, .jl-foot .jl-trust p { margin: 0; }

/* R38 glossary links in guides */
body.jl-post .entry-content a.jl-gl { color: inherit !important; text-decoration: underline dotted #5B8CF2 !important; text-underline-offset: 3px; text-decoration-thickness: 1.5px !important; }
body.jl-post .entry-content a.jl-gl:hover { color: #3970E6 !important; }