/* Legal translation hub body (components/legal/JurHub.jsx). Every rule is scoped under .jh; tokens only
   (design-system.css), so dark.css re-colours it. No hyphens: auto, no animation beyond hover transitions. */
.jh { --jh-gap: clamp(16px, 2.4vw, 28px); --jh-radius: 16px; }
.jh .jh-head { max-width: 760px; margin: 0 0 clamp(24px, 3.5vw, 40px); }
.jh .jh-head h2 { margin: 0; overflow-wrap: normal; }
.jh .jh-eyebrow { margin: 0 0 10px; font-size: var(--fs-eyebrow, 13px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-accent-ink, var(--bt-accent)); }
.jh .jh-lead { margin: 14px 0 0; font-size: var(--fs-body-lg, 18px); color: var(--bt-text-mid); line-height: 1.6; }
.jh ul, .jh ol { list-style: none; margin: 0; padding: 0; }
.jh h3 { font-size: var(--fs-card-title, 18px); margin: 0 0 6px; color: var(--bt-navy); line-height: 1.3; }
.jh p { line-height: 1.6; }
.jh a:focus-visible, .jh summary:focus-visible { outline: 3px solid var(--bt-accent); outline-offset: 3px; border-radius: 6px; }

.jh .jh-ico { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bt-teal-50); color: var(--bt-accent-ink, var(--bt-accent)); }
.jh .jh-ico--sm { width: 34px; height: 34px; border-radius: 10px; }

/* 1. How we work */
.jh .jh-intro__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.jh .jh-points { display: grid; gap: 18px; }
.jh .jh-points li { display: flex; gap: 16px; align-items: flex-start; }
.jh .jh-points p { margin: 0; color: var(--bt-text-mid); }
.jh .jh-photo { margin: 0; border-radius: var(--jh-radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 800 / 533; background: var(--bt-paper-2); }
.jh .jh-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .jh .jh-intro__grid { grid-template-columns: 1.1fr .9fr; } }

/* 2. Documents and 9b. more links */
.jh .jh-docs__grid { display: grid; gap: var(--jh-gap); }
.jh .jh-group { background: var(--bt-surface, var(--bt-white)); border: 1px solid var(--bt-line); border-radius: var(--jh-radius); padding: 22px 20px 14px; box-shadow: var(--shadow-xs); }
.jh .jh-group h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.jh .jh-group a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 6px; border-top: 1px solid var(--bt-line); color: var(--bt-text); text-decoration: none; font-weight: 500; }
.jh .jh-group li:first-child a { border-top: 0; }
.jh .jh-group a svg { flex: none; color: var(--bt-accent); }
.jh .jh-group a span:first-of-type { flex: 1; }
.jh .jh-arrow { color: var(--bt-text-soft); transition: transform .2s ease, color .2s ease; }
.jh .jh-group a:hover span:first-of-type { color: var(--bt-accent-ink, var(--bt-accent)); text-decoration: underline; text-underline-offset: 3px; }
.jh .jh-group a:hover .jh-arrow { transform: translateX(3px); color: var(--bt-accent); }
@media (min-width: 700px) { .jh .jh-docs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .jh .jh-docs .jh-docs__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .jh .jh-more .jh-docs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Shared card */
.jh .jh-card { position: relative; background: var(--bt-surface, var(--bt-white)); border: 1px solid var(--bt-line); border-radius: var(--jh-radius); padding: 26px 24px; box-shadow: var(--shadow-xs); }
.jh .jh-card p { margin: 10px 0 0; color: var(--bt-text-mid); }
.jh .jh-card .jh-ico { margin-bottom: 14px; }

/* 3. Sworn / certified / plain */
.jh .jh-compare__grid { display: grid; gap: var(--jh-gap); }
.jh .jh-card dl { margin: 14px 0 0; }
.jh .jh-card dt { margin-top: 14px; font-size: var(--fs-small, 14px); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bt-text-soft); }
.jh .jh-card dd { margin: 4px 0 0; color: var(--bt-text); line-height: 1.55; }
.jh .jh-card--featured { border: 2px solid var(--bt-accent); box-shadow: var(--shadow-md); }
.jh .jh-card__link { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--bt-accent-ink, var(--bt-accent)); }
.jh .jh-note { margin: 22px 0 0; color: var(--bt-text-soft); font-size: var(--fs-small, 15px); }
@media (min-width: 900px) { .jh .jh-compare__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 4. Steps on a navy band (fixed navy in both themes; white text 15:1) */
/* !important and a doubled class: the tone script (data-tone) paints every section band with !important. */
.bt main .jh .jh-process.jh-process { background: #061A44 !important; color: #fff; border: 0 !important; }
.jh .jh-head--light h2 { color: #fff; }
.jh .jh-head--light .jh-eyebrow { color: #7EBEC5; }
.jh .jh-steps { display: grid; gap: var(--jh-gap); counter-reset: none; }
.jh .jh-steps li { padding: 24px 22px; border-radius: var(--jh-radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.jh .jh-steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: #7EBEC5; color: #061A44; font-weight: 800; }
.jh .jh-steps h3 { color: #fff; }
.jh .jh-steps p { margin: 0; color: rgba(255, 255, 255, .86); }
.jh .jh-steps a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 700px) { .jh .jh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .jh .jh-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
html[data-theme="dark"] .bt main .jh .jh-process.jh-process { background: #0A1220 !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .bt main .jh .jh-process.jh-process { background: #0A1220 !important; } }

/* 5. Audiences and 8. EU/UN */
.jh .jh-aud__grid, .jh .jh-intl__grid { display: grid; gap: var(--jh-gap); }
@media (min-width: 900px) { .jh .jh-aud__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .jh .jh-intl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 6. Areas of law */
.jh .jh-domains__grid { display: grid; gap: 4px var(--jh-gap); }
.jh .jh-domains__grid li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--bt-line); }
.jh .jh-domains__grid h3 { font-size: var(--fs-body, 17px); margin-bottom: 4px; }
.jh .jh-domains__grid p { margin: 0; color: var(--bt-text-mid); font-size: var(--fs-small, 15px); }
@media (min-width: 760px) { .jh .jh-domains__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .jh .jh-domains__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 7. Sworn call-out */
.jh .jh-sworn__box { display: grid; gap: 20px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-2xl, 24px); background: var(--bt-teal-50); border: 1px solid var(--bt-line); }
.jh .jh-sworn__box .jh-head { margin-bottom: 14px; }
.jh .jh-sworn__box p { margin: 0 0 14px; color: var(--bt-text); }
.jh .jh-sworn__box .bt-btn { margin-top: 6px; }
.jh .jh-seal { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--bt-white); color: var(--bt-accent); box-shadow: var(--shadow-sm); }
@media (min-width: 760px) { .jh .jh-sworn__box { grid-template-columns: auto 1fr; align-items: start; gap: 32px; } }

/* 10. FAQ: the site's .faq styles; only spacing here. */
.jh .jh-faq .faq__a p { margin: 0 0 10px; }

/* 11. Closing CTA */
.jh .jh-close__in { display: grid; gap: 22px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-2xl, 24px); background: var(--cta-bg, #061A44); border: 1px solid var(--cta-border, transparent); }
.jh .jh-close h2 { margin: 0 0 8px; }
.jh .jh-close p { margin: 0; color: var(--bt-text-mid); }
.jh .jh-close__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .jh .jh-close__in { grid-template-columns: 1fr auto; align-items: center; } }

@media (prefers-reduced-motion: reduce) { .jh * { transition: none !important; } }
.bt main .jh .jh-process.jh-process::before, .bt main .jh .jh-process.jh-process::after { display: none !important; }

/* « Ce que nous traduisons », refined (Mike, 23 Nov 2026): 2 wide cards per row, documents as a 2-column tile grid. */
.jh .jh-docs .jh-docs__grid { gap: 24px; }
@media (min-width: 1200px) { .jh .jh-docs .jh-docs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jh .jh-docs .jh-group { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 26px 26px 22px; border-radius: 18px; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.jh .jh-docs .jh-group::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--bt-accent), var(--bt-orange, #F67618)); opacity: .85; }
.jh .jh-docs .jh-group:hover { border-color: color-mix(in srgb, var(--bt-accent) 45%, var(--bt-line)); box-shadow: var(--shadow-md, 0 12px 32px rgba(6,26,68,.14)); transform: translateY(-2px); }
.jh .jh-docs .jh-group h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--bt-line); }
.jh .jh-docs .jh-group h3 .jh-ico--sm { width: 40px; height: 40px; border-radius: 12px; }
.jh .jh-docs .jh-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 560px) { .jh .jh-docs .jh-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jh .jh-docs .jh-group li { display: flex; }
.jh .jh-docs .jh-group a { flex: 1; min-height: 52px; padding: 10px 12px; gap: 10px; border: 1px solid transparent; border-radius: 12px; background: color-mix(in srgb, var(--bt-accent) 6%, transparent); font-size: .95rem; line-height: 1.3; transition: background .2s ease, border-color .2s ease; }
.jh .jh-docs .jh-group li:first-child a { border-top: 1px solid transparent; }
.jh .jh-docs .jh-group a:hover, .jh .jh-docs .jh-group a:focus-visible { background: color-mix(in srgb, var(--bt-accent) 14%, transparent); border-color: color-mix(in srgb, var(--bt-accent) 40%, transparent); }
.jh .jh-docs .jh-group a:hover span:first-of-type { text-decoration: none; }
.jh .jh-docs .jh-arrow { font-size: .9em; opacity: .6; }
.jh .jh-docs .jh-group a:hover .jh-arrow { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .jh .jh-docs .jh-group, .jh .jh-docs .jh-group a { transition: none; } .jh .jh-docs .jh-group:hover { transform: none; } }

/* betranslated.be: the .fr intro photo has no .be equivalent, so the four commitments sit in a 2 x 2 grid. */
.jh .jh-points--grid { display: grid; gap: 22px var(--jh-gap); }
@media (min-width: 760px) { .jh .jh-points--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.jh .jh-intro .jh-lead { max-width: 72ch; }
/* Band of the scraped page's internal links that the hub copy does not carry (components/hubs/shared.jsx). */
.jh .hub-kept__title { margin: 0 0 18px; font-size: var(--fs-h2); color: var(--bt-navy); }

/* Pleine largeur (Mike, 23 Nov 2026, port de betranslated.fr 190775b): heads and leads use the whole container. */
.jh .jh-head, .jh .jh-head h2, .jh .jh-lead, .jh .jh-intro .jh-lead { max-width: none !important; }
.jh .jh-head h2 { text-wrap: balance; }
/* No orphan row (Mike, 23 Nov 2026, port de betranslated.fr c548525): the 8 language pairs sit as 4 + 4, never 3 + 3 + 2. */
@media (min-width: 1200px) { .jh .jh-domains__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Equal-height cards in every row */
.jh .jh-steps li, .jh .jh-aud__grid > li, .jh .jh-compare__grid > li, .jh .jh-domains__grid > * { height: 100%; }
/* Rule 25d (23 Nov 2026): a document group with an odd number of links closes its two-column list (nl: 19 documents). */
@media (min-width: 560px) { .jh .jh-docs .jh-group li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Rule 25 (23 Nov 2026, batch 3): nl document names are single long compounds (Vertrouwelijkheidsclausules, Distributieovereenkomsten)
   that cannot be cut; two tiles side by side pushed them past the card edge, so nl runs one tile per row. */
.jh:lang(nl) .jh-docs .jh-group ul { grid-template-columns: minmax(0, 1fr); }
/* Rule 25c (23 Nov 2026, batch 4): on phones the longest nl compounds (Vertrouwelijkheidsclausules, Distributieovereenkomsten,
   Arbeidsovereenkomsten) made their tile 3 to 33 px wider than its siblings (360 and 390 px); a narrower card padding and a
   slightly smaller tile text give every tile the same width, in every locale. */
@media (max-width: 559px) { .jh .jh-docs .jh-group { padding: 22px 16px 18px; } .jh .jh-docs .jh-group a { padding: 10px; gap: 8px; font-size: .9rem; } }
